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

Pressing hotkey twice could switch the file to the last one. #72

Open
lukaszlew opened this issue Aug 31, 2022 · 4 comments
Open

Pressing hotkey twice could switch the file to the last one. #72

lukaszlew opened this issue Aug 31, 2022 · 4 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@lukaszlew
Copy link

If my 'open' hotkey is CTRL-o then pressing 'CTRL-o CTRL-o' (without enter) could switch the file to the last one open.
This is similar to cd - command in Linux (switches to last directory).
This is the default behavior in VSCode (on CTRL-p) and it is useful to be consistent to reuse popular habits.

Note: pressing CTRL-o three or more time before releasing CTRL (which replaces enter) switches to the yet next file on the popup history list.

@darlal darlal added the triage New issues that need to be traiged label Sep 2, 2022
@darlal
Copy link
Owner

darlal commented Sep 2, 2022

Thank for the feature request! Currently there are several other options for navigation, using the arrow keys, ctrl-n/p, and ctrl-j/k.

@lukaszlew
Copy link
Author

Can you explain how ctrl-n/p, and ctrl-j/k are related?

@darlal
Copy link
Owner

darlal commented Sep 3, 2022

Sure, if I understand your request, you'd like to be able to navigate the recent files list using a key chord that consists solely of the initial trigger hotkey. So in your example ctrl-o to trigger the list then o/shift-o to navigate next/previous and select on release.

Today, when you trigger Quick Switcher++: Open in Headings Mode with a hotkey, it initially displays the recent files list, which next/previous can be navigated with arrowkeys, ctrl-n/p, as well as ctrl-j/k, with enter to select. So this request is for a fourth set of navigation/selection keys for recent files. Please let me know if I've misunderstood the request. Thanks!

@lukaszlew
Copy link
Author

Currently to select second last recent file:

  • press shift
  • press O
  • release O
  • release shift
  • press arrow down
  • press enter

In the proposal to select second last recent file:

  • Press shift
  • press O
  • press O
  • Release shift

Which is a default in vscode and sublime text I think and very alluring when you start using it quickly.

So yes, I think you got it :)

@darlal darlal added enhancement New feature or request good first issue Good for newcomers and removed triage New issues that need to be traiged labels Sep 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants