#🧵 bikeshed prompt mode toggle

1 messages · Page 1 of 1 (latest)

patent mountain
#

Currently you type ! at the start to swap (and stick) to shell mode, and > to swap (and stick) to prompt mode. It would be nice if there was a single keymap to toggle instead. Any ideas?

#

🧵 bikeshed prompt mode toggle

#
  • Has to not conflict with any keybinds in common desktop environments or editors
  • Probably can't use alt at all because of macOS
  • Ideally something with precedent
#

Option 1: press tab with an empty input

  • Downside: conflicts with tab completion, hence "with an empty input"
patent mountain
#

leaning towards ctrl+space at the moment
cc @rustic moat @whole plaza does that conflict with any of your existing envs? (terminal apps, editors, desktop environments, etc)

rustic moat
#

to be clear, it's the default system config, I didn't configure that shortcut

patent mountain
#

yeah that's the sort of thing i'm watching out for 👍

whole plaza
patent mountain
#

can't use ctrl+\ because that sends SIGQUIT, and I think is also a 1Password keybind?

whole plaza
#

I'm not opposed to tab with empty input if we don't find a more obvious bind using ctrl

#

Or > as a toggle

patent mountain
#
  • ctrl+] <- possibly hard to type on non-US layouts?
  • ctrl+. <- maybe easy to remember since it's just ctrl+. isntead of shift+. (to type >) (at least on US)
#

grr ctrl+. isn't actually bindable for some reason

#

maybe it is with bubbletea v2...?

patent mountain
#

ok bubbletea v2 way too much change to try and sneak in

#

@rustic moat is ctrl+] too annoying?

rustic moat
#

Maybe crazy but how do you feel about Ctrl-1 for shell mode, Ctrl-2 for prompt mode, leaving implicit slots for more, eg. multi-agents?

patent mountain
#

those are also not bindable 😦

rustic moat
#

ah

patent mountain
#

need bubbletea v2, which is a huge lift

#

ctrl+left/right arrow works

#

oh but that's used for moving back/forward word-by-word

#

maybe we should just ship with one of these https://techkeys.us/products/onekeyboard

#

how about shift+tab?

#

initially thought it might conflict with tab completion (cycle to prev option) but it doesn't seem to be used for that atm

rustic moat
#

In other apps it's the reverse of tab, when cycling through input elements. But doesn't apply in terminal I guess.

patent mountain
#

yeah

#

it's a little awkward tbh but it seems like we have slim pickings at the moment