fzf-dirhistory
A small Python package that keeps a history of recently visited directories. It is primarily intended for use by FZF to quickly jump to previous locations.
Installation
pip3 install --user fzf-dirhistory
Usage (with Bash)
Add this to your .bashrc to log directories as you visit them:
PROMPT_COMMAND='python3 -m fzfdirhist log "$(pwd)"'
Then add this function to call FZF with the history file as input:
fdh() {
local dir=$(python3 -m fzfdirhist show | fzf --height=40% --reverse +m)
cd "$dir"
}
Calling fdh will jump to the selected location. You may want to map that
function (here to ALT-H denoted by \eh):
bind '"\eh": "\C-k\C-u fdh\n"'
Configuration
The DIR_HISTORY_FILE environment variable points to the history file (by
default ~/.dirhistory):
export DIR_HISTORY_FILE="~/.fzf_dirhistory"
The DIR_HISTORY_SIZE environment variable sets the history maximum size (by
default 100):
export DIR_HISTORY_SIZE=200
License
Metadata
Release files for fzf-dirhistory 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fzf-dirhistory-0.1.1.tar.gz | 11.9 kB | Without provenance | Details for fzf-dirhistory-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fzf_dirhistory-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for fzf_dirhistory-0.1.1-py3-none-any.whl |
Total release size: 24.4 kB
Release files / fzf-dirhistory-0.1.1.tar.gz
| Download URL | fzf-dirhistory-0.1.1.tar.gz |
|---|---|
| Size | 11.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
329142a32a026660aa4eb4b975632f0796161b0c77238bb1db02d93fbd45d78e
|
|
BLAKE2b-256 checksum How to use checksums |
aef427016f87de3e6ae7ce178d5c806b21e507e642c0719de81d43636d451903
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.5
|
Release files / fzf_dirhistory-0.1.1-py3-none-any.whl
| Download URL | fzf_dirhistory-0.1.1-py3-none-any.whl |
|---|---|
| Size | 12.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
37fcfdfe7c040a41fb24cac5d5b525de43c109b7bc79dbf4f9ac3657e6449412
|
|
BLAKE2b-256 checksum How to use checksums |
d89ce7a4e6a976c2b5006eda06ddc292cfbbc6a5986576ba8d25bf3944447ea8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.5
|
Security for fzf-dirhistory 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.