-
Notifications
You must be signed in to change notification settings - Fork 532
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
add ability to open files from Finder in macOS #2395
Conversation
awesome! I will check it out |
Hey @polachok I tried it briefly but had a business trip that took up most of my last week. I'll try it this weekend, or even maybe right now before I go see Dune 2 |
Dude it works!!! I didnt test all edge cases yet but Fk thats cool!!! It's so amazing to see Neovide doing that. I will make a coffee and then read your gotchas more in detail, with different scenarios etc. |
This was listed as something that doesnt work: "it doesn't work when neovide isn't already open (not sure how to fix this)" But for me this looks like it works |
Yes, it works because this branch contains “no tty = no fork” change, see this comment |
Got it, well I will wait for @fredizzimo to weigh in on the best approach. but overall this works awesome. |
I'll look into it as soon as I can. probably after #2405 gets refined |
Also I defer to @falcucci, @fredizzimo and @polachok on how best to integrate my code which referenced in this comment: |
(not familiar with macOS internals and I could not test either, but code looks good to me) |
Tested it locally on an arm mac mini and it opening files works fine, there are however two minor issues:
potentially relevant links:
Links: |
@9mm worked on that here The TLDR; is that
Additionally, the maintainer said that he doesn't have time to work on the project, but I just checked again, and there has been some activity recently, and it also looks like the maintainer has changed some time ago already, so there might be some hope of getting the required PRs merged if we do it ourselves. The other alternative, which @9mm was investigating was to do it completely manually, and that actually seemed to wrok. |
yeah that was this stuff here with create-dmg: |
I think now we can proceed reviewing this implementation. @polachok could you pull it from upstream and fix conflicts? |
assets/psd/background.psd
Outdated
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.
Can we store this as svg, or some other format that is easier to edit?
Ok, I will remake it with illustrator, and export as svg |
Thanks, Gimp for example can open the PSD files, but for example the text can't be edited, so a more supported format is better if other people need to modify it later. |
@fredizzimo can you try one of these? You will need the font from here: https://github.com/ryanoasis/nerd-fonts/releases/download/v3.2.0/JetBrainsMono.zip I made .ai / .eps. ai is for illustrator specifically but i converted everything to vectors so maybe it will edit fonts now (hopefully this works in gimp) i also made eps which i think is another vector format that might work |
Inkscape can import both, but it can only save eps, and ignores the illustrator specific data, so I don't think The best option might actually be But I'm not an expert on these, so, if someone else knows better, feel free to recommend. |
Ok here is also a PDF. i will let you choose which seems best. The only thing i have is illustrator so i cant check how it works with open source apps. |
BTW i removed all raster content and everything is 100% vector, so no transparency shouldn't be an issue with the EPS if thats what you end up going with. PDF seems to work well too though |
The PDF seem to work perfectly. All the paths and groups are showing and are editable. The eps had a lot of bitmap images. |
nice! maybe @polachok can just replace my psd with that then? you could also include the zip of the font if you want to be specific. thanks guys |
@9mm you can push it to your branch and I will rebase mine on top |
Ok, I ...
|
Thanks, let's add CI support for this in another PR. |
one thing is... someone please check my shell scripts, ie... i dont write many bash scripts and im using |
@9mm, good catch, recursive deletion of things stored in environment variables is generally a very dangerous thing to do. This happened just a couple of weeks ago https://www.bleepingcomputer.com/news/linux/kde-advises-extreme-caution-after-theme-wipes-linux-users-files/ And this has also happened https://hackaday.com/2024/01/20/how-a-steam-bug-once-deleted-all-of-someones-user-data/ In this case, I think it should be fine, you don't use force, and the variable is local to the script. But we can check it closer in the integration PR. |
Btw not sure if this is possible but i noticed if you drag a file, maybe the working directory for vim should be set to that file? that seems to be what macvim does However, i noticed a lot of changes ot neovide anyway though so ... i cant really pinpoint right now how this is related to the general binary getting passed a path... for example:
this i would expect to open neovide to the current path im in but i have to build my own launcher script which does |
The working directory support should have been added by @falcucci here: |
hmm interesting... ok thanks |
@9mm, I also noticed that it does not work as it should, for me it always sets the working directory to home. I will check what's going on a bit later today. |
What kind of change does this PR introduce?
Did this PR introduce a breaking change?
Kinda, it may change fork behaviour in some cases.
This is basically #2191 + 9d853ea, which allows to:
Reasoning for the fork change: #2191 (comment)
Related issues:
#1682
#1259
#644