diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-02-23 11:31:35 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-02-23 11:31:35 +0900 |
| commit | 709c8bbbfae795f083b14e06c9674a6754ea404d (patch) | |
| tree | 145c442d7bea65b7602271d5fa3265ff0a279afb /ar/.config/television/cable | |
| parent | 5328e20a7ee864dd28f68df0ced4c3ce3f0fd5c7 (diff) | |
modified lf/lfrc, modified lf/scope, modified shell/bm-dirs, modified shell/bm-files, created television/
Diffstat (limited to 'ar/.config/television/cable')
| -rw-r--r-- | ar/.config/television/cable/man-pages.toml | 35 |
1 files changed, 35 insertions, 0 deletions
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" |
