obsidian-switcher-plus icon indicating copy to clipboard operation
obsidian-switcher-plus copied to clipboard

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

Open lukaszlew opened this issue 3 years ago • 4 comments

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.

lukaszlew avatar Aug 31 '22 19:08 lukaszlew

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

darlal avatar Sep 02 '22 15:09 darlal

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

lukaszlew avatar Sep 02 '22 16:09 lukaszlew

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!

darlal avatar Sep 03 '22 14:09 darlal

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 :)

lukaszlew avatar Sep 11 '22 18:09 lukaszlew