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