From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jonas Damm Newsgroups: gmane.emacs.help Subject: Re: emacs <----> firefox Date: Fri, 22 Apr 2022 06:26:48 +0200 Message-ID: <87fsm5yc25.fsf@jonas-damm.de> References: <87o80teu2c.fsf@aol.com> <87o80tyd22.fsf@jonas-damm.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34710"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.6.10; emacs 28.1.50 Cc: help-gnu-emacs@gnu.org, Hendursaga To: Samuel Wales Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 22 06:31:57 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nhkxY-0008sJ-UU for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 22 Apr 2022 06:31:56 +0200 Original-Received: from localhost ([::1]:49182 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nhkxX-00050E-PB for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 22 Apr 2022 00:31:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60738) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nhkwS-0004yi-Pl for help-gnu-emacs@gnu.org; Fri, 22 Apr 2022 00:30:48 -0400 Original-Received: from dd15330.kasserver.com ([85.13.136.159]:38628) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nhkwQ-00048M-Kk for help-gnu-emacs@gnu.org; Fri, 22 Apr 2022 00:30:48 -0400 Original-Received: from x220t (unknown [165.231.67.39]) by dd15330.kasserver.com (Postfix) with ESMTPSA id 1AE6B7500048; Fri, 22 Apr 2022 06:30:43 +0200 (CEST) In-reply-to: Received-SPF: none client-ip=85.13.136.159; envelope-from=emails@jonas-damm.de; helo=dd15330.kasserver.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:136992 Archived-At: Exwm is just mapping the individual windows to emacs buffers. The function efs/exwm-update-title () changes the buffername to the title of the tab. After that you can use any function you prefer to search a tab. I use counsel-switch-to-buffer. This allows to type only a few characters of the tab-title to find and preview it directly. Samuel Wales writes: > thank you. is this a combination of putting all tabs into windows and > using exwm to filter those? exwm is intriguing, however, 1000 windows > would not be possible for me and i am currently stuck with fluxbox. > > also, i meant for my question to be open-ended, i.e. this kind of > thing and any kind of emacs <----> firefox stuff is welcome. i don't > know what is really possible out there or written without yet being > published etc. so i do not mean to limit this query to searching tabs > but also include other things that currently are not possible to do in > firefox. thus nobody off topic. > > [for all i know, maybe there is a comprehensive-ish org-mode / firefox > dot files / whatever kind of thingie.] > > > On 4/21/22, Jonas Damm wrote: >> Hi, >> >> The following is a solution I copied from David Wilsons >> "emacs-from-scratch" repository: >> >> You could configure Firefox to open every tab as a new window, for >> example by using the "i hate tabs" extension. >> >> I am using exwm, so I have this in my emacs config: >> >> (defun efs/exwm-update-title () >> (pcase exwm-class-name >> ("Firefox-esr" (exwm-workspace-rename-buffer (format "Firefox: %s" >> exwm-title))) >> ("qutebrowser" (exwm-workspace-rename-buffer (format "Qutebrowser: %s" >> exwm-title))))) >> >> You can find out more about this here: >> https://github.com/daviwil/emacs-from-scratch/blob/f4918aadf6970b098999d28bdbc212942aa62b80/show-notes/Emacs-Desktop-03.org >> >> With this, you can fuzzy search your tabs by the switch-to-buffer >> command or with counsel-switch-to-buffer, which i prefer. >> >> >> >> >> >> Samuel Wales writes: >> >>> that sounds very interesting. i am glad alternatives like that are >>> being developed. however, i am very interested in the emacs <----> >>> firefox thing, but i don't think i have it in me to try an entirely >>> new gui browser, for a variety of reasons. >>> >>> >>> On 4/21/22, Hendursaga wrote: >>>>> i thought perhaps some firefox <----> emacs thing could help. >>>>> >>>>> any ideas here? other than don't have 1000 tabs? >>>> >>>> This doesn't directly answer your question, but have you looked into the >>>> Nyxt browser[1]? It's mostly written in Common Lisp and one could >>>> describe >>>> it as an aspiring Emacs of web browsers. Tab filtering / switching is one >>>> of >>>> its strengths. In addition, there are ways of interoperating with Emacs, >>>> see >>>> for instance, some of Andrea's blog articles[2]. >>>> >>>> [1] https://nyxt.atlas.engineer/ >>>> [2] https://ag91.github.io/tags/nyxt/ >>>> >> >>