ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Crontab

by nayyarv ST3

A Plugin for Crontab Highlighting in Sublime Text 3

Details

  • 0.1.0
  • github.​com
  • github.​com
  • 3 months ago
  • 37 minutes ago
  • 3 months ago

Installs

  • Total 138
  • Win 40
  • OS X 65
  • Linux 33
Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3 Sep 2
Windows 0 2 0 0 1 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 3 0 0 1 0 0 1 0 0 0 0 0
OS X 0 0 0 0 0 2 0 2 1 0 0 1 0 2 1 2 0 0 0 1 0 0 0 0 0 1 1 1 0 0 0 0 0 2 1 0 1 0 0 1 1 1 1 1 0
Linux 0 0 0 0 0 1 0 0 2 0 4 0 0 1 2 0 0 0 0 0 1 2 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0

Readme

Source
raw.​githubusercontent.​com

CrontabSublime

version 0.1

Example

A package I wrote for ST3 to syntax highlight Crontabs since the old package available has not beem updated since 2015 and doesn't work. I have inherited a regex, but intend to remove it's use in a future release as it's quite complicate and doesn't allow TODO 1 easily.

Crontabs are arguably a dying thing with systemd, but crontabs are still a quick and dirty way to get things running without too much effort, so some use is nice.

Installation

  1. Run “Package Control: Install Package” command, find and install Crontab plugin.
  2. Close and reopen file

Notes

  • Will highlight packages with tab and crontab suffices. For custom suffices/filenames, add to your personal sublime text preferences.
  • Uses bash highlighting in your commands.
  • Comment and uncommenting lines using ctrl/cmd + / works as expected

Todos

  1. Report errors in syntax in the time string
  2. Alert on unescaped usage of % in crontab line
  3. Provide an autocomplete like syntax for inserting new command lines
  4. Provide a template file of things to do when creating a crontab file
  5. Highlight the valid @ syntax uses and not all uses

Credits/Acknowledgements

  1. clarkewd's original Crontab Highlighting Package which was inherited from kevinior and WheresWardy