Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clear (or delete) whole line in Vomnibar shortcut #59

Closed
ww7 opened this issue Jul 29, 2019 · 8 comments
Closed

Clear (or delete) whole line in Vomnibar shortcut #59

ww7 opened this issue Jul 29, 2019 · 8 comments

Comments

@ww7
Copy link

ww7 commented Jul 29, 2019

On Win ctrl+backspace and on Mac cmd+backspace will delete all chars from cursor to line start.
Is a possible to have this in Vimium-C ?

@gdh1995
Copy link
Owner

gdh1995 commented Jul 29, 2019

In my test, all of Chrome, Notepad, CMD on Windows 10 x64 use "Ctrl+Backspace" to delete a word (from cursor to its left word boundary), and Vomnibar too.

@ww7
Copy link
Author

ww7 commented Jul 29, 2019

Sorry.
Not work with Firefox on Mac.
But works on Chrome on Mac and Firefox on Windows.

@gdh1995
Copy link
Owner

gdh1995 commented Jul 30, 2019

What's the shortcut you said "not work with Firefox on Mac"? Is it Ctrl+Backspace for deleting a word, or for deleting a line?

@ww7
Copy link
Author

ww7 commented Jul 30, 2019

On the Mac in text fields we have next shortcuts
Opt(Alt)+Backspace — delete a word
Cmd(not a Ctrl)+Backspace — delete a line

On the Chrome (mac) in Vomnibar Opt+Backspace and Cmd+Backspace delete a word
On the Firefox (mac) this shortcuts not work

@gdh1995
Copy link
Owner

gdh1995 commented Jul 31, 2019

I have no Mac, so the code can only be tested on Windows, and behavior on Mac is from my guesses... This is why the shortcuts behavior wiredly on Mac. I'll try to borrow one and fix them.

gdh1995 added a commit that referenced this issue Aug 1, 2019
on Win/Mac: try to use/simulate native shortcuts of Chrome/Firefox

This is a fix for #59.
@gdh1995
Copy link
Owner

gdh1995 commented Aug 2, 2019

Hello, I've made a test version and you may take a try:

  • vimium_c-1.76.3-chrome.zip vimium_c-1.76.3-fx.zip
  • on Firefox, the feature of deleting a word is not JS-acccessible
    • so on Firefox & Windows, I map Alt+Backspace to delete a whole line of Vomnibar input
    • and on Firefox & Mac, the Ctrl+Backspace has to do nothing.
  • If you get any idea about such shortcuts or find any other key is lacking, please do me a favor and share it here.

@ww7
Copy link
Author

ww7 commented Aug 6, 2019

Sorry for late response, test version works on Firefox, thanks!

@gdh1995
Copy link
Owner

gdh1995 commented Aug 12, 2019

Version 1.76.4 has been released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants