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