rococode / vimflowy

archived - I switched to plaintext [my personal fork, not a clean dev environment. commits cherry-picked from here to PR to master]
https://vimflowy.netlify.com/
MIT License
0 stars 0 forks source link

gj/gk support #3

Open rococode opened 5 years ago

rococode commented 5 years ago

See: WuTheFWasThat/vimflowy#62

Thoughts from @WuTheFWasThat

kinda brittle, but maybe:

  • add data attributes with row/column, use to get div corresponding to cursor
  • iterate through $('.cursor').siblings() either backwards/forward through $('.cursor').index(), find all things differing in offset().top and differing minimally in offset().left
  • use data attributes to know where to move cursor
WuTheFWasThat commented 5 years ago

excited if you could add these features! let me know if you want to chat/have questions about code or design stuff

rococode commented 5 years ago

Yeah, hoping to do this asap so I can stick some of my current written work into vimflowy haha. Probably will do some of the easier tasks first to get a feel for the codebase, I'll definitely let you know if I have questions about the code/design!