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.12k stars 465 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