Expose a command
romgrk opened this issue · comments
Rom Grk commented
Mapping a command is less verbose than mapping a lua function.
Chen Shuaimin commented
Ideally we can use ssr rules with command like :SSR f($a) ==>> $a.f()
, but this is not possible now because I don't know how to specify context node. Maybe we should make context optional?
Guillaume Girol commented
Maybe the context node can be the first match in the current line (or in the selection with '<,'>
) ?