emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Juan Manuel Macías" <maciaschain@posteo.net>
To: orgmode <emacs-orgmode@gnu.org>
Subject: [tip] search this mailing list with helm-surfraw
Date: Mon, 05 Apr 2021 11:25:56 +0200	[thread overview]
Message-ID: <87tuolhyl7.fsf@posteo.net> (raw)

Hi all,

I am a fanatic Helm user, and within Helm I make intensive use of
helm-surfraw. It is necessary to install Surfraw on the system (in Arch
it is in the community repository). For who does not know, Surfraw
(https://en.wikipedia.org/wiki/Surfraw) is a script written by Julian
Assange that lets you perform searches across many engines and internet
sites. Every kind of search is controlled by a set of scripts called
elvi. We can also write our custom elvis, and save them in the
~/.config/surfraw/elvi/ folder. I have written some elvis for my
personal use, among them this simple script to search this mailing list,
which I share here in case someone finds it useful:

#+begin_src sh :shebang #!/bin/sh :tangle ~/.config/surfraw/elvi/orgmode-ml
  # DESC: search Org Mode mailing list archives
  # elvis: orgmode-ml		-- Search Org Mode mailing list archives (https://lists.gnu.org/archive/html/emacs-orgmode/)
  . surfraw || exit 1

  w3_usage_hook () {
      cat <<EOF
  Usage: $w3_argv0 [search words]...
  Description:
      Search in Org Mode mailing list (https://lists.gnu.org/archive/html/emacs-orgmode/)
  EOF
      w3_global_usage
  }

  w3_config
  w3_parse_args "$@"
  if test -z "$w3_args"; then
      w3_browse_url "https://lists.gnu.org/archive/html/emacs-orgmode/"
  else
      escaped_args=`w3_url_of_arg $w3_args`
      w3_browse_url "https://lists.gnu.org/archive/cgi-bin/namazu.cgi?idxname=emacs-orgmode&sort=score&result=normal&max=20&submit=Search!&query=${escaped_args}"
  fi
#+end_src

Best regards,

Juan Manuel 


             reply	other threads:[~2021-04-05  9:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-05  9:25 Juan Manuel Macías [this message]
2021-04-25  5:00 ` [tip] search this mailing list with helm-surfraw Bastien
2021-04-25  5:10   ` Greg Minshall
2021-04-25  6:07     ` Bastien
2021-04-25 13:16       ` Greg Minshall
2021-04-27 20:20   ` Juan Manuel Macías

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87tuolhyl7.fsf@posteo.net \
    --to=maciaschain@posteo.net \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).