Closed luisherranz closed 3 years ago
Hi, both PRs are currently not passing linting. You can probably fix some errors by running this locally: npx xo --fix
You can probably fix some errors by running this locally: npx xo --fix
Done 👍
I found the commit that dropped this feature: https://github.com/luisherranz/GhostText/commit/c87caa95af5936f2afca2c0224ad7e93ea9f3a3d
And before that, there was additional logic: https://github.com/luisherranz/GhostText/blame/cd136f31a55f52d572defcaeec32143cddacab3b/browser/scripts/content.js#L127
I think the problem was: What happens when the field is already activated?
cc @subnut if you have any ideas
I actually didn't even know that there was a keyboard shortcut available :sweat_smile:
If possible, I think such behavior is best suited to a separate keybinding......
....OR, we could make a different function that does something like this -
and make the keyboard shortcut trigger this new function. (Clicking the icon shall retain the old function, though) So, both keyboard users and mouse users shall be happy(?)
Does @luisherranz agree with this approach?
If possible, I think such behavior is best suited to a separate keybinding......
Are you suggesting that the current situation works best as is?
....OR, we could make a different function that does something like this -
That'd be nice, but correctly locating the fields and attaching an element like that sounds problematic. I'd like to keep GhostText as lean as possible because I don't really have time to maintain it — as you may have noticed 😅
Are you suggesting that the current situation works best as is?
As I said, I didn't even know that the keybinding existed, so I have zero experience about working with it... so I don't really want to suggest anything..
Maybe other users who use the keyboard shortcuts should comment? I think that taking the comments of other users is necessary before changing anything...
As I said, I didn't even know that the keybinding existed, so I have zero experience about working with it... so I don't really want to suggest anything..
This is unrelated to the keyboard shortcut, this also applies to just clicking the button. Before v21, I think GhostText used to activate with just one click if the field was selected, or at least that's what the intention was.
Should the "activate" command be ignored?
I'm happy with that to be honest. The times I used the shortcut again in a field that was already activated were by mistake and ignoring it was the expected behavior.
Maybe it would be enough to give the user that information in the alert. Something like: "This field is already activated, please choose another one".
First of all, thanks for this wonderful extension! The concept is so simple and yet so powerful.
The new codebase (https://github.com/GhostText/GhostText/issues/172) is working great for me in Chrome + VimR.
But in applications with more than one textarea (like a search), the need to select the correct one with the mouse is annoying. It kind of ruins the purpose of having a keyboard shortcut. In my opinion, it makes sense that if you have already selected a textarea, you don't have to select it again.
If you don't want to make this the default, then please consider adding an option 🙂