mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-17 08:00:59 +00:00
l -> shift+l so one can search for l (#861)
This commit is contained in:
parent
68352a42cf
commit
d276c9fbe0
1 changed files with 2 additions and 2 deletions
|
|
@ -854,7 +854,7 @@ class TreeList implements Component {
|
||||||
this.searchQuery = this.searchQuery.slice(0, -1);
|
this.searchQuery = this.searchQuery.slice(0, -1);
|
||||||
this.applyFilter();
|
this.applyFilter();
|
||||||
}
|
}
|
||||||
} else if (keyData === "l" && !this.searchQuery) {
|
} else if (matchesKey(keyData, "shift+l")) {
|
||||||
const selected = this.filteredNodes[this.selectedIndex];
|
const selected = this.filteredNodes[this.selectedIndex];
|
||||||
if (selected && this.onLabelEdit) {
|
if (selected && this.onLabelEdit) {
|
||||||
this.onLabelEdit(selected.node.entry.id, selected.node.label);
|
this.onLabelEdit(selected.node.entry.id, selected.node.label);
|
||||||
|
|
@ -993,7 +993,7 @@ export class TreeSelectorComponent extends Container implements Focusable {
|
||||||
this.addChild(new Text(theme.bold(" Session Tree"), 1, 0));
|
this.addChild(new Text(theme.bold(" Session Tree"), 1, 0));
|
||||||
this.addChild(
|
this.addChild(
|
||||||
new TruncatedText(
|
new TruncatedText(
|
||||||
theme.fg("muted", " ↑/↓: move. ←/→: page. l: label. ") +
|
theme.fg("muted", " ↑/↓: move. ←/→: page. Shift+L: label. ") +
|
||||||
theme.fg("muted", "^D/^T/^U/^L/^A: filters (^O/⇧^O cycle)"),
|
theme.fg("muted", "^D/^T/^U/^L/^A: filters (^O/⇧^O cycle)"),
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue