Raised This Month: $ Target: $400
 0% 

[tools] Auto-increment version plugins for sublimetext 2


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ppalex
Senior Member
Join Date: Nov 2012
Location: Russia, near the Moscow
Old 01-31-2013 , 03:04   [tools] Auto-increment version plugins for sublimetext 2
Reply With Quote #1

Description/Features:
When saving any file with ".sp" extension, plugin automatically searches string
Quote:
#define VERSION "ХХ.XX.XXX"
or
Quote:
#define PLUGIN_VERSION "ХХ.XX.XXX"
and increments last XXX by 1.

Installation:
Unpack archive to your \Sublime Text 2\Packages\User directory. On my system this path looks like C:\Users\***\AppData\Roaming\Sublime Text 2\Packages\User
Attached Files
File Type: zip version_inc.zip (1.4 KB, 140 views)

Last edited by ppalex; 01-31-2013 at 12:17. Reason: updated plugin
ppalex is offline
mcpan313
Senior Member
Join Date: Mar 2010
Old 01-31-2013 , 11:54   Re: [tools] Auto-increment version plugins for sublimetext 2
Reply With Quote #2

Thanks!

Quote:
Originally Posted by ppalex View Post
#define\sVERSION\s\"\d{1,2}\.\d{1,2}\.\d{1,3} \"
Should be better.
Code:
^#define\s+PLUGIN_VERSION\s+\"\d{1,2}\.\d{1,2}\.\d{1,3}\"
And Dillon Beliveau's SourcePawn Syntax Highlighting for Sublime Text 2 doesnt have build system, function/words auto-completion.

If you need this, see my version or Austin Wagner's version.
__________________
sorry, for my poor english.
mcpan313 is offline
Send a message via MSN to mcpan313
ppalex
Senior Member
Join Date: Nov 2012
Location: Russia, near the Moscow
Old 01-31-2013 , 12:19   Re: [tools] Auto-increment version plugins for sublimetext 2
Reply With Quote #3

Quote:
Originally Posted by mcpan313 View Post
Should be better.
Code:
^#define\s+PLUGIN_VERSION\s+\"\d{1,2}\.\d{1,2}\.\d{1,3}\"
Updated to
Code:
^#define\s+(?:PLUGIN_)?VERSION\s+\"\d{1,2}\.\d{1,2}\.\d{1,3}\"
to support both variants

Quote:
Originally Posted by mcpan313 View Post
If you need this, see my version or Austin Wagner's version.
Thank you too!
ppalex is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:36.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode