Replies: 2 comments
-
Adding a command for this seems unnecessary to me, you can do this with existing commands like either [keys.normal]
C-space = ["extend_to_line_bounds", "ensure_selections_forward", "extend_char_left"] |
Beta Was this translation helpful? Give feedback.
0 replies
-
To me it seems logical to look for a "select inside line" if I have a "select inside word" command. But I actually wasn't aware of the underscore binding which should already be a better alternative to "ght<ret>" in situations where I don't care about keeping other white space 👍 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As far as I can see, we do not have a convenient key combination for selecting an entire line excluding the trailing line break. This already bothered me in neovim as I often times would like to copy the contents of a line and paste it e.g. between some delimiters or copy a line to the system clipboard to paste it into another program.
Currently the shortest key combination seems to be "ght<ret>".
Lines could either become their own selection object mapped to the "l" key, such that you would type "mil" to "select inside line". Or line breaks could be added as delimiters, such that "mi<ret>" would select between the two surrounding line breaks. I would prefer the first options, as it would work at the end of a file without trailing line break as well and could be listed in the "select inside" help popup.
What's your thoughts and would the core maintainers accept a PR for one of these options?
Beta Was this translation helpful? Give feedback.
All reactions