From 709c8bbbfae795f083b14e06c9674a6754ea404d Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Mon, 23 Feb 2026 11:31:35 +0900 Subject: modified lf/lfrc, modified lf/scope, modified shell/bm-dirs, modified shell/bm-files, created television/ --- ar/.config/television/cable/man-pages.toml | 35 ++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 ar/.config/television/cable/man-pages.toml (limited to 'ar/.config/television/cable') diff --git a/ar/.config/television/cable/man-pages.toml b/ar/.config/television/cable/man-pages.toml new file mode 100644 index 0000000..38c3e67 --- /dev/null +++ b/ar/.config/television/cable/man-pages.toml @@ -0,0 +1,35 @@ +[metadata] +name = "man-pages" +description = "Browse and preview system manual pages" +requirements = ["man", "apropos", "col", "bat"] + +[source] +command = "man -k ." + +[ui] +layout = "landscape" + +[ui.preview_panel] +header = "{0}" + +[keybindings] +ctrl-b = "actions:bat" +ctrl-v = "actions:nvim" + +[preview] +command = "sh -c \"man $(echo {0} | sed -E 's/^([^ ]+) \\(([^)]+)\\).*/\\2 \\1/') | col -bx | bat -l man -p --color=always\"" + +[preview.env] +MANWIDTH = "80" +MANPAGER = "cat" +PAGER = "cat" + +[actions.bat] +description = "View with bat" +command = "echo '{0}' | sed -E 's/^([^ ]+) \\(([^)]+)\\).*/\\2 \\1/' | xargs -r man | col -bx | bat -l man -p" +mode = "fork" + +[actions.nvim] +description = "Open in Neovim" +command = "echo '{0}' | sed -E 's/^([^ ]+) \\(([^)]+)\\).*/\\2 \\1/' | xargs -r man | nvim -" +mode = "fork" -- cgit v1.2.3