Ctrl+R
Immediate command execution – What do you think?
#9938
Replies: 2 comments 2 replies
-
My immediate reaction to this proposal is a fairly clear "NO". I do not wish to make it harder to edit the line and I don't want to change this now so people used to the current behavior accidentally execute something they didn't mean to. And pressing enter twice is extremely easy. Your finger is already on the key. And if the first enter didn't allow you to edit the command, there wouldn't be an intuitive way to do so! You can't press space (that inserts a space), you can't press escape (that exits the pager), you would have to press a special key. And that makes the feature quite a bit worse. What's more:
Fish is not bash, and I would appreciate it if we could diverge in the minute key strokes, instead of being measured at bash-compatibility at the key-for-key level. In #9934 you even refer to it as "In normal bash", and I want us to get away from that perception. Bash isn't normal. |
Beta Was this translation helpful? Give feedback.
-
I like Ctrl+R to toggle but I fear that it's not discoverable. It would be unfortunate if a significant percentage of users didn't know how to edit the search result. It's a shame we can't use Tab for switching between input fields. |
Beta Was this translation helpful? Give feedback.
-
There's this reverse-i-search feature which lets you search through your command history:
Ctrl+R
Ctrl+R
once and then select an item from search with arrow-keysIn comparison to bash, this feature is much more rich in fish, showing multiple results at once.
Convenient. But what makes it less convenient at the same time is this:
Enter
twiceThis can be explained simply:
Enter
you first CHOOSE what a particular search resultEnter
you then EXECUTE the commandSo in-between of those two you have a chance to change the original command, thus the necessity of such.
Not sure about everyone but I personally TOO OFTEN just want to re-use exact command I used. No changing at all.
ENTER
WOULD BE REQUIRED, – JUST LIKE IN BASH.Thus, I ask you if you agree with this statement. And if yes, what other hotkey do you think would be best to replace existing
Enter
functionality? So you still would be able to somehow edit the selected command, whileEnter
would just execute the command right away just like in bash.Beta Was this translation helpful? Give feedback.
All reactions