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

Add ability to move text cursor by words #12

Merged
merged 2 commits into from
Nov 8, 2020
Merged

Add ability to move text cursor by words #12

merged 2 commits into from
Nov 8, 2020

Conversation

chiroptical
Copy link
Contributor

@chiroptical chiroptical commented Oct 30, 2020

Currently, text cursors only move one character at a time. In this PR, I added functions which allow you to move more than one character at a time. For example, using pseudo code to represent a cursor as a single string where ^ indicates the position of the cursor,

example result
beginWord "hell^o" "^hello"
endWord "hell^o" "hello^"
nextWord "hel^lo world" "hello ^world"
prevWord "hello w^orld" "hello^ world"

TODO

  • Run ormolu (I previously ran hindent because I saw .hindent.yaml)
  • Run hlint

@NorfairKing
Copy link
Owner

Lovely! Let's discuss this on stream!

@NorfairKing NorfairKing merged commit fadd9e8 into NorfairKing:master Nov 8, 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 this pull request may close these issues.

2 participants