topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • July 21, 2018, 10:13 PM
  • Proudly celebrating 13 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: request: keyboard shortcut for context menu "Explore here" (open file's folder)  (Read 733 times)

Nod5

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 901
    • View Profile
    • Donate to Member
Request: add a keyboard shortcut to run the context menu "Explore here" command that opens the selected file's folder in Explorer. I suggest ctrl+o as in Open. The context menu's "Explore here" works on all files including local .url files.

Background:
With AutoHotkey we can achieve this for most files by using FARR's control+C shortcut to copy a file's full path.
But that does not work on local .url files since for them FARR's ctrl+C copies the URL rather than the full path to the local file.
A non perfect workaround sends keys to open the context menu.

Code: Autohotkey [Select]
  1. ;control+o to open folder for selected file in FARR
  2. #IfWinActive, ahk_exe FindAndRunRobot.exe
  3. ^o::
  4. ControlGetFocus, cFocus, A
  5. if (cFocus == "TNextGrid1")
  6. {
  7.   send ^c
  8.   SplitPath, clipboard, , dir
  9.   If InStr( FileExist(dir) , "D")
  10.     Run % dir
  11.   ;workaround for .url files where FARR's ctrl+C return the URL
  12.   ;limitation: the context menu briefly flashes and send keys may fail
  13.   Else If InStr(clipboard, "://")
  14.   {
  15.     send +{AppsKey}
  16.     send e
  17.   }
  18. }
  19. return

edit: clarified and added workaround in the AutoHotkey script
« Last Edit: March 16, 2018, 12:18 PM by Nod5 »

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 38,728
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
I suppose for your purposes you don't mind if I add a more esoteric hotkey that won't conflict with anything else (the way Ctrl+O would)... So if I make it like Ctrl+Shift+E something silly that would still be ok for your purposes?

Nod5

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 901
    • View Profile
    • Donate to Member
I suppose for your purposes you don't mind if I add a more esoteric hotkey that won't conflict with anything else (the way Ctrl+O would)... So if I make it like Ctrl+Shift+E something silly that would still be ok for your purposes?

Any hotkey however weird would do just fine. I'll just remap it with AutoHotkey.

RCJacH

  • Participant
  • Joined in 2016
  • *
  • default avatar
  • Posts: 1
    • View Profile
    • Donate to Member
Is it possible to add "open location" action to actions in Hotkeys list? So we can use Alt+#, or better a Alt+Shift+# to open location of #th item?