[go: up one dir, main page]

Skip to content

LeaderF extension to navigate Firefox's history and bookmarks

License

Notifications You must be signed in to change notification settings

dawsers/LeaderF-firefox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeaderF-firefox

Introduction

LeaderF-firefox is a package that provides a Vim LeaderF interface for Firefox bookmarks and history. It can be downloaded here.

Requirements

LeaderF-firefox is an extension, so you need LeaderF to make it work.

The package also needs sqlite to be able to access the database containing bookmarks and history. Install it using your system’s package manager.

Custom Variables

g:Lf_FirefoxDb

This variable tries to guess where the Firefox database places.sqlite is, but the guess is not very elaborated. It may work OK on Linux systems, but for any other OS, it is probably better to set it manually.

The default value is ~/.mozilla/firefox/*.default*/places.sqlite.

The value can include environment variables and it will also be glob-expanded. When this happens, the first expanded value is considered the database name.

Commands

CommandDescription
LeaderfFirefoxList history and bookmarks
LeaderfFirefoxBookmarksList bookmarks
LeaderfFirefoxHistoryList history

There are no default mappings for any of the commands.

The extension allows multiple selections using s to toggle any line and c to clear all the selections.

When in the ===LeaderF= buffer, use <F1> for help. These are the bindings for immediate actions:

KeyDescription
<CR>/double-click/oOpen URL in default browser
i/<TAB>Switch to input mode
sToggle selection
cClear selections
tOpen selection(s) in browser tab
wOpen selection(s) in a new browser window
yYank selection(s) url(s)
qQuit
<F1>Toggle this help

Highlighting

There are three highlighting groups you can use to customize the look of the list: Lf_hl_firefoxDate, Lf_hl_firefoxTitle and Lf_hl_firefoxUrl. You can assign colors to them customizing your colorscheme, or through the usual LeaderF palette variables.

Installation

Install using Plug.

Plug 'Yggdroot/LeaderF', { 'do': './install.sh' }
Plug 'dawsers/LeaderF-firefox'

" Default value, usually works on Linux systems
" let g:Lf_FirefoxDb = '~/.mozilla/firefox/*.default*/places.sqlite'

" There are no default keyboard bindings, these are an example
nnoremap <silent> <leader>Ff :LeaderfFirefox
nnoremap <silent> <leader>Fb :LeaderfFirefoxBookmarks
nnoremap <silent> <leader>Fh :LeaderfFirefoxHistory

About

LeaderF extension to navigate Firefox's history and bookmarks

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published