fix: seeders-first default, compact footer, and folder-editor input isolation

Restore the seeders-desc default ordering that the new sort feature dropped,
so the healthiest torrents stay on top until `s` is pressed. Trim the
contextual footer (terse labels, folder key in the `?` overlay only) so the
added sort and folder keys never wrap it past one line. Gate the
download-folder editor on its own `editingFolder` flag instead of the shared
capture state, fixing the leak where `?`, `q`, and `m` fired through while
typing a path.
This commit is contained in:
bairon.dev
2026-06-30 00:14:05 -04:00
parent cc881aefc4
commit 7fa049ae9d
5 changed files with 19 additions and 13 deletions
+5 -7
View File
@@ -51,13 +51,13 @@ export const HELP_GROUPS: HelpGroup[] = [
},
];
const NAVIGATE: Hint = { keys: "↑ ↓ ← →", label: "Navigate content and panes" };
// Footer labels stay terse so the contextual hint row never wraps; the `?`
// overlay (HELP_GROUPS) carries the full, descriptive list.
const NAVIGATE: Hint = { keys: "↑↓←→", label: "Move" };
const ALWAYS: Hint = { keys: "?", label: "Keys" };
const SWITCH: Hint = { keys: "tab", label: "Switch pane" };
const FOLDER: Hint = { keys: "o", label: "Folder" };
const SWITCH: Hint = { keys: "tab", label: "Switch" };
export function footerHints(
region: Region,
@@ -70,7 +70,6 @@ export function footerHints(
NAVIGATE,
{ keys: "↵", label: "Open" },
SWITCH,
FOLDER,
ALWAYS,
{ keys: "q", label: "Quit" },
];
@@ -102,10 +101,9 @@ export function footerHints(
return [
NAVIGATE,
{ keys: "d", label: "Download" },
{ keys: "y", label: "Copy" },
{ keys: "s", label: "Sort" },
{ keys: "y", label: "Copy magnet" },
{ keys: "/", label: "Search" },
{ keys: "m", label: "Paste magnet" },
SWITCH,
ALWAYS,
];