sumatrapdfreader / sumatrapdf

SumatraPDF reader
http://www.sumatrapdfreader.org
GNU General Public License v3.0
12.94k stars 1.67k forks source link

Keyboard shortcut for copying path of current file #4341

Closed NoePfister closed 4 days ago

NoePfister commented 5 days ago

Is your feature request related to a problem? Please describe. I often need to copy the path of the current file. For this I need to right-click the tab and then select "copy path". This always takes a lot longer than needed for such a simple task-

Describe the solution you'd like I would like that a Shortcut gets implemented for copying the current path of the file.

Describe alternatives you've considered If a shortcut isn't possible, then maybe a butten directly in the taskbar is possible.

GitHubRulesOK commented 5 days ago

Highly unlikely to be added as a button (needs 100% maintenance and unlikely to be used by 99% users) The current ability was the last greatest improvement its 2 clicks so shorter than leave mouse for 2 or 3 keys Functionality is CmdCopyFilePath so try assign that to a single key

kjk commented 4 days ago

Using latest pre-release (https://www.sumatrapdfreader.org/prerelease) you can add your own shortcut (https://www.sumatrapdfreader.org/docs/Customizing-keyboard-shortcuts) for CmdCopyFilePath command.

You can also use Ctrl + K for command palette and type part of copy file path

GitHubRulesOK commented 4 days ago

@NoePfister

Just to confirm while viewing without any tab in sight I can set CTRL + F (or any other free single key) to capture the path&filename, naturally I need somewhere to use it. if you want its path in explorer use CmdOpenWithExplorer

Shortcuts [
    [
        Cmd = CmdCopyFilePath
        Key = Ctrl + F
    ]
]

image image