Home Download Buy Blog Forum Support

New Mercurial plugin for Sublime Text 2

Re: New Mercurial plugin for Sublime Text 2

Postby guillermooo on Mon Jul 18, 2011 5:27 am

Haha. I hadn't realized the irony. But I actually push to both, now that hg-git's sort fo working again with Mercurial 1.9.
guillermooo
 
Posts: 728
Joined: Thu Jul 23, 2009 9:06 am

Re: New Mercurial plugin for Sublime Text 2

Postby guillermooo on Thu Jul 21, 2011 7:04 pm

Updated!

* Server is restarted if hg root isn't a prefix of the current file's path

The server should now always find the correct repository for the current file.

https://github.com/SublimeText/SublimeHg
guillermooo
 
Posts: 728
Joined: Thu Jul 23, 2009 9:06 am

Re: New Mercurial plugin for Sublime Text 2

Postby Mike Hopley on Tue Aug 30, 2011 4:13 pm

When I use this plugin, I can't work out how to get the hg command line to persist. Every time I enter a command, it disappears. Unfortunately this makes the plugin unusable for me; it's much more efficient to use an external command prompt.

For example, let's say I want to run hg status. This is what happens:

  • I press Shift + Control + P and select "SublimeHg: Open Hg Command Prompt"
  • The command prompt opens in a new editor panel. (Yay!)
  • I type "status"
  • The command prompt panel disappears (Boo!) and is replaced by a results panel (which shows the response from hg)

Now I want to run hg commit, perhaps followed by hg push. For each command, I have to start all over again. And when I'm debugging, this cycle repeats a lot.

Am I just being dense, or is this something that could be improved? It would be fantastic to get a persistent hg command prompt -- one less window for me to manage. :)
Mike Hopley
 
Posts: 1
Joined: Tue Aug 30, 2011 3:43 pm

Re: New Mercurial plugin for Sublime Text 2

Postby guillermooo on Tue Aug 30, 2011 6:10 pm

Agreed, it's very annoying. It used to be possible to reopen input panels on_done in ST1, but last time I tried in ST2 it wouldn't work. I'll be switching to Mercurial's own python client for the command server soon, so I'll take a look at this too. I suppose you know, but simple actions can be performed from the Command Palette too (Ctrl+Shift+P).
guillermooo
 
Posts: 728
Joined: Thu Jul 23, 2009 9:06 am

Re: New Mercurial plugin for Sublime Text 2

Postby guillermooo on Tue Aug 30, 2011 10:29 pm

This version will attempt to restore the cmdline when you focus the view where you started it first:

https://bitbucket.org/guillermooo/subli ... me-package

Make sure to ignore or overwrite SublimeHg to avoid conflicts.

It seems to work ok-ish here, but I've just whipped it up, so I dunno. If it holds together, I will apply the change in the next version.
guillermooo
 
Posts: 728
Joined: Thu Jul 23, 2009 9:06 am

Re: New Mercurial plugin for Sublime Text 2

Postby guillermooo on Wed Aug 31, 2011 10:16 pm

Updated!

https://github.com/SublimeText/SublimeHg

* Persistent shell to the commad server
* Empty output is ignored instead of printed to output buffer
guillermooo
 
Posts: 728
Joined: Thu Jul 23, 2009 9:06 am

Re: New Mercurial plugin for Sublime Text 2

Postby guillermooo on Thu Sep 08, 2011 8:36 pm

Updated!

https://github.com/SublimeText/SublimeHg

* Tab completion for top-level commands in the command line
* Command history (!h and !mkh)
guillermooo
 
Posts: 728
Joined: Thu Jul 23, 2009 9:06 am

Re: New Mercurial plugin for Sublime Text 2

Postby guillermooo on Sat Oct 15, 2011 8:24 am

Updated!

* All commands run in the background
* Highlighting for status, log reports, etc.

Issues

* Mercurial server works only off the current dir Sublime Text was started from
guillermooo
 
Posts: 728
Joined: Thu Jul 23, 2009 9:06 am

Re: New Mercurial plugin for Sublime Text 2

Postby guillermooo on Tue Oct 18, 2011 7:40 pm

Updated!

* should run regardless of how Sublime Text is started
* cmdline will be restored every time a SublimeHg - Output buffer loses focus (and if you entered it from a cmdline)
guillermooo
 
Posts: 728
Joined: Thu Jul 23, 2009 9:06 am

Re: New Mercurial plugin for Sublime Text 2

Postby guillermooo on Sat Jan 14, 2012 11:13 am

Updated!

* Use buffer as CLI of sorts
* Use private server for each distinct repo

https://github.com/SublimeText/SublimeHg
guillermooo
 
Posts: 728
Joined: Thu Jul 23, 2009 9:06 am

PreviousNext

Return to Plugin Announcements

Who is online

Users browsing this forum: Google [Bot] and 16 guests