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

Crontab

by nayyarv ST3

A Plugin for Crontab Highlighting in Sublime Text 3

Details

Installs

  • Total 393
  • Win 108
  • OS X 173
  • Linux 112
Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9 Jun 8 Jun 7 Jun 6 Jun 5 Jun 4 Jun 3 Jun 2 Jun 1 May 31 May 30 May 29 May 28 May 27 May 26 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8 May 7 May 6 May 5
Windows 0 0 0 0 1 1 2 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 1 0 2 0 0 0 0 0 2 0 0 0 0 0
OS X 0 0 4 0 0 1 1 0 0 0 0 0 1 1 0 1 0 0 0 1 0 0 0 0 1 0 0 0 2 1 1 1 2 1 1 0 0 0 0 1 1 0 2 0 0
Linux 0 1 1 0 0 0 0 1 0 0 1 0 0 0 1 0 1 0 0 0 0 0 0 0 1 1 1 0 0 0 1 1 0 0 0 0 0 0 0 1 0 1 2 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 been 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