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

globalSummon a new tab in explorer CWD #10202

Open
zadjii-msft opened this issue May 26, 2021 · 2 comments
Open

globalSummon a new tab in explorer CWD #10202

zadjii-msft opened this issue May 26, 2021 · 2 comments
Labels
Area-Settings Issues related to settings and customizability, for console or terminal Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. Product-Terminal The new Windows Terminal.
Milestone

Comments

@zadjii-msft
Copy link
Member

zadjii-msft commented May 26, 2021

Hey,
little question. The quake mode is really nice, but is there a way to automatically open the terminal/quake mode on current focused explorer folder.

For example I have focused an Explorer window in my Downloads directory and then press ctrl+alt+t (my shortcut for quake mode) it should automatically open the console in this directory.

Thanks

Originally posted by @meydominic in #8888 (comment)


I'm not sure that is possible, sorry 😕 When pressing the global hotkey, we don't get any context about the active window.......

ah shoot. okay. So, maybe we could:

  • get the foreground window,
  • check if it's an explorer.exe window,
  • then use the hack we're already using for the background context menu to get the path of that window.

That might work. We'd still need a setting for "when this globalSummon action is performed, open a new tab with the explorer CWD." That of course leads to "I want to globalSummon in explorer and get a new pane" or "I want to globalSummon in explorer and new a new pane and have that pane running {profile}"

This deserves it's own thread


Summary

A keyboard shortcut to open terminal app in the same path as file explorer window.

Lot of devs who use VS code or similar editors/IDEs are familiar with the shortcut `ctrl + `` to open terminal in the project's path.
Though windows have a right click shortcut for it, the keyboard shortcut is just muscle memory.

from @MG-LSJ in #17192

@ghost ghost added Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels May 26, 2021
@zadjii-msft zadjii-msft added Area-Settings Issues related to settings and customizability, for console or terminal Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. Product-Terminal The new Windows Terminal. labels May 26, 2021
@ghost ghost removed the Needs-Tag-Fix Doesn't match tag requirements label May 26, 2021
@zadjii-msft zadjii-msft added this to the Terminal Backlog milestone May 26, 2021
@DHowett DHowett removed the Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting label May 27, 2021
@NotWearingPants
Copy link
Contributor

I'd also like to suggest that since launching powershell (and perhaps other shells) is super slow (measured 3s on my machine), that there'd also be a way to change the CWD of the existing quake tab (maybe by sending the keystrokes of a cd command?).

@zadjii-msft
Copy link
Member Author

From #15060

Unsure how this would be technically implemented, but I don't imagine that it would be too difficult to get the currently active File Explorer window (if the currently focus window is a File Explorer window) and then get the path, something similar to this: stackoverflow.com/a/20961047

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Settings Issues related to settings and customizability, for console or terminal Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. Product-Terminal The new Windows Terminal.
Projects
None yet
Development

No branches or pull requests

3 participants