diff options
author | Soispha <soispha@vhack.eu> | 2024-01-20 18:38:18 +0100 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2024-01-20 18:38:18 +0100 |
commit | b53a8d82a07c29010a690b7126795fd7ddcabe0c (patch) | |
tree | 203dd0581950f9acb75881383d4b6fbc849e91af /sys/nixpkgs/pkgs/tree-sitter-yts/grammar.js | |
parent | fix(sys/nixpkgs/yt/constants): Add extension to last selection path (diff) | |
download | nixos-config-b53a8d82a07c29010a690b7126795fd7ddcabe0c.tar.gz nixos-config-b53a8d82a07c29010a690b7126795fd7ddcabe0c.zip |
feat(sys/nixpkgs/yt): Add support for the 'url' command
This simply opens the youtube url in the browser
Diffstat (limited to 'sys/nixpkgs/pkgs/tree-sitter-yts/grammar.js')
-rw-r--r-- | sys/nixpkgs/pkgs/tree-sitter-yts/grammar.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/nixpkgs/pkgs/tree-sitter-yts/grammar.js b/sys/nixpkgs/pkgs/tree-sitter-yts/grammar.js index 722d6a44..655f6dea 100644 --- a/sys/nixpkgs/pkgs/tree-sitter-yts/grammar.js +++ b/sys/nixpkgs/pkgs/tree-sitter-yts/grammar.js @@ -6,7 +6,7 @@ module.exports = grammar({ line: ($) => seq($.command, $.id, $.title, $.date, $.author, $.duration, $.url, "\n"), - command: ($) => choice("pick", "watch", "drop", "p", "w", "d"), + command: ($) => choice("pick", "p", "watch", "w", "drop", "d", "url", "u"), id: ($) => /[0-9]+/, title: ($) => seq($._q, /[^"]+/, $._q), date: ($) => seq($._q, /\d{4}-\d{2}-\d{2}/, $._q), |