Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GUI key bindings? (documentation, extension) #69

Open
jwaldmann opened this issue Apr 18, 2020 · 3 comments
Open

GUI key bindings? (documentation, extension) #69

jwaldmann opened this issue Apr 18, 2020 · 3 comments
Labels
documentation Improvements or additions to documentation
Milestone

Comments

@jwaldmann
Copy link

jwaldmann commented Apr 18, 2020

This is just for increased convenience .. about key bindings in the web client:

  • which are there? Ctrl-Enter to send a block, and Ctrl-x,c,v seems to kill/copy/paste. Is there, e.g., a command to close/minimize the pane with the repl's messages? (The messages are fine, I need them, but I don't want to reach to the mouse to close the pane)
  • how can the user find out? (e.g., menu/key to show help text. I understand you don't want a menu at all because it would steal screen estate, and be a detraction in performance)
  • are they customizable? (e.g., I'd love to be able to use emacs/readline semantics for ctrl-a,e,p,n,y,k)

Of course this depends a lot on what you think the target audience is. Kids these days are probably using Atom-based editors also locally which, I assume, have this Ctrl-x,c,v for copy-pasting which feels completely alien to me.

@munshkr
Copy link
Owner

munshkr commented Apr 18, 2020

Key bindings are not documented yet:

  • Ctrl+Enter / Cmd+Enter: Send current block
  • Shift+Enter: Send current line
  • Ctrl+. / Cmd+.: Silence everything (depends on the target: hush in Tidal, Clock.clear() in foxdot, CmdPeriod.run in SC)

They are not customizable, but it's just a matter of building the UI for this.

The text editor is CodeMirror, which allows customizing key bindings. It actually has modes for Emacs and Vim baked into, it's just a matter of telling it to use it.

A help text could be useful too. I haven't bothered yet because I tried to keep the UI simple, but if we keep adding features, it will become necessary.

This project is pretty young, and I focused on normal editor features for the time being, but would be great to have that kind of customization. I'm mostly a Vim user so I can understand your needs :)

@jwaldmann
Copy link
Author

jwaldmann commented Apr 18, 2020

"telling it to use it" ... Sounds good. Too bad about C-n, C-w though (I tried the demo in the link).

PS: didn't know about C-.

@munshkr munshkr added the documentation Improvements or additions to documentation label Apr 21, 2020
@munshkr
Copy link
Owner

munshkr commented May 29, 2022

New key binding (to document):

  • Ctrl+Shift+H / Cmd+Shift+H: Show/hide text editors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants