brookhong / Surfingkeys

Map your keys for web surfing, expand your browser with javascript and keyboard.
https://chrome.google.com/webstore/detail/surfingkeys/gfbliohnnapiefjpjlpjnehglfpaknnc
MIT License
5.4k stars 482 forks source link

Show The Title Of The Windows In Windows Manager #1769

Open Archie-2021 opened 2 years ago

Archie-2021 commented 2 years ago

I always name my windows, show the title of the windows in Windows Manager. Also it would be awesome if you add a shortcut for naming windows.

eugercek commented 2 years ago

If I choose Use system title bar and borders from settings, Chrome shows the title of the page and -Google Chrome by default.

image image

To change the title you can use something like

api.mapkey('ct', 'Change Title', () => {
   document.title =  prompt('Enter new title:');
});

If it's easy to implement input retrieval with Omnibar that would be great.

Archie-2021 commented 2 years ago

If I choose Use system title bar and borders from settings, Chrome shows the title of the page and -Google Chrome by default.

image image

To change the title you can use something like

api.mapkey('ct', 'Change Title', () => {
   document.title =  prompt('Enter new title:');
});

If it's easy to implement input retrieval with Omnibar that would be great.

Are you sure it is the correct command? I am pretty sure document.Title is for page /Tab title. I am talking about this there:

image

And I am using Brave

daanzu commented 4 months ago

Showing these window names in the window manager (like when we choose a window to move the current tab to) would be a great feature addition.

Archie-2021 commented 4 months ago

Showing these window names in the window manager (like when we choose a window to move the current tab to) would be a great feature addition.

Yeah , using move/w command is the only reason I bother to name Chrome/Brave Windows. Never seen another reason to do so.

daanzu commented 4 months ago

Well, I use https://github.com/daanzu/Switcheroo for switching between windows (of any windows application). But having it for moving tabs would be great help for organizing all of my tabs between all of my windows, both of which I have a pathological number.

Archie-2021 commented 4 months ago

Well, I use https://github.com/daanzu/Switcheroo for switching between windows (of any windows application). But having it for moving tabs would be great help for organizing all of my tabs between all of my windows, both of which I have a pathological number.

Cool , didn't know such a thing exist on Windows. There is a Rofi feature on Linux to do this and I even have set a hotkey for it , but I just switch between workspaces and just don't minimize windows. But I can see how this can be useful on Window.