Skip to content
Snippets Groups Projects
  1. Feb 17, 2015
  2. Feb 09, 2015
  3. Jan 24, 2015
  4. Jan 14, 2015
  5. Jan 09, 2015
  6. Dec 29, 2014
  7. Dec 22, 2014
  8. Dec 21, 2014
  9. Dec 14, 2014
  10. Dec 09, 2014
  11. Dec 01, 2014
  12. Nov 29, 2014
  13. Nov 21, 2014
  14. Nov 19, 2014
    • Yunchi Luo's avatar
      [vim] Visual mode rewrite · c78d76c8
      Yunchi Luo authored
      I'm rewriting the way that visual mode is written to:
      1. Fix some tricky bugs, like https://github.com/codemirror/CodeMirror/issues/2913, and a couple I uncovered while doing this. (Unit tests updated)
      2. Significantly simplify blockwise visual mode
      
      The core of the changes here is that I'm creating a vim selection model. The selection model consists of
      
      ```
      vim.sel.head
      vim.sel.anchor
      vim.visualMode
      vim.visualLine
      vim.visualBlock
      ```
      
      I'm creating a 2-way binding between the vim and codemirror selection models. All motions now rely only on the vim selection model. Operators and actions still rely on the codemirror selection model, since they operate directly on the text.
      
      Sorry for the gigantic change but I couldn't make it any smaller and still pass all the tests... I'm planning to delete `getSelectedAreaRange`, `getLastSelectedAreaRange`, and `selectBlock` in future changes as they are obsolete now that vim keeps its own selection model.
      
      An added bonus here is that visual line mode now has a cursor that can be moved.
      c78d76c8
  15. Nov 17, 2014
  16. Nov 06, 2014
  17. Nov 04, 2014
  18. Oct 28, 2014
  19. Oct 27, 2014
  20. Oct 25, 2014
  21. Oct 24, 2014
  22. Oct 16, 2014
  23. Oct 12, 2014
  24. Oct 11, 2014
  25. Oct 05, 2014
  26. Sep 30, 2014
  27. Sep 29, 2014
  28. Sep 23, 2014
  29. Aug 19, 2014
  30. Aug 14, 2014
  31. Aug 11, 2014
  32. Jul 31, 2014
  33. Jul 23, 2014
Loading