emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jean Louis <bugs@gnu.support>
To: emacs-orgmode@gnu.org
Subject: Tip: How to quickly transform Firefox/Iceweasel/Icecat bookmarks to Org file
Date: Mon, 21 Dec 2020 10:44:31 +0300	[thread overview]
Message-ID: <X+BSX4Rnsy8INKMv@protected.rcdrun.com> (raw)

As Firefox and derived browsers store bookmarks in the file
`places.sqlite' one may access the file with `sqlite3' utility and use
SQL query to get a list of all bookmarks and transform them into Org
file.

1. Locate your `places.sqlite' file on your system, it must be in your
   Firefox profile. As I am using Hyperbola GNU/Linux-libre it is in
   `~/.hyperbola/iceweasel/uxp/PROFILE-NAME-HERE/places.sqlite'

2. Use the `sqlite3' command and the script below to export to
   `captured.org'

$ sqlite3 ~/.hyperbola/iceweasel-uxp/co46wr2o.default/places.sqlite "SELECT moz_places.title, moz_places.url FROM moz_places, moz_bookmarks WHERE moz_places.id = moz_bookmarks.fk AND moz_places.title IS NOT NULL;" | gawk -F \| '{ print "* " $1 "\n\n[["$2"]["$1"]]\n"}' > captured.org

That is very handy as it produces a file like below:

* linux - Can I spy on an X-session if I am logged in as root? - Server Fault

[[https://serverfault.com/questions/268518/can-i-spy-on-an-x-session-if-i-am-logged-in-as-root][linux - Can I spy on an X-session if I am logged in as root? - Server Fault]]

* Howto: Remote the native X server (i.e. the ":0" X display) using VNC [Archive] - Ubuntu Forums

[[https://ubuntuforums.org/archive/index.php/t-279069.html][Howto: Remote the native X server (i.e. the ":0" X display) using VNC [Archive] - Ubuntu Forums]]

* Tensor tympani muscle - Wikipedia

[[https://en.wikipedia.org/wiki/Tensor_tympani_muscle#Voluntary_control][Tensor tympani muscle - Wikipedia]]

* Logo and Natural Language

[[https://el.media.mit.edu/logo-foundation/what_is_logo/logo_and_natural_language.html][Logo and Natural Language]]





                 reply	other threads:[~2020-12-21  7:48 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=X+BSX4Rnsy8INKMv@protected.rcdrun.com \
    --to=bugs@gnu.support \
    --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).