You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great to able to take consecutive command calls into account to allow for a much faster iterative movements around the text
For example, instead of mapping goto_line_start and goto_line_end to two different buttons (let's say, to h and n) you could make h a "double tap" that would execute a special ["goto_line_start"; "goto_line_end"] command sequence like so:
goto_line_start on the 1st call
goto_line_end on 2nd consecutive call (if you press anything else after the 1st call it resets)
Alternatively, you could make a chain of commands that would go beyond the start of the first line:
goto_line_start on the 1st call
go to a start of the current block/paragraph on the 2nd consecutive call (currently not implemented)
go to a start of the previous block/paragraph on the 3rd consecutive call (currently not implemented)
etc.
Or a ["toggle_comments_line"; "toggle_comments_block"] command could
comment out a line on 1st call (just like toggle_comments)
comment out a block (e.g., the whole function) on 2nd consecutive call (not implemented)
Or with the new command extend_to_first_nonwhitespace a double tap command could:
extend_to_first_nonwhitespace on 1st call
extend_to_line_start on 2nd all
Now, some of the more advanced commands would as far as I understand have to defined as be part of a plugin, but maybe the consecutive bit could be an adjustment to existing command chaining functionality?
This discussion was converted from issue #1486 on April 07, 2024 00:35.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
It would be great to able to take consecutive command calls into account to allow for a much faster iterative movements around the text
For example, instead of mapping
goto_line_start
andgoto_line_end
to two different buttons (let's say, to h and n) you could make h a "double tap" that would execute a special["goto_line_start"; "goto_line_end"]
command sequence like so:goto_line_start
on the 1st callgoto_line_end
on 2nd consecutive call (if you press anything else after the 1st call it resets)Alternatively, you could make a chain of commands that would go beyond the start of the first line:
goto_line_start
on the 1st callOr a
["toggle_comments_line"; "toggle_comments_block"]
command couldtoggle_comments
)Or with the new command
extend_to_first_nonwhitespace
a double tap command could:extend_to_first_nonwhitespace
on 1st callextend_to_line_start
on 2nd allNow, some of the more advanced commands would as far as I understand have to defined as be part of a plugin, but maybe the consecutive bit could be an adjustment to existing command chaining functionality?
Beta Was this translation helpful? Give feedback.
All reactions