From b53a8d82a07c29010a690b7126795fd7ddcabe0c Mon Sep 17 00:00:00 2001 From: Soispha Date: Sat, 20 Jan 2024 18:38:18 +0100 Subject: feat(sys/nixpkgs/yt): Add support for the 'url' command This simply opens the youtube url in the browser --- sys/nixpkgs/pkgs/tree-sitter-yts/grammar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/nixpkgs/pkgs/tree-sitter-yts/grammar.js') 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), -- cgit 1.4.1