-
-
Notifications
You must be signed in to change notification settings - Fork 344
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
Quickswitch #1018
base: dev
Are you sure you want to change the base?
Quickswitch #1018
Conversation
Some threading issues seem appearing. Not sure the detailed reason. |
uint idProcess, uint idThread, uint dwFlags); | ||
|
||
[DllImport("user32")] | ||
public static extern IntPtr GetForegroundWindow(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quick design questions:
- Would it ever make sense for a plugin to also query which other explorer windows are open? Stuff like having two explorer windows open side by side...?
- And, how should the case be handled where the user clearly has one explorer window open, but it's not the topmost window? Like having the explorer window opened, but being focused on the task manager?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it ever make sense for a plugin to also query which other explorer windows are open? Stuff like having two explorer windows open side by side...?
Then only sync the path that is moved foreground. I didn't design this feature, but just try to mimic the design.
Here's the original design. https://www.listary.com/quick-switch
And, how should the case be handled where the user clearly has one explorer window open, but it's not the topmost window? Like having the explorer window opened, but being focused on the task manager?
It may be useful to sync explorer path that is not at the foreground. But I guess the case you describe is somewhat different. The original design gives user control about what they want to sync or when they want to sync the explorer path. Therefore, they need to put the explorer up to front to notify which path they want to sync for.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I understand! Then all of this makes perfect sense.
Okay, my main questions would be
|
I think the major use case is to sync the path of an opened explorer to a open file dialog to select a file easily.
Sry I don't get the idea. |
Okay, I understand what this is used for now. I'd have to dig a lot deeper into what the IUIAutomation can do to be able to improve this. I think the rule of thumb is to avoid sending keyboard events, and instead always use an API if one exists. Keyboard events can be delayed and whatnot. |
Yeah that's what I would like to see. It is possible to use PInvoke directly without IUIAutomation though, so it will be cool if you are familiar with that as well. Another thing is the original listary seems implement this feature without changing the textbox and sending an enter signal, so I wonder whether you may have some clues about that. |
I tried searching for what I could, but that's apparently quite tricky to hook into. So I don't really have a better solution at the moment. |
okay thanks🤣 |
There might be a alternate design: So the file manager has the "quick access" sidebar. Flow could add its own entry there, and that entry always redirects to the currently open folder. An additional advantage might be that it's easier to discover this, compared to a keyboard shortcut. Screenshot for context: (Note: I have no idea how hard that would be to efficiently pull that off.) |
So you mean to add a entry that redirect to the most recent opened explorer path?🤔Interesting |
Yep, spot-on. |
If that's the case, we may be able to create a plugin for it. |
Do you have any docs for that? |
@taooceros I haven't looked into this all that much (just a few cursory google searches) Programmatic accessApparently there's a way of programmatically adding folders to the quick access area. Special Links folderhttps://blogs.msmvps.com/kenlin/2017/06/14/537/ Steps:
Symbolic links or HardlinkI bet there's some trickery that could be done with those Extra harddriveWe could add an in-memory harddrive, mount it and provide a single shortcut in there. |
Could this be done? I really love this feature. |
Apparently Windows 11 can add files to quick access. That might let us pin a program to quick access Such a program could then update the list of files in the quick access window. |
Really hope we can get the quick switch function :( the Ctrl+G in Listary is so useful |
Nothing more than quickswitch. We may integrate flow's path system to this feature instead of relying explorer.