-
Notifications
You must be signed in to change notification settings - Fork 58
Multi-keystroke patterns can't be created solely out of modifier keys. (like 'shift shift') #21
Comments
This is by design for now, but we may be able to support it. I excluded bare modifiers out of concern for ambiguity between the user hitting a modifier alone and the user hitting a modifier as part of a modified normal keystroke. When you press I think we could probably match bare modifiers on |
I'd love to see this feature. I'm trying to do the same thing as @krilnon with the back to back |
+1 to this feature |
Is it possible to configure around this design limitation? I'm used to double tapping ⇧ to launch Search Everywhere in PhpStorm. I would like atom to behave the same way with the following binding: '.editor':
'shift shift': 'fuzzy-finder:toggle-file-finder' |
Also IntelliJ(seems most of JetBrains IDEs) also supports ⬆️ ⬆️ to 'Search Everywhere' |
+1 |
5 similar comments
+1 |
👍 |
+1 |
+1 |
+1 |
+1 |
The big problem is distinguishing intentional bare-modifier keystrokes from someone just hitting the modifier key immediately prior to another character... for example, we need to distinguish the sequence Recognizing the bare modifiers as their own keystroke beyond the first in the sequence creates ambiguity in this regard. It's potentially solvable by matching against both the sequence including bare modifiers and the sequence with the modifiers stripped, but doing so does involve enough changes that I can't take the time to dive in and figure it out right now. |
+1 I have to context switch between IntelliJ and atom for work and I would love to add 'shift shift' into Atom. |
@nathansobo Do you have any idea which part of the code is responsible for the keystroke detection? I might have the time to dive into it. |
@nunobaba This is the line where we prevent handling of bare modifiers. You can follow the logic from there. It's going to take some creativity to allow multi-stroke bare modifier matches without interfering with ordinary matches. We currently just compare strings, for example, here. We could potentially perform a more sophisticated comparison where bare modifiers are selectively ignored. |
|
+1. I use the 'shift shift' in RubyMine all the time and it makes jumping between files really peachy. |
Count me it! I am also long to use this WebStorm feature in Atom! |
+1 for implementation. Switch between Webstorm and Atom daily. Would like the single 'shift shit' key command for both. :D |
+1 |
+1 this would be awesome, currently just binding "ctrl-shift" to "project-find:show", then using Esc to get out. Can't use :toggle because the input context doesn't move to the find box, like it does in :show |
looking for this as well. :) here's i what i'm using: '.platform-darwin':
'ctrl-shift': 'fuzzy-finder:toggle-file-finder |
+1 |
2 similar comments
+1 |
+1 |
Please support something like this.. (this one is used in Pycharm) |
+1 |
1 similar comment
+1 |
+1 |
1 similar comment
+1 |
Any progress on this? |
Oh, come on guys, two years since issue was created. We need this, is it that hard to implement? |
@vladshcherbin: Yes it is, please see @nathansobo's comment above. |
bump +1 |
bump +1 pls |
Begging for this... |
Thanks for the feedback everyone! However, all these +1s and bumps are just adding noise, so to minimize that I'm going to lock this issue for now – we may unlock it once someone starts working on this enhancement to get further feedback. |
It's hard to tell if this is by design or not, but I wanted to make a double tap of the shift key open the autocomplete menu. This approach works for doubled special keys and character literals, so I expected it to work for modifiers too.
Doesn't work:
Does work:
(I toggled the command palette in these examples but the same applies for autocomplete, etc.)
Is this broken or by design? And if it's by design, why?
Thanks! 🐹
The text was updated successfully, but these errors were encountered: