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

wip: motions with count #17

Draft
wants to merge 37 commits into
base: main
Choose a base branch
from
Draft

wip: motions with count #17

wants to merge 37 commits into from

Conversation

tris203
Copy link
Owner

@tris203 tris203 commented May 12, 2024

I dont know if I like this.
When entering a command the UI is blocked, so we have to do the keyfeed of escaping and feeding it back in

TODO:
strings need to be fed back in in full, eg 2d3w, so the utils will have to return the string and the count
For some reason the reset in ui_attach doesn't work, it returns {} when it resets
but #content, and various nots and ~=vim.empty_dict() all fail to work properly

Closes #35

@tris203
Copy link
Owner Author

tris203 commented May 14, 2024

Okay. So I am an idiot I think

The reset is working fine
But it resets to 1 when I do the esc hack to force a redraw

I need a better way to be able to update the extmark when in the middle of a motion

If that's even possible

@tris203
Copy link
Owner Author

tris203 commented May 14, 2024

this now works for horizontal motions

current issues:

  • doesn't work properly in visual mode
  • needs e2e tests as there is a lot going on here

@tris203 tris203 marked this pull request as ready for review May 22, 2024 18:32
@tris203 tris203 marked this pull request as draft May 25, 2024 12:17
@tris203 tris203 added this to the 1.1.0 milestone Jun 1, 2024
This commit adjusts the alignment of comments in the init.lua file
of the precognition module. The changes are purely stylistic and
do not affect the functionality of the code.
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 this pull request may close these issues.

Hint {count}w and {count}e or that's just crazy?
1 participant