n4ze3m / page-assist

Use your locally running AI models to assist you in your web browsing
https://chromewebstore.google.com/detail/page-assist-a-web-ui-for/jfgfiigpkhlkbnfnbobbkinehhfdhndo
MIT License
1.56k stars 148 forks source link

Add shortcut to toggle open/close the sidebar #223

Open hitzhangjie opened 3 weeks ago

hitzhangjie commented 3 weeks ago

Now we can only add shortcut for open sidebar. I hope we can use the same shortcut to toggle the open/close of sidebar.

This may make it more convenient for any webpage.

If one can use shortcut to quickly open it, but cannot use shortcut to quickly close it, then it's likely that people don't use it at all.

n4ze3m commented 3 weeks ago

Currently, only Firefox has the ability to close the side panel programmatically; the others do not support this yet. There is, however, a keyboard shortcut for opening it.

pleabargain commented 3 weeks ago

I set open side bar with ctrl + shift + k but hitting the same ctrl + shift + k does NOT close the sidebar. assist v.1.3.0 (I see that there's a new v. of assist but it's not on google store yet: https://chromewebstore.google.com/detail/page-assist-a-web-ui-for/jfgfiigpkhlkbnfnbobbkinehhfdhndo

Chrome Version 130.0.6723.70 (Official Build) (64-bit)

desired behavior: short cut for opening the sidebar would also close the sidebar

thank you

n4ze3m commented 3 weeks ago

Hey @pleabargain, Unfortunately, closing the side panel programmatically only works on Firefox, and Chromium doesn’t support it yet.

For the Chrome store, I'm waiting for approval—hopefully by today. Only the Mozilla add-on was approved instantly

zono50 commented 3 weeks ago

Does this work in floorp? i'm hitting ctrl shift p and it simply opens a private window. Where can we change the button combination?

n4ze3m commented 3 weeks ago

Hey @zono50 , on Floorp or Firefox-based browsers, you can change the shortcut like this. You can also close the sidebar programmatically by invoking the same keystroke used to open it, as Firefox supports this feature.

https://github.com/user-attachments/assets/3a076882-00f5-4511-8951-741eabc5a39f

zono50 commented 3 weeks ago

oh ok thank you. Any luck with getting chat with this page to work in floorp with pdfs? it's still not doing anything.

image