Search code examples
keyboard-shortcutstortoisehg

tortoisehg commit dialog focus on files from keyboard


when i launch the commit dialog (thg commit), the focus is on the commit message. this is probably the most common place it should be. in my case, i typically want to review the files i have changed and make sure i'm committing what i think i'm committing and not anything i don't intend. the only way i have found to get to the file list to be able to use ctrl+d to view visual diffs is to use the mouse. tabbing doesn't work because in the commit message input control, it just creates tab characters.

is there a way to use the keyboard and avoid the mouse altogether to move the focus to the list of files?

thanks for any help you can offer.


Solution

  • I've had a quick skim through the source, and also had a look at the wiki, and it seems there's no quick "official" way to do it.

    One way I have found, which involves a lot of tabbing, is the following sequence:

    $ thg commit
    

    and when the window comes up, do CTRL+F, which puts you into the "Regular Expression Search" box. Then press TAB a lot of times (10 when I just tried it, but it will vary), until you get into the file selection box. Not great, but it sort of works... I do wonder if reaching for the mouse may be quicker, tho' :)