Sublime Text plugin that extends Vintage with a function argument ('a') noun
- Total 505
- Win 358
- Mac 69
- Linux 78
|Apr 2||Apr 1||Mar 31||Mar 30||Mar 29||Mar 28||Mar 27||Mar 26||Mar 25||Mar 24||Mar 23||Mar 22||Mar 21||Mar 20||Mar 19||Mar 18||Mar 17||Mar 16||Mar 15||Mar 14||Mar 13||Mar 12||Mar 11||Mar 10||Mar 9||Mar 8||Mar 7||Mar 6||Mar 5||Mar 4||Mar 3||Mar 2||Mar 1||Feb 28||Feb 27||Feb 26||Feb 25||Feb 24||Feb 23||Feb 22||Feb 21||Feb 20||Feb 19||Feb 18||Feb 17|
Argument Noun is a Sublime Text 3 plugin that extends the Vintage mode with a new arguments noun (text object): 'a'. It is is similar to the argtextobj plugin for Vim by Takahiro Suzuki.
Example: let's say you are editing
foo(a, b*(c+d)) and the caret is somewhere inside the second argument. Triggering the change-inner-argument operation by typing
cia then gives you
foo(a, ) and you can insert some text to replace the old argument.
Read more about verbs, nouns and modifiers
- delete an argument with
- change inner argument with
- select inner argument with
- yank inner argument with
- via PackageControl
- clone to your Sublime Text 3
Packagesfolder located at
- Windows: %APPDATA%\Sublime Text 3
- OS X: ~/Library/Application Support/Sublime Text 3
- Linux: ~/.config/sublime-text-3
The plugin is quite syntax agnostic. It however makes the assumption that an argument list is wrapped in parenthesis, is preceded by a function name identifier, and that arguments are comma separated.
If two identifiers are separated by only a newline and white space it is assumed that a right parenthesis after the first identifier is missing, i.e.
myfunction(a, b, c x = 5
is handled as if
c had been followed by
). This ensures that the argument region does not get too large in case of incorrect syntax.
Only commas at the correct level of nesting are treated as argument separators so eg. usage of Python tuples shouldn't pose any problem.
Method calls without parenthesis (like in Ruby) are not supported at this time.
Comments intermingled with arguments are not supported at this time.
Created by Nils Liberg