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
  • 9 months ago
  • 19 minutes ago
  • 9 months ago

Installs

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