akirakyle / emacs-webkit

An Emacs Dynamic Module for WebKit, aka a fully fledged browser inside emacs
GNU General Public License v3.0
419 stars 24 forks source link

Using swiper in buffers/emulating tabs #26

Open ReggieMarr opened 3 years ago

ReggieMarr commented 3 years ago

This is not so much an issue or feature request as an open question.

I've found this plugin really useful however I've noticed it lacks two aspects that would otherwise having me switch to this more often. Notably is there a way to use swiper to search on text in the buffer ? Often I find I'm opening some webpage and it would be nice to be able to quickly swipe on the text in the buffer. I've thought about creating a binding which would switch from viewing a webpage from webkit to eww to get nice text manipulation features on demand however optimally this would be done without leaving webkit.

Additionally I'd like to have tabs (or emulate something like tabs). The best idea I can come up with is adding a switch to cache (or save where the cache is) for webpages when hitting a link so that I can easily switch back to other previously viewed webpages.

Let me know if these things have already been attempted or if you have any thoughts.

bqv commented 3 years ago

I too would be interested in swiper...

bqv commented 3 years ago

(I do not however see the need for tabs, because emacs already has buffers, and I think supports tabbed frames anyway)

ReggieMarr commented 3 years ago

(I do not however see the need for tabs, because emacs already has buffers, and I think supports tabbed frames anyway)

I'm not thinking tabs in the typical sense. Rather I think it would be useful to maintain a cache of pages that could be switched to like a number of buffers. I'm looking at implementing this myself first simply as a alist of url page headlines and url's

bqv commented 3 years ago

Isn't that already easy? Open M-x webkit multiple times, each page is a buffer. I use it that way, switching is fine