Home Download Buy Blog Forum Support

TortoiseSVN, TortoiseGit and TortoiseHg Plugin

TortoiseSVN, TortoiseGit and TortoiseHg Plugin

Postby wbond on Mon Feb 28, 2011 5:48 am

Sublime Tortoise is a plugin for Sublime Text 2 that gives context-sensitive keyboard shortcuts, context menu entries and sidebar menu entries for SVN, Git and Mercurial through the TortoiseSVN, TortoiseGit and TortoiseHg programs on Windows.

Simply enter one of the shortcuts, or click the appropriate menu item, and Sublime Tortoise will start the appropriate Tortoise* window for the working copy the file is located inside of, in the case of working copy operations, or the file that is selected. No configuration is necessary and it works on any file.

http://wbond.net/sublime_packages/tortoise includes full documentation including installation instructions, keyboard bindings and settings.

Updates

Version 1.2.0
  • Added keyboard shortcut and file menu entry for blame command

Version 1.1.4
  • Fixed TortoiseHg support
  • Fixed handling of nested mercurial repositories
  • Improved TortoiseHg support so a cmd window is not shown even when a file path contains a space

Version 1.1.3
  • Fixed a bug with TortoiseProc.process_status() not properly referencing self.root_dir

Version 1.1.2
  • Fixed a bug with the Log and Diff menu entries showing for folders that were not under version control

Version 1.1.1
  • Removed a print line used for debugging

Version 1.1.0
  • Tweaked handling of statuses
  • Added the ability to disable menus
  • Added debug option

Version 1.0.8
  • Updated the keymap to actually require the ctrl+alt+v before the ctrl+alt+(letter) for the different commands

Version 1.0.7
  • Increased the status cache length to help prevent right-click lag on slower machines

Version 1.0.6
  • Fixed a bug with the detection of the svn binary for the Tortoise SVN context menu

Version 1.0.5
  • Fixed the plugin to work when custom paths are set for the Tortoise* binaries
  • Fixed the example Tortoise.sublime-settings

Version 1.0.4
  • Updated the plugin to work with TortoiseHg 2.x

Version 1.0.3
  • Changed references of Delete to Remove
  • Added documentation for menu items
  • Added the revert keyboard shortcut

Version 1.0.2
  • Added context menu and sidebar menu entries based on the current state of the file or folder

Version 1.0.1
  • Added an error message when trying to execute command on an unsaved file

Version 1.0.0
  • Initial release
Last edited by wbond on Sat Aug 27, 2011 11:33 am, edited 6 times in total.
wbond
 
Posts: 532
Joined: Mon Feb 28, 2011 5:33 am

Re: Sublime Text 2 Plugin for TortoiseSVN/TortoiseGit/TortoiseHg

Postby firefusion on Mon Feb 28, 2011 8:40 pm

Looks like an awesome plugin. However I can only get the first command to work on Windows 7 64bit, with the latest TortoiseHg 1.1.9 64bit and Sublime Text 2 bulid 2032

These commands don't work.

Code: Select all
** ctrl+alt+v, ctrl+alt+l - working copy log
** ctrl+alt+v, ctrl+alt+s - working copy status
** ctrl+alt+v, ctrl+alt+c - working copy commit
** ctrl+alt+v, ctrl+alt+u - working copy update/sync
* The following commands are run on the current file:
** ctrl+alt+v, ctrl+alt+f - diff file
** ctrl+alt+v, ctrl+alt+a - add file
** ctrl+alt+v, ctrl+alt+r - remove file
** ctrl+alt+v, ctrl+alt+g - log of file


This one does...
Code: Select all
** ctrl+alt+v, ctrl+alt+e - launch explorer to working copy
Last edited by firefusion on Mon Feb 28, 2011 10:25 pm, edited 1 time in total.
firefusion
 
Posts: 218
Joined: Fri Oct 16, 2009 7:37 am

Re: Sublime Text 2 Plugin for TortoiseSVN/TortoiseGit/TortoiseHg

Postby wbond on Mon Feb 28, 2011 9:15 pm

I am also running 2032 on Windows 7 64bit, with TortoiseHg 1.1.9.1.

Can you check and see if there is any console output (ctrl+`) when pressing the keys?
wbond
 
Posts: 532
Joined: Mon Feb 28, 2011 5:33 am

Re: Sublime Text 2 Plugin for TortoiseSVN/TortoiseGit/TortoiseHg

Postby firefusion on Mon Feb 28, 2011 10:25 pm

No errors output i'm afraid :P
firefusion
 
Posts: 218
Joined: Fri Oct 16, 2009 7:37 am

Re: Sublime Text 2 Plugin for TortoiseSVN/TortoiseGit/TortoiseHg

Postby wbond on Mon Feb 28, 2011 10:30 pm

Are you running the 64bit or the 32bit version of ST2?
wbond
 
Posts: 532
Joined: Mon Feb 28, 2011 5:33 am

Re: Sublime Text 2 Plugin for TortoiseSVN/TortoiseGit/TortoiseHg

Postby firefusion on Mon Feb 28, 2011 10:40 pm

The 64bit. This is what I get on startup if it helps at all.

Code: Select all
startup, version: 2032 windows x64 channel: stable
executable: /C/Program Files/Sublime Text 2/sublime_text.exe
working dir: /C/Windows/system32
packages path: /C/Users/robin/AppData/Roaming/Sublime Text 2/Packages
settings path: /C/Users/robin/AppData/Roaming/Sublime Text 2/Settings
error parsing session: No data at: 0:0
PackageSetup not required
catalogue loaded
found 1 files for base name Default.sublime-theme
found 3 files for base name Default (Windows).sublime-keymap
found 1 files for base name Main.sublime-menu
Reloading plugin C:\Users\robin\AppData\Roaming\Sublime Text 2\Packages\Default\comment.py
Reloading plugin C:\Users\robin\AppData\Roaming\Sublime Text 2\Packages\Default\copy_path.py
Reloading plugin C:\Users\robin\AppData\Roaming\Sublime Text 2\Packages\Default\delete_word.py
Reloading plugin C:\Users\robin\AppData\Roaming\Sublime Text 2\Packages\Default\detect_indentation.py
Reloading plugin C:\Users\robin\AppData\Roaming\Sublime Text 2\Packages\Default\duplicate_line.py
Reloading plugin C:\Users\robin\AppData\Roaming\Sublime Text 2\Packages\Default\exec.py
Reloading plugin C:\Users\robin\AppData\Roaming\Sublime Text 2\Packages\Default\find_under_expand.py
Reloading plugin C:\Users\robin\AppData\Roaming\Sublime Text 2\Packages\Default\font.py
Reloading plugin C:\Users\robin\AppData\Roaming\Sublime Text 2\Packages\Default\goto_line.py
Reloading plugin C:\Users\robin\AppData\Roaming\Sublime Text 2\Packages\Default\indentation.py
Reloading plugin C:\Users\robin\AppData\Roaming\Sublime Text 2\Packages\Default\kill_ring.py
Reloading plugin C:\Users\robin\AppData\Roaming\Sublime Text 2\Packages\Default\mark.py
Reloading plugin C:\Users\robin\AppData\Roaming\Sublime Text 2\Packages\Default\save_on_focus_lost.py
Reloading plugin C:\Users\robin\AppData\Roaming\Sublime Text 2\Packages\Default\scroll.py
Reloading plugin C:\Users\robin\AppData\Roaming\Sublime Text 2\Packages\Default\sort.py
Reloading plugin C:\Users\robin\AppData\Roaming\Sublime Text 2\Packages\Default\swap_line.py
Reloading plugin C:\Users\robin\AppData\Roaming\Sublime Text 2\Packages\Default\switch_file.py
Reloading plugin C:\Users\robin\AppData\Roaming\Sublime Text 2\Packages\Default\transform.py
Reloading plugin C:\Users\robin\AppData\Roaming\Sublime Text 2\Packages\Default\transpose.py
Reloading plugin C:\Users\robin\AppData\Roaming\Sublime Text 2\Packages\Default\trim_trailing_white_space.py
Reloading plugin C:\Users\robin\AppData\Roaming\Sublime Text 2\Packages\HTML\html_completions.py
Reloading plugin C:\Users\robin\AppData\Roaming\Sublime Text 2\Packages\Less\CompileLessOnSave.py
Reloading plugin C:\Users\robin\AppData\Roaming\Sublime Text 2\Packages\Tortoise\Tortoise.py
loading bindings
theme loaded
app ready
loaded 933 snippets
firefusion
 
Posts: 218
Joined: Fri Oct 16, 2009 7:37 am

Re: Sublime Text 2 Plugin for TortoiseSVN/TortoiseGit/TortoiseHg

Postby jbrooksuk on Tue Mar 01, 2011 11:13 am

All we need now is FTP ;)
jbrooksuk
 
Posts: 782
Joined: Sun Apr 11, 2010 10:37 am
Location: England

Re: Sublime Text 2 Plugin for TortoiseSVN/TortoiseGit/TortoiseHg

Postby wbond on Tue Mar 01, 2011 1:24 pm

@jbrooksuk

I am working on an SFTP plugin that is of beta quality on Windows. I don't currently have FTP support, but I am going to look into it once SFTP is pretty solid.

If anyone is interested in beta testing on Windows, Linux or OSX, shoot me an email at will@wbond.net.
wbond
 
Posts: 532
Joined: Mon Feb 28, 2011 5:33 am

Re: Sublime Text 2 Plugin for TortoiseSVN/TortoiseGit/TortoiseHg

Postby wbond on Tue Mar 01, 2011 1:26 pm

@firefusion

Can you try pasting this command into your console and see if you get any result? You should do it when you have a file open that is inside of your Hg working copy.

Code: Select all
sublime.active_window().active_view().run_command('tortoise_commit')
wbond
 
Posts: 532
Joined: Mon Feb 28, 2011 5:33 am

Re: Sublime Text 2 Plugin for TortoiseSVN/TortoiseGit/TortoiseHg

Postby jps on Tue Mar 01, 2011 1:36 pm

Also, when trying to work out why key bindings aren't working, it's handle to run sublime.log_commands(True) in the console, to verify that the commands are actually being run.
jps
Site Admin
 
Posts: 3077
Joined: Wed Mar 19, 2008 12:33 pm

Next

Return to Plugin Announcements

Who is online

Users browsing this forum: No registered users and 6 guests