Hacker Newsnew | past | comments | ask | show | jobs | submit | 037's commentslogin

It could be a privacy risk, though, because by directly moving a URL (and all its parameters) to another profile, it might be easy to link them together on the server side. It’s not necessarily a problem, but it’s definitely important to be aware of, since one of the main uses of profiles is precisely isolation for privacy and security.


One nice thing about Ventoy is that you can still use the USB stick as a regular drive for other files — it doesn’t interfere with the ISOs you can boot from



Very interesting, I’ll definitely give it a try!

Another approach I recently discovered is an old but beautiful Unix-style tool for renaming files: vidir - edit a directory in your text editor. It’s part of the moreutils suite [1].

You get the list of filenames in your editor – edit them as you like, save, exit, and it renames the files. It uses whatever editor is set in your $EDITOR env var, so it doesn’t have to be vi/vim.

You can also pipe in a list of files, e.g. `find . -type f | vidir -`, to edit just the files you want - and you can even change paths (add, rename, remove directories) in the editor to move files around easily.

To try it quickly on macOS: `brew install moreutils`

[1] https://joeyh.name/code/moreutils/


> You get the list of filenames in your editor – edit them as you like, save, exit, and it renames the files. It uses whatever editor is set in your $EDITOR env var, so it doesn’t have to be vi/vim.

I'm not sure how "powerful" vidir is, but I recently found this functionality in yazi [1] and it became one of those "you think you don't need it until you try it" features

[1] https://github.com/sxyazi/yazi


This is also integrated into Emacs with dired, and it’s pretty neat [0].

[0]: http://xahlee.info/emacs/emacs/rename_file_pattern.html


oh wow, this feels like https://github.com/stevearc/oil.nvim


if you can forgive a shameless plug, I wrote https://github.com/ddlsmurf/fled some time ago and it serves me very well to this day. (It's not half as advanced as OP's tool but still useful)


Would you mind sharing some tips on how to set that up? A code snippet or a link to the relevant docs would be super helpful.


Certainly, the bulk of the functionality is provided by URLDispatcher:

https://www.hammerspoon.org/Spoons/URLDispatcher.html

Here's a cleaned up version of my config... I also mapped global cmd-shift-1/2/i to focus my profile and incognito windows (and create a window if none already existed):

https://gist.github.com/beaugunderson/d1ca2218b9b272f3ac3573...


Thanks a lot — that’s way more than I expected!


I love that it’s a command line tool — I’ll try it soon.

I use OpenIn for this [1] (it’s paid, but a one-time purchase at a very reasonable price). It works with URLs too, supports “browser profiles”, and lets you create logic using JavaScript (e.g., do X if the filename contains Y, or do Z if a modifier key is pressed).

It works really well and even has the ability to “fix” what external apps have changed. I plan to use this on new Macs to reconstruct my app associations and rules.

I do wish the rules were defined in plain text files — sometimes it’s hard to follow the logic through the UI and the way it handles things.

Another comment mentions Hammerspoon (which I used in the past — it was very nice). Maybe I can rebuild part of my current setup with it.

[1] https://loshadki.app/openin4/


I loveee hammerspoon. And had a subscription to OpenIn a bit back. Advanced scripting isn’t going to happen, even paging out to another script. Recently committed to Regex which would cover most of that. I’ll look into how it “fixes” old associations.


Walking back my regex commitment, just a heads-up/apology if you had your hopes up. Want this to stay as a CLI and not a dynamic app. Let me know if there's anything else you could see useful that would fit within that scope!


If you use a VSCode-based editor, a good alternative can be the "REST Client" extension: https://marketplace.visualstudio.com/items?itemName=humao.re...

I’ve been burned a few times by these clients — difficult backups, changing licensing/commercial terms, hard to version — so now I prefer a few simple .http files that I can version in Git and easily read, even if the extension disappears.


That extension is excellent! Been using it for few years already


it’s so good. no context switching with a different app. also, there’s a fairly compatible version for emacs with the same name.


Can you save the full request details and full response details in one click as one file with this extension?

This is the feature I use the most.


Just tried. You can save the full response to a single file with one click, but it doesn’t include the original request.

I found an issue asking for the same feature: https://github.com/Huachao/vscode-restclient/issues/1311


> Their Raspberry Pi collection is so extensive, it's starting to look like a fruit stand!

Lol :D


> Yes, it is possible to use Prompt Caching with your Batches API requests. However, because asynchronous batch requests can be processed concurrently and in any order, we cannot guarantee that requests in a batch will benefit from caching.

https://docs.anthropic.com/en/docs/build-with-claude/prompt-...


An alternative from the developer of Coolify. It’s no longer for sale, but the page mentions he’ll open-source it:

https://safetyper.com/


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: