Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keyboard shortcut for copying path of current file #4341

Closed
NoePfister opened this issue Jun 26, 2024 · 3 comments
Closed

Keyboard shortcut for copying path of current file #4341

NoePfister opened this issue Jun 26, 2024 · 3 comments

Comments

@NoePfister
Copy link

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
Copy link
Collaborator

GitHubRulesOK commented Jun 26, 2024

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
Copy link
Member

kjk commented Jun 26, 2024

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

@kjk kjk closed this as completed Jun 26, 2024
@GitHubRulesOK
Copy link
Collaborator

GitHubRulesOK commented Jun 26, 2024

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants