Spyke

Posts

linux·Linuxbytrem

PSA: Firefox now auto-uses the XDG portal file picker

Somewhat of a PSA for Qt users:

On Linux, Firefox will now default to the XDG portal file picker if available, rather than the GTK3 one, which is usually better integrated with the user's desktop environment, and more powerful. https://www.firefox.com/en-US/firefox/149.0/releasenotes/

Edit: I talk about a patched version below, but it was an about:config toggle in more recent times.

Always needed a patched version of Firefox before for that. Presumably most distros will transparently throw that patch out of their Firefox package, so likely don't have to do anything.

But well, you don't specifically need a patched version anymore for that, so if that's a separate package on your distro, you could consider using the normal package again. Although, I believe there's also still patches floating about for using the KDE mimetype system...

View original on lemmy.blahaj.zone
81
programming·Programmingbytrem

CLI to get web links for your repo

cross-posted from: https://lemmy.blahaj.zone/post/45574613

Hello, I built a CLI that gives you web links for stuff in your repo you might want to link to.

You know the situation. Your coworker checked in some real garbage and you want to politely ask what they were thinking. But now you gotta describe where the code snippet is and they have to open it in their text editor and so on. Alternatively, you could open up your Git forge's webpage and navigate to the file, copy a permalink and send it to them. Also takes quite a bit of time.

With the CLI, you can instead just paste the local file path and it gives you the permalink right away.
Similarly, you can also get a direct link to an issue or PR, which's number you might've found in a commit message.

There's a release available for download for Linux x86_64: https://codeberg.org/trem/forge/releases
And if you've got the Rust toolchain on your system, then you can also install it like so: cargo install --git https://codeberg.org/trem/forge

P.S.: The implementation is somewhat hacky, because a Git repository doesn't really know what webpage it was cloned from. So, please do let me know, if you run into any issues.

CLI to get web links for your repohttps://codeberg.org/trem/forgeOpen linkView original on lemmy.blahaj.zone
13
programming·General Programming Discussionbytrem

CLI to get web links for your repo

Hello, I built a CLI that gives you web links for stuff in your repo you might want to link to.

You know the situation. Your coworker checked in some real garbage and you want to politely ask what they were thinking. But now you gotta describe where the code snippet is and they have to open it in their text editor and so on. Alternatively, you could open up your Git forge's webpage and navigate to the file, copy a permalink and send it to them. Also takes quite a bit of time.

With the CLI, you can instead just paste the local file path and it gives you the permalink right away.
Similarly, you can also get a direct link to an issue or PR, which's number you might've found in a commit message.

There's a release available for download for Linux x86_64: https://codeberg.org/trem/forge/releases
And if you've got the Rust toolchain on your system, then you can also install it like so: cargo install --git https://codeberg.org/trem/forge

P.S.: The implementation is somewhat hacky, because a Git repository doesn't really know what webpage it was cloned from. So, please do let me know, if you run into any issues.

CLI to get web links for your repohttps://codeberg.org/trem/forgeOpen linkView original on lemmy.blahaj.zone
7

You reached the end