Page MenuHome

Providing bash shell shortcuts to the Blender terminal
Needs RevisionPublic

Authored by Vaishnav S (padthai) on Apr 22 2019, 5:44 PM.

Details

Summary

ctrl+A and ctrl+E are the standard shortcuts used in bash shell to move the cursor to the beginning and end of the line respectively. This patch provides these shortcuts in addition to the already existing ones.
This was originally suggested in https://blender.community/c/rightclickselect/8Wcbbc/. I think Tab to autocomplete would be more comfortable to use instead of ctrl+Space and like it's mentioned in the link, it also clears up that shortcut for maximizing the current view. SO would it be better to change it to Tab, or to let it remain as it is?

Diff Detail

Event Timeline

Campbell Barton (campbellbarton) requested changes to this revision.Apr 23 2019, 2:08 AM

Hi, I'm aware of the possibility of adding emacs/bash/readline key shortcuts but would prefer to avoid this for the default keymap.

Instead, we could have a keymap preference "Bash Keys" which enables conventions used by bash/readline.

This revision now requires changes to proceed.Apr 23 2019, 2:08 AM

To me this seems non-standard enough to not even have it as a preference, unless it's common in other REPL apps.