1995eaton / chromium-vim

Vim bindings for Google Chrome.
https://chrome.google.com/webstore/detail/cvim/ihlenndgcmojhcghmfjfneahoeklbjjh
MIT License
2.25k stars 325 forks source link

My issues with cVim (text editing, focusing, other minor things) #540

Open ghost opened 7 years ago

ghost commented 7 years ago

On the whole, I really like using cVim. However, there are some things that I have found to be somewhat annoying, and I haven't seen these issues being addressed in other posts. So here we go:

1) Scrollable input field won't scroll down as you move down the input field When I am editing in a text box and I am going forward some lines using "forwardLine", I sometimes go past the bottom of the currently visible text. However, the text box doesn't scroll with the caret like it would when I use the down arrow key in a scrollable text field. This means that I can't see where the caret is or what I am modifying in the input field without having to manually scroll down. I would like any scrollable input field to scroll down as I am moving my caret down the input field.

2) Can't use cVim shortcuts on specific pages For some reason, I can't use any shortcuts or activate any commands when I am on Chrome's official pages, like the Chrome Web Store or an "error/site can't be reached" page. I would like to use cVim shortcuts wherever in Chrome

3) Current find item should be in the middle of the page After I type in my query for the "find" command, several results are highlighted, and I need to cycle through them to find what I want. However, as I am cycling down, I notice that the currently highlighted item is always at the very bottom of the page or sometimes at the very top of the page. I would prefer if the current item was near the middle of the page so that 1) I don't have to always keep my eyes at the very bottom of the page as I am going down all the highlighted instances 2) I always get to see the full context of that item, i.e. the content before and after it.

4) No select while moving over text? I generally like the editing shortcuts that cVim has for input boxes, but one thing I don't like is that there are no shortcuts to select text while you are traversing it, e.g. executing "backwardWord" while simultaneously selecting the word that you traversed backward. This is such a convenient shortcut, so I have no idea why cVim doesn't already have it. I would like the ability to select text as you move the caret over it. (in all directions and at one character or one word at a time).

  1. How to defocus from input box There already exist shortcuts that would allow me to focus on an input box for editing. However, I can't use any non-imap shortcuts while I am editing, so I have to manually defocus from the input box to use the other keyboard shortcuts. Is there a handy shortcut that would allow me to remove the focus from the currently focused input box so that I can use other shortcuts? I am not asking for a shortcut that would move my focus to some other element on the page like tabbing would, because that might focus onto a button or another input field. I would prefer a shortcut that would allow me to defocus from the currently focused input box.

  2. Improve the UI of the configuration file page I feel like the configuration file page (where you would save the configuration file) is very hard and inconvenient to use, simply because the "save" button is in this really awkward and far away place. This is especially bad when I am trying to do split screen and have this page be next to another website. The shrinking causes the "save" button to disappear, so I have to manually resize the page to take up 3/4 of my screen just to hit the "save" button. This is actually a big issue for me, considering that I want to save frequently after I am making major adjustments to my config file, and I usually use split screen so I don't have to go back and forth between the save page and another page. I would like if the "save" button were in a more accessible place and always visible despite the size of the window.

lehmacdj commented 7 years ago

I don't have an answer for all of these, but hopefully this is helpful feedback.

  1. I think this is a limitation of chrome extensions and is not fixable.
    1. You can defocus input boxes using <Esc> or <C-[>.
ghost commented 7 years ago

I guess I'll come to terms with the fact that I can't use cvim key bindings on official Chrome pages. Thanks for letting me know about the defocus shortcut! In my experience, < Esc> doesn't work all the time, but <C-[> does seem to work for everything.

cevhyruz commented 6 years ago

@lehmacdj I want to contribute to these problems? can you give me some pointers?

lehmacdj commented 6 years ago

@cevhyruz I'm not particularly involved in this project and don't know my way around the code well at all.