Skip to content

Navgeet/subpar

 
 

Repository files navigation

SubPar

Andrew Cheng's SubPar ported to a LightTable plugin. This provides a more feature complete paredit implementation than the official Paredit.

Usage

Install the plugin from LightTable's plugin manager. You'll need to bind keys to commands defined in subpar.cljs. Here is my keymap.

Features

  • Delimiters
    • Backspace, Delete, Ctrl-D handle these: () {} [] "" \
    • Delimiters are created in pairs: () {} [] ""
    • Typing a closing delimiter moves past it after deleting any whitespace at the end of the current list
  • Movement
    • Forward
    • Backward
    • Backward Up
    • Forward Down
    • Backward Down
    • Forward Up
  • Barf / Slurp
    • Backward Barf
    • Forward Barf
    • Backward Slurp
    • Forward Slurp
  • Splicing
    • Splice
    • Splice Delete Backward
    • Splice Delete Forward

This still lacks several features so bug reports and feature requests are highly appreciated.

License

See MIT License file.

About

subset of ParEdit for CodeMirror

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 61.8%
  • Clojure 38.2%