-
Notifications
You must be signed in to change notification settings - Fork 72
Shift click to open browser in current img dir #778
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
base: master
Are you sure you want to change the base?
Shift click to open browser in current img dir #778
Conversation
Closes: woelper#766 Shift clicking the file browser button now opens the browser in the same directory as the currently viewed image.
|
Thanks so much! This PR helps me out a ton! I've tested this just now on macOS and this seems to work great with the rfd feature! The only issue I can see that this PR has is this does not seem to work without the file_open (rfd) feature as this is something that should also work on Oculante's built-in file manager. |
|
To be honest, I didn't know if I had to implement it for the built-in file manager too. 😆 I'll take a look at it soon though. |
|
No worries! I completely understand! I do admit that this area is a bit confusing, especially since file_open is split into its own feature rather than making it an option in preferences. I'll have to look back at the last time this came up in discussions to see if there was a reason we don't already do this. Edit: that thread can be found at #604 if it interests you. |
Like the last commit, this implements opening the file browser in the current image directory when the button is shift clicked. This commit specifically implements it for the built-in file browser. The solution is a bit hacky compared to the file dialog implementation since I had to force the built-in browser to reload the directory.
|
I implemented it for the built-in file browser too. 😁 The implementation for the built-in browser isn't the best, but I'll rethink it and make it nicer in the future if I figure it out. |
If the embedded file browser is opened in a certain mode then switched to a different mode, it must be forced to refresh or else it shows stale entries.
|
I experienced that issue too, but I thought I fixed it the first time around. 😅 It should be fixed now though. |
|
Thanks! Unfortunately I found two more cases where I'm able to reproduce this still. The first is when making use of the compare feature:
The second is drag and dropping an image into Oculante. I apologise that this is so problematic, we really should have made tests a high priority to make finding these cases easier. I'll mention to woelper that it's something we definitely should work on with as high priority as switching away from Notan to make development easier in the future. |
|
I think I fixed it for compare! 😁 I'll take a look at drag and drop soon. |


Closes: #766
Shift clicking the file browser button now opens the browser in the same directory as the currently viewed image.