-
Notifications
You must be signed in to change notification settings - Fork 4
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
fix: Vivaldi installed via snap not working #7
Conversation
…om file watch, formatted with ruff
Thanks a lot for the next contribution! I had a quick look, but will look closer soon. My first look feedback:
Does this formatter also allow checking and fixing the formatting via a script? Then we could add a github action to check the formatting on pull request. I'm not super familiar with all this python stuff. You seem to be more familiar, so if you have experience, feel free to either add scripts or list these steps in the readme for local development. This is not necessary for the merge though. So I would also merge without that. Just thought, that this would make sense. I'll let you know, if I miss something when I reviewed in detail and also tested. Thanks again for the contribution 🎖️ |
Thank you for the feedback! Ruff does support checking and fixing via a script (when running in the terminal There is a GitHub action available, however I am not familiar with github actions. I tried to use them once and ended up with something like 40 commits trying to debug and test it since I couldn't get the testing env working locally. If you have any experience, your input would be much appreciated. Regarding your other suggestions, I'd be more than happy to make some changes to the readme regarding local development, and will do that later today. |
Perfect, don't worry about the github actions. I'll add that some time later then :) |
I was looking over the readme and I can't seem to figure out what else to add to the local development section. Someone looking over the code will immediately see the comment, so I don't think its necessary to add it to the readme. Plus, you did a really good job covering the steps already. If you're happy with the commit, I would just merge it. |
@pascalbe-dev @cristianoliveira I just added 810f1b7 to the PR, which addresses #4
I'm curious to hear your feedback. I wasn't quite sure what to name the env variable, so please let me know if you have any suggestions. Also, it could make sense to switch the custom icon to the chromium icon instead of chrome, again, please let me know. I've been looking into it, and I feel it may be more convenient to have a text field setting in the browser extension itself instead of using an env variable. I'll try to implement that later. Would still love to hear your thoughts. |
Finished this last little bit. Here are the changes in f874d20:
I prefer this approach to an env variable since you don't need to remember a var name 😁 |
Thanks! I'll check it out soon. |
Looks good to me. Merging. Thanks for the addition :) Great to have the type hints in there also :) |
By the way, @E1Bos , in case you are interested. Here I added the github action to run formatting and linting: build: add formatting and linting Thanks for pointing to the ruff tool by the way. Works well :) |
Hey @pascalbe-dev, Sorry for the late reply. Thank you for merging, I was more than happy to contribute to the project, I can't express how incredibly convenient this extension is. I looked over the github action, very glad you figured out how to get it work, happy it works well :) I have other ideas for ways to add to this extension but can't seem to figure them out for now (at least with Vivaldi) Thank you for your work and continued maintenance! |
Hello again!
I made a couple of changes.
9305ea9 is some general changes/fixes:
os.popen
was closed after use894a9d5 is the fix to #6.
ebca8f9 is a small refactor of
find_bookmarks_paths
to reduce code duplication and increase legibility. All searched paths are stored in a list, and it iterates through it and callsfind | grep Bookmarks
on each.Everything else is fixing mistakes on my part or issues with GitHub 😁
Regarding formatting, I formatted with ruff (which formats like Black), which changed the single quotes to double quotes, so I apologise if you're not too pleased with that.
Testing on my machine with both the snap and .deb version of Vivaldi, bookmarks are fetched from both browsers. Please let me know if you'd like me to make any changes.