min icon indicating copy to clipboard operation
min copied to clipboard

New window option when right clicking on dock icon

Open devgocri opened this issue 2 years ago • 6 comments

Hey there, window support is working great so far! Just a suggestion, it would be nice to have a "New Window" option in the menu when you right click on dock icon, because currently I have to switch to the new virtual desktop (where I want the second window), right click on the icon, click "New Tab", then switch to the right task, delete the old task that the new window created...

A menu when the new window option is clicked would also be great when opening from dock, maybe a "Which task would you like to open" or something that can be toggled off in settings if need be.

image

devgocri avatar Jul 08 '23 01:07 devgocri

Thanks! Good point; I honestly just forgot to update the dock menu since I don't use it very often.

I wonder if we should just list the tasks directly in the dock menu? I'm not sure how I would expect that to work though - whether it would switch to the selected task in the current window or open a new one. Thoughts?

PalmerAL avatar Jul 08 '23 20:07 PalmerAL

Hm... if the tasks would be listed in the dock menu I'd usually assume it would open in a new window, as switching tasks in current window is quite easy to do/faster through the browser window, and there would be no point in someone going to the dock to do it.

Listing the tasks in the dock might lead to an excessively large dock menu though if the user has a lot of tasks - it might be a pain to find what you want/navigating through a huge list...

Maybe a better idea would be to have a "New Window" option in the dock, and then automatically opening the task list in the new window that you would usually access using the icon on the top right. That would then allow the user to select which task they want or they can create a new task without having to clutter their dock menu.

devgocri avatar Jul 09 '23 02:07 devgocri

Maybe a better idea would be to have a "New Window" option in the dock, and then automatically opening the task list in the new window that you would usually access using the icon on the top right.

Here's what this might look like: (I use the menu bar here but you should be able to do this through the dock)

It would be cool if this didn't create a new task.

https://github.com/minbrowser/min/assets/70841501/9ca9d661-4acb-47a2-b420-d7ee710a0b37

devgocri avatar Jul 09 '23 03:07 devgocri

@PalmerAL I guess its already added now time for close this issue?

MohitBansal321 avatar Jan 27 '24 20:01 MohitBansal321

Could someone confirm that the feature also works on Windows and Linux?

kepler-69c avatar Feb 24 '24 23:02 kepler-69c

Unfortunately, it doesn't work under Debian 13 Trixie/testing with KDE Plasma 5.27. AFAIK, for this, the file min.desktop should contain a line like Actions=new-window; followed by a section like this:

[Desktop Action new-window]
Name=Open New Window
Exec=/opt/Min/min --new-window %U
Icon=min

IMHO it would be great if the Min Browser could include at least some of the keyboard shortcuts like "New Window (Ctrl+Shift+N)" as command line parameters as well, possibly listed with the terminal command min --help.

Sadi58 avatar Apr 12 '24 11:04 Sadi58