TortoiseHgのカスタムツールバーを設定する方法
TortoiseHg 2.4.1がリリースされました。で、1つ前のバージョン2.4で追加されたカスタムツールバーはどうやって設定するのかずっと気になっていましたがようやく分かったのでメモを兼ねて、書いておきます。
設定方法
[tortoisehg-tools]
http://7ps.ch/2012/05/19/tortoisehg-custom-toolba/
# Execute a mercurial command. These _MUST_ start with "hg"
# Note that we can use any built-in TortoiseHg icon
update_to_tip.command = hg update tip
update_to_tip.tooltip = Update to tip
update_to_tip.icon = hg-update
上記のように設定ファイルへ[tortoisehg-tools]という項目を追加し、それに続けてコマンドの設定を書きます。それで書けたらソフトを再起動します。
.command は必須で、.tooltip と .icon はオプション(無くても可)ということです。ちなみに上記の引用元のサイトの記述例は
誤:update_to_tip.ico = hg-update
正:update_to_tip.icon = hg-update
という風にnが抜けているためアイコンが正しく設定できていないようです。
それとアイコンの設定にはicoファイルのフルパスの他、hg-updateのように内蔵アイコンも設定可能みたいです。これ以外にも下記のアイコンが使える模様。
(右上のスクリーンショットはコレの一覧)
application-exit
document-new
edit-cut
edit-find
go-down
go-jump
go-next
go-previous
go-up
hg-annotate
hg-archive
hg-clone
hg-commit
hg-grep
hg-incoming
hg-log
hg-merge
hg-outgoing
hg-pull
hg-push
hg-qguard
hg-qpop-all
hg-qpop
hg-qpush-all
hg-qpush
hg-rename
hg-status
hg-tag
hg-update
mail-forward
process-stop
tasktab-refresh
thg-console
thg-log-load-all
thg-mq
thg-qreorder
thg-reporegistry
thg-sync
view-filter
view-refresh
さいごに
どうやって設定するんだろ、と1ヶ月もモヤモヤしてたのがスッキリしました。
よかったら参考にしてください。それでは。