Skip to content

ctrl-o opens file path in cursor, shift-tab goes back in history #122

Description

@daretodave

anywhere on the terminal, ctrl-o opens the file path

determine the desired open path:

  • highlighted text first
  • editor window line next
  • result finally

one desired path is established:

  • if file
    • open editor
  • if path
    • open folder in explorer

For open editor actions:

STORE all the editor actions in a stack

  • ctrl tab brings up a window with the prior opens in a list
    • this creates a back and forth flow

    • releasing ctrl-tab takes you to the first selected historical action

    • pressing ctrl-tab again, cycles to the next action (then eventually back to the top)

    • keeping ctrl held leaves this new "list pane" open

    • releasing ctrl closes the window

    • pressing down or tab when the window is open has the same effect (cycling through history)

    • pressing up goes back up the list (or nowhere) if at the current action - 1

how should this work? see any jetbrains product's usage of ctrl-tab:
https://www.jetbrains.com/guide/go/tips/navigate-between-opened-files-using-the-switcher/#:~:text=Invoke%20the%20Switcher%20using%20%5E%E2%87%A5,Linux%20or%20Shift%20on%20macOS.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions