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

Added Open With apps for macOS #917

Merged
merged 17 commits into from
May 15, 2023
Merged

Conversation

pskowronek
Copy link
Member

@pskowronek pskowronek commented May 2, 2023

Added Open With apps for macOS, #759

The change only adds apps to Open With under macOS and only for contextual (right click) menu - Main menu is left as it was (not sure if we want apps to be added to it and if so how/when to refresh the Open With menu in there).
Since finding apps for a given file can take a while for extension with a lot of apps, I added 'Loading...' to menu and moved the process to background. The delay is mostly from mdfind that gets app name from bundle id.

poc2

Information how to enable this feature on macOS:

enable

obraz

@pskowronek pskowronek requested a review from ahadas as a code owner May 2, 2023 09:29
@pskowronek pskowronek force-pushed the open-with branch 3 times, most recently from 5f2d06c to 02692f4 Compare May 4, 2023 15:36
@pskowronek
Copy link
Member Author

PR updated with Preference settings - ready for a review

@pskowronek
Copy link
Member Author

pskowronek commented May 6, 2023

PR updated - reverted changes to Preferences and using menu to show a hint how to enable apps in Open With.

@pskowronek pskowronek force-pushed the open-with branch 5 times, most recently from 36bf808 to 78a281a Compare May 9, 2023 21:11
@pskowronek
Copy link
Member Author

PR rebased

Copy link
Member

@ahadas ahadas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reviewed mostly the cleanup parts - and posted #932 for the try-with-resources
looked part that retrieves the apps with 'duti' briefly - it looks alright but I need to take a closer look

@pskowronek
Copy link
Member Author

with 'duti' briefly - it looks alright but I need to take a closer look

And whether the "right way way" from #759 (comment) is still OK when it comes to Apple M1 (brew installs under a different folder in M1s).

@pskowronek
Copy link
Member Author

PR updated addressing comments that I've marked as 'resolved'

@pskowronek
Copy link
Member Author

PR updated (CommandExtended moved to Command)

Copy link
Member

@ahadas ahadas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reviewed all changes, added few more minor comments - other than that, lgtm

@pskowronek
Copy link
Member Author

PR updated addressing review comments

@ahadas ahadas merged commit 6e8bbf3 into mucommander:master May 15, 2023
@ahadas
Copy link
Member

ahadas commented May 15, 2023

thanks @pskowronek !

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

Successfully merging this pull request may close these issues.

2 participants