Feature: Add _ Motion #5

Closed
opened 2025-09-01 09:36:48 +00:00 by xsty · 0 comments
xsty commented 2025-09-01 09:36:48 +00:00 (Migrated from codeberg.org)

The _ motion would basically behave the same way as in (neo)vim, but with one exception:

if the cursor is already at the beginning of the indentation, and you press _ again, then the cursor would be sent to the beginning of the line.

Here's a small visualisation in case you need it:

let's imagine we begin at the end of the line

1  | • • • • a bunch of amazing words█

*Presses _ once*

1  | • • • • █ bunch of amazing words

*Presses _ again*

1  | █ • • • a bunch of amazing words
The _ motion would basically behave the same way as in (neo)vim, but with one exception: if the cursor is already at the beginning of the indentation, and you press _ again, then the cursor would be sent to the beginning of the line. Here's a small visualisation in case you need it: let's imagine we begin at the end of the line ``` 1 | • • • • a bunch of amazing words█ ``` \*Presses _ once\* ``` 1 | • • • • █ bunch of amazing words ``` \*Presses _ again\* ``` 1 | █ • • • a bunch of amazing words ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
NTBBloodbath/koa#5
No description provided.