{"thread":{"id":"22497","subject":"[PATCH] gitk: Add shortcut Ctrl-W for closing the active window","startedAt":"2010-02-02T17:50:00Z","lastAt":"2010-02-02T23:51:46Z","messageCount":3,"participants":["Jens Lehmann","Jacob Todd","Chris Frey"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"133411","messageId":"20100202175000.GC19749@zoidberg.hsd1.mi.comcast.net","threadId":"22497","inReplyTo":"4B68A310.6000807@web.de","subject":"Re: [PATCH] gitk: Add shortcut Ctrl-W for closing the active window","fromName":"Jacob Todd","fromEmail":"jaketodd422@gmail.com","sentAt":"2010-02-02T17:50:00Z","receivedAt":"2010-02-02T17:50:00Z","isPatch":true,"sender":{"key":"jaketodd422@gmail.com","avatar":null},"body":"Last time I check ^w deleted the word before the cursor.\n\n-- \nI am a man who does not exist for others.\n"},{"id":"133405","messageId":"4B68A310.6000807@web.de","threadId":"22497","inReplyTo":null,"subject":"[PATCH] gitk: Add shortcut Ctrl-W for closing the active window","fromName":"Jens Lehmann","fromEmail":"jens.lehmann@web.de","sentAt":"2010-02-02T22:11:28Z","receivedAt":"2010-02-02T22:11:28Z","isPatch":true,"sender":{"key":"jens.lehmann@web.de","avatar":"https://avatars.githubusercontent.com/u/135220?v=4"},"body":"To make the user experience between git gui and gitk more homogeneous, use\nCtrl-W in gitk too for closing the active window. When closing the main\nwindow doquit is called for proper cleanup.\n\nSigned-off-by: Jens Lehmann <Jens.Lehmann@web.de>\n---\n\nFound myself hitting Ctrl-W in gitk with no effect once too often ;-)\n\n gitk-git/gitk |    3 +++\n 1 files changed, 3 insertions(+), 0 deletions(-)\n\ndiff --git a/gitk-git/gitk b/gitk-git/gitk\nindex 03dd0f4..9629394 100644\n--- a/gitk-git/gitk\n+++ b/gitk-git/gitk\n@@ -2383,6 +2383,8 @@ proc makewindow {} {\n     }\n     bindall <$::BM> \"canvscan mark %W %x %y\"\n     bindall <B$::BM-Motion> \"canvscan dragto %W %x %y\"\n+    bind all <$M1B-Key-w> {destroy [winfo toplevel %W]}\n+    bind . <$M1B-Key-w> doquit\n     bindkey <Home> selfirstline\n     bindkey <End> sellastline\n     bind . <Key-Up> \"selnextline -1\"\n@@ -2814,6 +2816,7 @@ proc keys {} {\n [mc \"Gitk key bindings:\"]\n\n [mc \"<%s-Q>\t\tQuit\" $M1T]\n+[mc \"<%s-W>\t\tClose window\" $M1T]\n [mc \"<Home>\t\tMove to first commit\"]\n [mc \"<End>\t\tMove to last commit\"]\n [mc \"<Up>, p, i\tMove up one commit\"]\n-- \n1.7.0.rc1.173.gc7c5.dirty\n"},{"id":"133429","messageId":"20100202235146.GA13176@foursquare.net","threadId":"22497","inReplyTo":"4B68A310.6000807@web.de","subject":"Re: [PATCH] gitk: Add shortcut Ctrl-W for closing the active window","fromName":"Chris Frey","fromEmail":"cdfrey@foursquare.net","sentAt":"2010-02-02T23:51:46Z","receivedAt":"2010-02-02T23:51:46Z","isPatch":true,"sender":{"key":"cdfrey@foursquare.net","avatar":null},"body":"On Tue, Feb 02, 2010 at 11:11:28PM +0100, Jens Lehmann wrote:\n> To make the user experience between git gui and gitk more homogeneous, use\n> Ctrl-W in gitk too for closing the active window. When closing the main\n> window doquit is called for proper cleanup.\n\nThis is sort of like when Mozilla claims Ctrl-U to show the page source,\nand you're expecting it to clear the line.\n\nAt least in Mozilla, you can configure the browser to respect the\nold meanings for Ctrl-U, etc.\n\n- Chris\n"}]}