Hi all, I wanted to notify this board about a new plugin I wrote for evil called evil-args. It provides motions and text objects for delimited arguments. For example, `cia` changes: function(arg1, arg2, ar|g3.f()) to function(arg1, arg2, |) You can find more examples and the source at https://github.com/wcsmith/evil-args. Any feedback on code or issue reports would be welcome. --Connor
Cool! For which languages is targeted? I tried with C, which works but not for Lisp-like languages (tried Emacs Lisp and Clojure). I'm always getting this: (defun foo (|a b c d e f) ...) -> (defun foo (a b c d e f|) ...) (defun |foo (a b) ...) -> (defun foo (a b) ...|) ;;; clojure (defn foo [|^String a ^String b ^String c] ...) -> (defn foo [^String a ^String b ^String c|] ...) Best, Sanel On 03/21/14,Connor Smith wrote:
Hi all,
I wanted to notify this board about a new plugin I wrote for evil called evil-args. It provides motions and text objects for delimited arguments.
For example, `cia` changes:
function(arg1, arg2, ar|g3.f())
to
function(arg1, arg2, |)
You can find more examples and the source at https://github.com/wcsmith/evil-args. Any feedback on code or issue reports would be welcome.
--Connor
Sanel--thank you for the feedback. Indeed, it was written for c-type languages with "," or ";" delimiters. However, adding a space delimiter to evil-arg-delimiters makes it work as expected with Lisp lists. I have just added the ability to customize openers/closers/delimiters with customize-group (this is now documented in the README too). Connor
participants (3)
-
Connor -
Connor Smith -
Sanel Zukan