@schpet oh! Hmmmm… sounds like you’d have to replace or hook into readline. Sorry no idea.
Top-level
@schpet oh! Hmmmm… sounds like you’d have to replace or hook into readline. Sorry no idea. 4 comments
@alloydflanagan OK, i think it's `Alt`+`E` but for whatever reason alt is giving me grief on a mac https://fishshell.com/docs/current/interactive.html#shared-bindings > Alt+E edit the current command line in an external editor. The editor is chosen from the first available of the `$VISUAL` or `$EDITOR` variables. @alloydflanagan wrote this up here: so happy to figure this out @schpet I didn’t know that one either. They didn’t borrow that one from Emacs. There, it runs the current LISP expression. |
@alloydflanagan huh – so after looking into a bit i found out that bash supports this via ctrl-x-e:
**edit-and-execute-command (C-x C-e)**
https://www.gnu.org/software/bash/manual/html_node/Miscellaneous-Commands.html#Miscellaneous-Commands
this... is something i would have liked to have known a decade ago. now i need to find the equivalent in fish