Added UNIX-like Ctrl+U, Ctrl+K, Ctrl+A and Ctrl+E shortcuts - #69
Added UNIX-like Ctrl+U, Ctrl+K, Ctrl+A and Ctrl+E shortcuts#69tomlandia wants to merge 1 commit into
Conversation
|
Can't this be done using our |
|
Ah maybe, adding an arg to ClearPromptText. But why wouldn't these shortcuts be built-in just like Ctrl-Left and Ctrl-Right, and like in GNU Readline? I use several sites using jqconsole and wouldn't like to patch each one... |
There was a problem hiding this comment.
can we make this into options instead. You can use destructering to have a nice syntax in the method definition:
_Delete: ({whole_word, whole_line}) ->And in the callsite:
_Delete(whole_word: true)There was a problem hiding this comment.
here is an interesting read about this http://ariya.ofilabs.com/2011/08/hall-of-api-shame-boolean-trap.html
|
I'm convinced :) Just a small comment then I'll pull it |
|
Uh do you want to switch to object parameter in this pull request or after pulling? |
|
it'd be great if we did it in this PR |
No description provided.