style(ui): simplify panels, remove borders and scrollbars, add padding, enable inline mode

This commit is contained in:
Prad Nukala committed 2026-09-30 11:54:59 -04:00
1 parent f6e979fa8c
commit d714b31027
21 files changed
+47 -35

No files matched your search

+2 -2
View File
@@ -1,10 +1,10 @@
{
"totalAccepted": 27,
"totalAccepted": 28,
"shownMilestones": [
10,
20
],
"submissionsSinceLastPrompt": 10,
"submissionsSinceLastPrompt": 11,
"windowStartedAt": 1790356839288,
"lastShownAt": 1790359187702,
"dismissed": true
+3
View File
@@ -11,4 +11,7 @@ output = "{split:=:0}"
command = "$SHELL -ic 'alias' | grep -E '^(alias )?{split:=:0}='"
[ui.preview_panel]
border_type = "none"
scrollbar = false
padding = { left = 2, right = 1, top = 0, bottom = 0 }
size = 30
+1 -1
View File
@@ -11,7 +11,7 @@ command = "cargo {} --help 2>/dev/null | head -50"
[ui]
layout = "portrait"
preview_panel = { size = 60 }
preview_panel = { size = 60, border_type = "none", scrollbar = false, padding = { left = 2, right = 1, top = 0, bottom = 0 } }
[keybindings]
enter = "actions:run"
+1 -1
View File
@@ -15,5 +15,5 @@ enter = "actions:channel-enter"
[actions.channel-enter]
description = "Enter a television channel"
command = "tv {}"
command = "tv {} --inline"
mode = "execute"
+1 -1
View File
@@ -12,7 +12,7 @@ command = '''echo 'Schedule: {split: :..5}' && echo '' && echo 'Command:' && ech
[ui]
layout = "portrait"
preview_panel = { size = 30 }
preview_panel = { size = 30, border_type = "none", scrollbar = false, padding = { left = 2, right = 1, top = 0, bottom = 0 } }
[actions.edit]
description = "Open crontab for editing"
+1 -1
View File
@@ -22,5 +22,5 @@ mode = "execute"
[actions.goto_parent_dir]
description = "Re-opens tv in the parent directory"
command = "tv dirs .."
command = "tv dirs .. --inline"
mode = "execute"
+1 -1
View File
@@ -11,7 +11,7 @@ command = "echo '{split:=:1..}'"
[ui]
layout = "portrait"
preview_panel = { size = 20, header = "{split:=:0}" }
preview_panel = { size = 20, header = "{split:=:0}", border_type = "none", scrollbar = false, padding = { left = 2, right = 1, top = 0, bottom = 0 } }
[keybindings]
shortcut = "f3"
+1 -1
View File
@@ -29,5 +29,5 @@ mode = "execute"
[actions.goto_parent_dir]
description = "Re-opens tv in the parent directory"
command = "tv files .."
command = "tv files .. --inline"
mode = "execute"
+3
View File
@@ -10,4 +10,7 @@ command = "fc-list --format='%{family}\n' | sort -uf"
command = "fc-list '{}' --format='%{file}\n%{style}\n%{family}\n' | head -20"
[ui.preview_panel]
border_type = "none"
scrollbar = false
padding = { left = 2, right = 1, top = 0, bottom = 0 }
size = 70
+1 -1
View File
@@ -11,7 +11,7 @@ output = "{strip_ansi|split:#:1|split: :0}"
[ui]
layout = "portrait"
preview_panel = { header = '{strip_ansi|split:#:1|split: :0}' }
preview_panel = { header = '{strip_ansi|split:#:1|split: :0}', border_type = "none", scrollbar = false, padding = { left = 2, right = 1, top = 0, bottom = 0 } }
[preview]
command = '''gh issue view '{strip_ansi|split:#:1|split: :0}' --json number,title,body,state,author,createdAt,updatedAt,labels,assignees | jq -r '
+1 -1
View File
@@ -11,7 +11,7 @@ command = "journalctl -b --no-pager -o short-iso -n 50 SYSLOG_IDENTIFIER='{}' 2>
[ui]
layout = "portrait"
preview_panel = { size = 70 }
preview_panel = { size = 70, border_type = "none", scrollbar = false, padding = { left = 2, right = 1, top = 0, bottom = 0 } }
[actions.logs]
description = "Follow live logs for the selected identifier"
+1 -1
View File
@@ -22,4 +22,4 @@ mode = "execute"
[ui]
layout = "portrait"
preview_panel = { header = "{0}" }
preview_panel = { header = "{0}", border_type = "none", scrollbar = false, padding = { left = 2, right = 1, top = 0, bottom = 0 } }
+3
View File
@@ -11,6 +11,9 @@ display = "{split:\\t:0}"
command = "jq -r '.scripts[\"{split:\\t:0}\"]' package.json"
[ui.preview_panel]
border_type = "none"
scrollbar = false
padding = { left = 2, right = 1, top = 0, bottom = 0 }
size = 30
[keybindings]
+3 -1
View File
@@ -18,7 +18,9 @@ layout = "landscape"
[ui.preview_panel]
size = 60
header = "Session: {split:\t:1}"
border_type = "rounded"
border_type = "none"
scrollbar = false
padding = { left = 2, right = 1, top = 0, bottom = 0 }
[keybindings]
shortcut = "f4"
-3
View File
@@ -19,9 +19,6 @@ display = "{split:\\t:0}"
command = "pj --preview '{split:\\t:1}' '{split:\\t:2}' '{split:\\t:3}' '{split:\\t:5}'"
shell = "bash"
[ui.preview_panel]
size = 40
[keybindings]
enter = "actions:run"
+3
View File
@@ -11,6 +11,9 @@ display = "{split: :0} ({split: :2})"
command = "ss -tlnp 2>/dev/null | grep ':{split: :0} ' | head -20"
[ui.preview_panel]
border_type = "none"
scrollbar = false
padding = { left = 2, right = 1, top = 0, bottom = 0 }
size = 40
[actions.kill]
+1 -1
View File
@@ -11,7 +11,7 @@ output = "{strip_ansi|split:#:1|split:\t:0}"
[ui]
layout = "portrait"
preview_panel = { header = '{strip_ansi|split:\t:1}' }
preview_panel = { header = '{strip_ansi|split:\t:1}', border_type = "none", scrollbar = false, padding = { left = 2, right = 1, top = 0, bottom = 0 } }
[preview]
command = '''tea issues --output json {strip_ansi|split:#:1|split:\t:0} </dev/null | jq -r '
+1 -1
View File
@@ -11,7 +11,7 @@ output = "{strip_ansi|split:#:1|split:\t:0}"
[ui]
layout = "portrait"
preview_panel = { header = '{strip_ansi|split:\t:1}' }
preview_panel = { header = '{strip_ansi|split:\t:1}', border_type = "none", scrollbar = false, padding = { left = 2, right = 1, top = 0, bottom = 0 } }
[preview]
command = '''tea pulls --output json {strip_ansi|split:#:1|split:\t:0} </dev/null | jq -r '
+1 -1
View File
@@ -17,7 +17,7 @@ env = { BAT_THEME = "ansi" }
offset = '{strip_ansi|split:\::1}'
[ui]
preview_panel = { header = '{strip_ansi|split:\::..2}' }
preview_panel = { header = '{strip_ansi|split:\::..2}', border_type = "none", scrollbar = false, padding = { left = 2, right = 1, top = 0, bottom = 0 } }
[keybindings]
enter = "actions:edit"
+1 -1
View File
@@ -14,7 +14,7 @@ env = { BAT_THEME = "ansi" }
offset = "{strip_ansi|split:\\::1}"
[ui]
preview_panel = { header = "{strip_ansi|split:\\::..2}" }
preview_panel = { header = "{strip_ansi|split:\\::..2}", border_type = "none", scrollbar = false, padding = { left = 2, right = 1, top = 0, bottom = 0 } }
[keybindings]
enter = "actions:edit"
+17 -16
View File
@@ -53,38 +53,39 @@ orientation = "landscape"
# config dir (a builtin theme shadows a user theme of the same name).
theme = "cyberdream-transparent"
# Feature-specific configurations
# Each feature can have its own configuration section
# Minimal UI: no borders, no status bar, no scrollbar — padding alone
# separates the panels. tv 0.15 has no config key for inline
# mode (--inline / --height are CLI-only), so every call site in the shells,
# pj and the cables passes --inline. A channel that sets its own
# [ui.preview_panel] resets these fields to tv's defaults (rounded border),
# so cables leave that table alone.
[ui.input_bar]
# Where to place the input bar in the UI (top or bottom)
position = "top"
# The input prompt string (defaults to ">" if not specified)
prompt = ">"
prompt = "❯"
# header = "{}"
# padding = {"left": 0, "right": 0, "top": 0, "bottom": 0}
border_type = "rounded" # https://docs.rs/ratatui/latest/ratatui/widgets/block/enum.BorderType.html#variants
border_type = "none"
# a blank row between the query and the results
padding = { left = 1, right = 1, top = 0, bottom = 1 }
[ui.status_bar]
# Status bar separators (bubble):
#separator_open = ""
#separator_close = ""
# Status bar separators (box):
separator_open = ""
separator_close = ""
hidden = false
# f12 toggles it back
hidden = true
[ui.results_panel]
border_type = "rounded"
# padding = {"left": 0, "right": 0, "top": 0, "bottom": 0}
border_type = "none"
padding = { left = 1, right = 1, top = 0, bottom = 0 }
[ui.preview_panel]
# Preview panel size (percentage of screen width/height)
size = 50
#header = ""
#footer = ""
scrollbar = true
border_type = "rounded"
# padding = {"left": 0, "right": 0, "top": 0, "bottom": 0}
scrollbar = false
border_type = "none"
padding = { left = 2, right = 1, top = 0, bottom = 0 }
hidden = false
[ui.help_panel]