Updated!
REQUIRES Mercurial 1.9 OR LATER
- More commands
- Server is used as a server
- Better chance of working on all platforms
- More stable
Updated!
REQUIRES Mercurial 1.9 OR LATER
Thanks for the plugin, look great.
But I’ve an issue:
The “SublimeHg: Hg” command from the Command Palette doesn’t work for me.
The “hg” command run but I go straight to the on_done() procedure with a value -1, without showing the quick_panel.
log:
command: show_overlay {"overlay": "command_palette"}
command: hg
s = -1
OTOH, running the command view.run_command(‘hg’) from the console work as expected.
Any idea ?
A ST2 bug ?
startup, version: 2079 windows x64 channel: dev
Yep. I meant to mention that in the readme, but I forgot. You need to assign them keys (I use f10 and ctrl+f10). There are other bugs in Sublime Text related to widgets and input focus that will affect the plugin too.
And there is another bug due to shlex stripping \ from paths on Windows… That will be an issue from the command line box only, because I forgot to include “commit (this file)” and friends in the latest release…
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.
Updated!
The server should now always find the correct repository for the current file.
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.
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).
This version will attempt to restore the cmdline when you focus the view where you started it first:
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.
Updated!
github.com/SublimeText/SublimeHg
Updated!
github.com/SublimeText/SublimeHg
Updated!
Issues
Updated!
Updated!
Hey there, I implemented my suggested feature and it works more or less. Maybe you can reuse/incorporate some of my code.
Updated!
Remember that as of dev build 2180 you can set Sublime Text to your editor in .hgrc to handle commit messages.
This seems to work all right for me on Windows 7 and Linux Mint.