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

Also work with keyboard nav #7

Open
TaoK opened this issue Jul 14, 2020 · 4 comments
Open

Also work with keyboard nav #7

TaoK opened this issue Jul 14, 2020 · 4 comments

Comments

@TaoK
Copy link

TaoK commented Jul 14, 2020

In VSCode most commands can be invoked with autocomplete at the Ctrl-Shift-P prompt.

When you select "Browse with Git Extensions" here, however, you get an error:

Command 'Browse with Git Extensions' resulted in an error (Cannot read property 'fsPath' of undefined)

@Carl-Hugo
Copy link
Member

That error makes sense since the extension opens Git Extensions based on the current file or folder that you right-click. TBH, I never thought of that one.

That said, how would you have the command to work (both in a folder and in a workspace)?

@TaoK
Copy link
Author

TaoK commented Jul 16, 2020

I would assume the most sensible thing would be to have the command look at the active window, to figure out the path of the file open there...? (When not invoked with a target file / folder)

@Carl-Hugo
Copy link
Member

Carl-Hugo commented Jul 17, 2020

How about the following?

  • For a folder: open the folder's git repo
  • For a workspace: have the user choose what folder's git repo to open

EDIT:

  • I forgot "orphan files": if the last file that has the focus was an "orphan", run the command against that file.

@Carl-Hugo
Copy link
Member

Is this something that you or others would use? If yes, what's your use-case?

I don't mind looking into this when I have the chance, but only if it is useful, not as a missing feature that no one will ever use or care.

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

2 participants