minbrowser / min

A fast, minimal browser that protects your privacy
https://minbrowser.org/
Apache License 2.0
7.72k stars 684 forks source link

New window option when right clicking on dock icon #2278

Open devgocri opened 1 year ago

devgocri commented 1 year ago

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
PalmerAL commented 1 year ago

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?

devgocri commented 1 year ago

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 commented 1 year ago

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

MohitBansal321 commented 5 months ago

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

Kepler-69c commented 4 months ago

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

Sadi58 commented 2 months ago

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.