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
  • 5 months ago
  • 31 minutes ago
  • 4 months ago

Installs

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