diff options
-rw-r--r-- | tree-sitter-yts/grammar.js | 2 | ||||
-rw-r--r-- | yt/src/cli.rs | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/tree-sitter-yts/grammar.js b/tree-sitter-yts/grammar.js index 8a9d61f..4857446 100644 --- a/tree-sitter-yts/grammar.js +++ b/tree-sitter-yts/grammar.js @@ -6,7 +6,7 @@ module.exports = grammar({ line: ($) => seq($.command, repeat($.flag), $.id, $.title, $.date, $.author, $.duration, $.url, "\n"), - command: ($) => choice("pick", "p", "watch", "w", "drop", "d", "url", "u"), + command: ($) => choice("pick", "p", "watch", "w", "watched", "wd", "add", "a", "drop", "d", "url", "u"), flag: ($) => choice( /-\w [^\s]+/, diff --git a/yt/src/cli.rs b/yt/src/cli.rs index 2208caa..78d8de9 100644 --- a/yt/src/cli.rs +++ b/yt/src/cli.rs @@ -227,6 +227,7 @@ pub struct SharedSelectionCommandArgs { #[derive(Subcommand, Clone, Debug)] // NOTE: Keep this in sync with the [`constants::HELP_STR`] constant. <2024-08-20> +// NOTE: Also keep this in sync with the `tree-sitter-yts/grammar.js`. <2024-11-04> pub enum SelectCommand { /// Open a `git rebase` like file to select the videos to watch (the default) File { |