Sublime Text plugin that extends Vintage with a function argument ('a') noun
- Total 315
- Win 224
- OS X 39
- Linux 52
|Feb 24||Feb 23||Feb 22||Feb 21||Feb 20||Feb 19||Feb 18||Feb 17||Feb 16||Feb 15||Feb 14||Feb 13||Feb 12||Feb 11||Feb 10||Feb 9||Feb 8||Feb 7||Feb 6||Feb 5||Feb 4||Feb 3||Feb 2||Feb 1||Jan 31||Jan 30||Jan 29||Jan 28||Jan 27||Jan 26||Jan 25||Jan 24||Jan 23||Jan 22||Jan 21||Jan 20||Jan 19||Jan 18||Jan 17||Jan 16||Jan 15||Jan 14||Jan 13||Jan 12||Jan 11|
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.
- 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