From ec5f2deabe1a9b0abf17e3608b5a87290e37d13f Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Mon, 4 Nov 2024 20:49:39 +0100 Subject: fix(tree-sitter-yts/grammar.js): Add missing commands --- tree-sitter-yts/grammar.js | 2 +- yt/src/cli.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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 { -- cgit 1.4.1