Skip to content

Latest commit

 

History

History
43 lines (43 loc) · 2.22 KB

TODO.org

File metadata and controls

43 lines (43 loc) · 2.22 KB

What is left?

Motion commands

search commands [2/2]

  • [X] f Issue with multiple cursors (asks for char for each cursor)
  • [X] / (partially through phi-search) Need to find out how to make phi-search select the found string(s). Explore phi-search-mc

line commands [0/3]

  • [ ] goto/select to end of line
  • [ ] goto/select to beginning of line
  • [ ] extend selection to whole line

other commands [1/11]

  • [X] % - select whole buffer
  • [ ] ` - change case
  • [ ] ’ - rotate main selection
  • [ ] ; - reduce selections to their cursor
  • [ ] y
  • [ ] p
  • [ ] m
  • [ ] o
  • [ ] q
  • [ ] g
  • [ ] u

explore toggle for word, symbol and WORD

I think creating a toggle would be nice to keep the bindings simple yet provide the option to move by words, symbols or WORDS.

Editing commands [4/6]

  • [X] c
  • [X] d
  • [X] i
  • [X] a
  • [ ] r
  • [ ] R

Minor mode setup

Right now the minor mode is simply run globally which is, well, bad :) It should only run on normal buffers, i.e. skip minibuffer, special modes, stuff like that. Maybe we should look into how evil does this.

evil integration?

Evil allows defining a new state (like it has normal, insert, motion etc.). Maybe we could define a new state for our code and that way inject us into evil? It is a mature library that surely solves many issues. Integration might not be that simple though. For now it would be enough to check how bindings like c or i change the state and see if we could use that. That way we would have a working insert mode and would only need to set our state as the default for evil.

Spacemacs integration

Ideally this would be another editing style, but not sure if that’s possible. For now (I THINK) it would be enough to provide a spacemacs layer that could be enabled in emacs mode. This way we could simply include this mode and possibly fall back to some of evil’s nicities later.

Point and region cooperation

When a region is selected point sits after it, which is not the case in evil. Maybe we can fall back on their implementation? Or we can keep the implementation simple for now and see what comes.