diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-11-04 20:49:39 +0100 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-11-04 20:49:39 +0100 |
commit | ec5f2deabe1a9b0abf17e3608b5a87290e37d13f (patch) | |
tree | fa55c84536c7d0467a8056adf75e246c39c11273 | |
parent | build(tree-sitter-yts): Include in builds (diff) | |
download | yt-ec5f2deabe1a9b0abf17e3608b5a87290e37d13f.tar.gz yt-ec5f2deabe1a9b0abf17e3608b5a87290e37d13f.zip |
fix(tree-sitter-yts/grammar.js): Add missing commands
-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 { |