Unbox icon indicating copy to clipboard operation
Unbox copied to clipboard

Replace contents of stash with open/selected tabs

Open jbmorgado opened this issue 5 years ago • 5 comments

Problem Statement

When working on a a session and wanting to update a stash, I need to either manually update the stash (adding and removing only the changed tabs one by one), or I need to delete the stash and create a new one under the same name.

Preferred Solution

When saving (or with a different updating button) a stash, the previously saved stash would update the saved tabs to reflect only the ones that are presently open.

This would remove any closed tabs and any duplicate ones.

Alternative Solutions

Not really.

Additional Context

jbmorgado avatar Jan 06 '20 13:01 jbmorgado

What do you mean by "changed tabs"? What do you mean by "one by one"? If I understand what you are wanting correctly, I'd be totally opposed to this since it would mean that if I opened some unrelated tabs, which happens very frequently, they'd end up in an unrelated stash. Also tabs I didn't want to disappear would disappear. So a -1 from me on this feature request.

junkblocker avatar Jan 06 '20 18:01 junkblocker

At times I've found myself wanting it both ways--sometimes I want to append my open tabs to a stash, and sometimes I want to replace the stash with my open tabs. So I definitely don't want to eliminate the existing behavior, but I also see a case for replacing an entire stash.

I'll think about how best to do both. Right now I'm thinking it could be added as an option to an existing button (e.g. Alt+Click or Ctrl+Click). My concern with adding a new button is that might start to get too visually confusing/complicated especially for new users.

I'd love to hear your ideas.

josh-berry avatar Jan 09 '20 18:01 josh-berry

From my part I would like to see a new icon, but I do understand that you prefer to keep the number of buttons down. Sincerely, as long as the option exists I don't mind a key+button click. For people wanting to use the functionality, that isn't going to stop them.

jbmorgado avatar Jan 14 '20 13:01 jbmorgado

I think right click on the "save" button would be the place to put these extra options.

In my use flow there are cases where I open a stash, work on it, open couple new tabs, and then want to save it and continue later on. Currently I need to create a new stash, rename it and delete the old one but ideally I could just append the new tabs and remove newly closed tabs from the existing stash. I.e. "Update to current tabs" action on that right-click menu.

Jaakkonen avatar Apr 11 '22 23:04 Jaakkonen