Skip to content

Releases: e-u-shapovalov/crontab-formatter

1.0.2

Choose a tag to compare

@e-u-shapovalov e-u-shapovalov released this 13 Jul 01:42

English

  • With crontabFormatter.alignRedirects on, manual padding after a redirect operator is now collapsed, so > /dev/null 2>&1 lines up as > /dev/null 2>&1. Runs of whitespace inside the redirect are reduced to a single space; quoted or escaped whitespace and fused forms such as >&2 are left untouched, so the command's meaning never changes.

Русский

  • При включённом crontabFormatter.alignRedirects ручные отступы после оператора перенаправления теперь схлопываются, поэтому > /dev/null 2>&1 выравнивается как > /dev/null 2>&1. Прогоны пробелов внутри перенаправления сжимаются до одного пробела; пробелы в кавычках или экранированные, а также слитные формы вроде >&2 не трогаются, поэтому смысл команды не меняется.

1.0.1

Choose a tag to compare

@e-u-shapovalov e-u-shapovalov released this 13 Jul 01:18

English

  • Changed the default value of crontabFormatter.locale from ru to en, so the extension's messages, hover explanations and quick-fix titles are in English out of the box. Set crontabFormatter.locale to ru for Russian or auto to follow the VS Code display language.

Русский

  • Значение по умолчанию crontabFormatter.locale изменено с ru на en, поэтому сообщения расширения, всплывающие расшифровки и названия быстрых исправлений «из коробки» на английском. Установите crontabFormatter.locale в ru для русского языка или auto, чтобы следовать языку интерфейса VS Code.

Crontab Formatter 1.0.0

Choose a tag to compare

@e-u-shapovalov e-u-shapovalov released this 13 Jul 00:51

Crontab Formatter

First stable release — now on the Visual Studio Marketplace.

Install from VS Code: open the Extensions view and search for Crontab Formatter (publisher EvgeniiShapovalov). For an offline install, download crontab-formatter-1.0.0.vsix below and use Install from VSIX….

Highlights

  • Hardened the shell scanner shared by formatting, diagnostics and quick fixes — quotes, backticks, $()/<() substitutions (with nesting and backslash escaping) and subshells are handled correctly, so column alignment never changes the bytes of a command.
  • Redirect diagnostics model the stdout/stderr file descriptors (operator order, duplication, >&file, 2>&1) instead of only looking for a >.
  • Localized the "explain schedule" / "convert to macro" quick-fix titles.
  • More accurate user/system auto-detection (mysql -e …, date >> … are no longer read as a system user column).
  • Schedule explanations include the year field when enabled; slimmed extension package.

See CHANGELOG.md for the full English/Russian notes.

v0.3.0

Choose a tag to compare

@e-u-shapovalov e-u-shapovalov released this 06 Jun 23:41

What''s new

  • Syntax highlighting — the extension now ships its own TextMate grammar, so crontab files are coloured out of the box. The schedule, the command/path, and the targets after > (overwrite) and >> (append) each get a distinct colour. Comments, PATH=… assignments and $variables are highlighted too.
  • Localized settings — all settings and command titles are now available in Russian and English (package.nls), with clearer descriptions and per-value hints in the Settings UI.

Install: download crontab-formatter-0.3.0.vsix and run Extensions: Install from VSIX…, or code --install-extension crontab-formatter-0.3.0.vsix.