Skip to content

Commit

Permalink
Alternate keybinding for coc-dialog-input toggle-selection
Browse files Browse the repository at this point in the history
  • Loading branch information
laktak committed Nov 9, 2024
1 parent 3b8869a commit 80f1a4a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions bin/prompt.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ function getKey(key) {
if (key.name == 'f') {
return '<C-f>'
}
if (key.name == 't') {
return '<C-t>'
}
if (key.name == 'b') {
return '<C-b>'
}
Expand Down
2 changes: 1 addition & 1 deletion src/model/quickpick.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export default class QuickPick<T extends QuickPickItem> {
this.setCursor(this.currIndex + 1)
} else if (['<C-k>', '<C-p>', '<up>'].includes(key)) {
this.setCursor(this.currIndex - 1)
} else if (this.canSelectMany && key == '<C-@>') {
} else if (this.canSelectMany && ['<C-@>', '<C-t>'].includes(key)) {
this.toggePicked(this.currIndex)
}
}
Expand Down

0 comments on commit 80f1a4a

Please sign in to comment.