Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Action to goto position without setting up the wanted_column #40

Closed
kandu opened this issue May 4, 2020 · 1 comment · Fixed by #41
Closed

New Action to goto position without setting up the wanted_column #40

kandu opened this issue May 4, 2020 · 1 comment · Fixed by #41

Comments

@kandu
Copy link
Collaborator

kandu commented May 4, 2020

To make the editing engine more flexible so upper layer API can simulate some more complicated actions, we may need a new action.

The current Next_line and Prev_line actions are very handy, they set the position without poking wanted_column. If the latest column exceeds the eol of the target line, the cursor will be placed next to the eol position. But this is not how vi behave in its normal mode.

My proposal is to add a new action, so the upper layer, lterm_vi for instance, can be vi compatible. It then can calculate the proper position by itself and tell zed to goto the target position without poking wanted_column, either.

What will be the proper name for the new action?
Place
Position
Teleport
any suggestions?

@kandu
Copy link
Collaborator Author

kandu commented May 4, 2020

cc @emillon @pmetzger @jeremiedimino

@kandu kandu changed the title New Action to goto positon without setting up the wanted_column New Action to goto position without setting up the wanted_column May 4, 2020
@kandu kandu closed this as completed in #41 May 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant