document w
b
e
also select
#10458
Replies: 15 comments
-
This is indeed intentional, and is used for things such as |
Beta Was this translation helpful? Give feedback.
-
Hm.. is there some command to only move the cursor word wise? In any case this should probably be documented. |
Beta Was this translation helpful? Give feedback.
-
Can you elaborate? |
Beta Was this translation helpful? Give feedback.
-
In vim, w and b are used to move the cursor to the beginning of the next/previous word, respectively. And I use this command quite a lot. I think this is a very important command in general. For selecting text there could always be a selection mode, where any movement command extends the selection. This is how vim does it and I always found it very comfortable. Because you don't select text that often. Usually when you select something it is to copy, delete or replace a block of text, but most of the time you are probably just navigating the file or writing in insert mode. |
Beta Was this translation helpful? Give feedback.
-
This is not the case with Helix. In Helix, in order to manipulate some text, you need to select it first, e.g. the example I mentioned before: pressing |
Beta Was this translation helpful? Give feedback.
-
Yes, this is what I do in vim right now. Maybe I just have to get used to it, but my problem with this right now is that it creates a visual selection when I just want to move the cursor, which is very distracting at the moment. |
Beta Was this translation helpful? Give feedback.
-
If you really want invisible selections (which I wouldn't recommend), you can edit the theme file of the theme you're using. Specifically the |
Beta Was this translation helpful? Give feedback.
-
Well no, I still want to see selections I make in selection mode. It is just that I don't want to see a selection when I am just moving the cursor, obviously. When I want to select something, I am fine with pressing an extra key. It is better to have shorter commands, but not at the cost of having distracting visual feedback that has nothing to do with my task. If a command like |
Beta Was this translation helpful? Give feedback.
-
I agree it would be nice to also have word-wise cursor movements commands, that don't select anything. I find myself avoiding using
Honestly, I don't find myself doing that very much either. The resulting selection starts from where the cursor was, so unless I happen to already have my cursor perfectly placed (which usually isn't the case), the selection only ends up selecting part of the word. For me, a "select the word currently under the cursor" command would be far more useful, so no matter where the cursor is within the word, the entire word gets selected. I don't mean that the existing commands should be removed, by the way. Just that I understand where @mankinskin is coming from, and would like to also have commands that address those workflows. |
Beta Was this translation helpful? Give feedback.
-
I would say this is primarily a documentation issue, this behavior is expected and matches kakoune. I also didn't like this behavior initially and had w/b/e move without selecting for a few months, but after experimenting a bit I think it's much more ergonomic: If you want to collapse the cursor you can always press It's not any more visually distracting than seeing the cursor move, it just takes some time getting used to: there's no such thing as a cursor vs a selection, a cursor is simply a single character selection. |
Beta Was this translation helpful? Give feedback.
-
Remapping w to |
Beta Was this translation helpful? Give feedback.
-
From what I recall I almost never had the need to press |
Beta Was this translation helpful? Give feedback.
-
@pickfire yeah, I think it is just not the way it is meant to be used. I am just used to vim, where selections work a bit differently. But I think I can get used to this. I am just missing a few other features at the moment, but that is expected. The base of the editor seems solid, it looks good and I think with a few more extensions to the command language this can become a great next-gen modal editor. I am definitely looking forward to it. I will also see if there are things I can help out with. |
Beta Was this translation helpful? Give feedback.
-
That sounds good to me! |
Beta Was this translation helpful? Give feedback.
-
Hey, i am trying out helix and i think i am in love 😄 but actually for me this was also the issue. First thing i did is map my
It could be configurable by each movement separately. Btw, |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In the documentation
w
andb
are said to "move to next/previous word start" but they also seem to select the text the cursor jumps over. Is this on purpose? I find it rather distracting and don't see when this would be useful right now. I usew
andb
mainly for in-line movement and when I want to select something, I would enter select mode at the start of the selection and then move to the end of the selection.Beta Was this translation helpful? Give feedback.
All reactions