counsel-ffdata icon indicating copy to clipboard operation
counsel-ffdata copied to clipboard

Use ivy interface to access your firefox bookmarks and history in Emacs

#+TITLE: Access your Firefox bookmarks and history with ivy interface

[[http://melpa.org/#/counsel-ffdata][file:http://melpa.org/packages/counsel-ffdata-badge.svg]]

  • Introduction

=counsel-ffdata= allow you to access your Firefox user data (currently bookmarks and history) with ivy interface in Emacs.

[[file:screenshot/access_bookmarks.png]]

[[file:screenshot/access_history.png]]

  • Quick Start

** Install sqlite3 binary

For most *nix distribution, you can simply install it with your system package manager. For example,

#+BEGIN_SRC sh sudo pacman -S sqlite #+END_SRC

#+BEGIN_SRC sh sudo apt-get install sqlite3 #+END_SRC

For Windows system, you can use [[https://github.com/chocolatey/choco][choco]].

#+BEGIN_SRC sh choco install sqlite #+END_SRC

** Install plugin

*** Install from Melpa

=counsel-ffdata= is currently available on melpa, so you can install it with

#+BEGIN_SRC M-x package-install RET counsel-ffdata RET #+END_SRC

*** Install manually

=counsel-ffdata= is depend on [[https://github.com/abo-abo/swiper][ivy]] and [[https://github.com/skeeto/emacsql][emacsql]], you need to install them manually.

Clone this repo, Write following Elisp in your =.emacs= file.

#+BEGIN_SRC elisp (add-to-list 'load-path "/path/to/plugin") (require 'counsel-ffdata) (global-set-key "C-c F h" #'counsel-ffdata-firefox-history) (global-set-key "C-c F b" #'counsel-ffdata-firefox-bookmarks) #+END_SRC

  • Customization

Bind the functions below to your favourite key.

| Functions | Usage | | =counsel-ffdata-firefox-bookmarks= | Access your Firefox Bookmarks | | =counsel-ffdata-firefox-history= | Access your Firefox History |

=counsel-ffdata= will guess the path of your Firefox database. However, but if you use different Firefox profile, you may get unexpected behaviour. Customize =counsel-ffdata-database-path= to specify your path to firefox database.

  • Contribution

Issue reporting and PR are welcome.

  • Support

如果你觉得我的作品为你带来便利, 欢迎使用爱发电支持我

https://afdian.net/@cireu

If you like my work, you can support me via Patreon

https://www.patreon.com/user?u=24945220