RaySession icon indicating copy to clipboard operation
RaySession copied to clipboard

Feature request: Remove all trashed clients.

Open M0JXD opened this issue 11 months ago • 2 comments

Hi Houston4444,

First and foremost, thanks for this awesome session manager.

As I've been developing I frequently run new builds that auto connect to the RaySession via the NSM_URL env variable. Each time I run a new build it gets added as a new client and I trash the old ones.

The trash can gets filled with old clients pretty quick, and each one must be "permanently deleted" manually. it'd be nice to have a way to clear all trashed items with one action.

Thanks for reading.

M0JXD avatar Jan 15 '25 02:01 M0JXD

Hi ! Thanks for your thanks ;)

You are not the first to ask for a such feature, I could do something for this indeed. Waiting for that, you can simply run the following command to remove definitely all trashed clients in the current session:

for client in `ray_control list_trashed_clients`;do ray_control trashed_client $client remove_definitely;done

As I've been developing I frequently run new builds that auto connect to the RaySession via the NSM_URL env variable. Each time I run a new build it gets added as a new client and I trash the old ones.

I suggest another workflow, I prefer it personally, add a client with your program (with absolute path if you need to run your non installed program), and check the box "run in a terminal" in the client properties NSM tab. then each time you build, you can run something like: make && ray_control client MY_CLIENT_ID start.

Houston4444 avatar Jan 15 '25 17:01 Houston4444

Thanks so much for the bash script!

The new workflow will be useful most of the time but will also make attaching my editor's debugger integration (or even using GDB directly) to the running instance more difficult. Still, unless the issue to debug is NSM related it won't be problem.

M0JXD avatar Jan 15 '25 18:01 M0JXD