2012年12月27日木曜日

用sublime text向文本中插入纵向递增数字



http://www.sublimetext.com/forum/viewtopic.php?t=5706&f=4




Re: HowTo: Insert continuing numbers

Postby Jim on Fri Mar 02, 2012 9:54 pm
Works crazyarm , many thanks.

And the class name from
"class PromptIncrementNumberWithPaddingCommand()"

without "command" and the words separated by underscore

is the trigger to use in the keymap like
{ "keys": ["ctrl+alt+n"], "command": "prompt_increment_number_with_padding" } ?

Was not that obvious for me as newbie.

That python still not looks familiar to me (VBS+JS) but looks like elegant coding.
(current, step, padding) = map(str, text.split(",")) looks very nice.
Is there an python howto especially for SublimeText snippets?
EDIT: ok, i try first => http://net.tutsplus.com/tutorials/pytho ... -2-plugin/

Thanks for all the help.
Jim (on Windows XP and Win7)

向文本中插入递增数字
先选中要插入的纵列
shift + right click mouse + drag
ctrl  + alt + n
很好用的功能,emedit要加个插件,不知道这个是自带的还是要下个插件 我装了个inert number


0 件のコメント:

コメントを投稿