Open name-snrl opened 3 months ago
Is this different than the general vim motion g_
?
Is this different than the general vim motion
g_
?
Of course, because the jump works across all windows and rows
I can't jump to the last character of the line.
but then you do not want to jump to the last character of the line, you want to mark/jump the last character-s of each line, is it correct?
but then you do not want to jump to the last character of the line, you want to mark/jump the last character-s of each line, is it correct?
What? I just want to jump to any character on the screen, including the last characters of the lines.
BTW, for the moment I found a workaround - use search mode. But there seems to be a bug with backslashes. You just can't use backslashes in search mode unless there is no backslash on the screen, in which case the search will instantly abort.
p.s. I haven't looked for issues that describe that, perhaps it already exists
Additionally, it would be nice if we could also jump to blank lines.
With leap, you can just do this by pressing s<space><space>
(assuming your "leap bind" is s
). Then it would show labels for every blank line (even if it doesn't actually have two spaces) and you can jump directly to them
with flash this is not currently possible, I believe
@name-snrl
function()
require("flash").jump({
search = { mode = "search", max_length = 0 },
label = { after = { 0, 0 } },
pattern = "^", -- replace with $ for end of line
})
end
This function is provided in the "Examples" section which can be used to go to the beginning of a line, but not at the end.
I think we should find a regex to put in the pattern
section which matches ^ AND $ that is, the beginning AND end of line.
Did you check the docs?
Is your feature request related to a problem? Please describe.
I can't jump to the last character of the line. May I missed something in doc, but I read it twice.
Describe the solution you'd like
I used leap.nvim and just type at EOL.
Describe alternatives you've considered
To go back to leap.nvim, idk. :D But flash is awesome!
Additional context