Skip to content

History for dmenu, fzf and rofi -dmenu type applications (show most frequently accessed on top)

Notifications You must be signed in to change notification settings

afreakk/dmenuhistory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 

Repository files navigation

dmenu history caching, shows most frequently selected first

Works with dmenu, fzf, rofi -dmenu etc.

Installation

Compile using ghc -O2 dmenuhist.hs (No special dependencies other than haskell needed), then put dmenuhist executable in path

Example usages

Add history to dmenu_run
#!/bin/sh
dmenu_path | dmenuhist ~/.cache/dmenu_run_hist dmenu | ${SHELL:-"/bin/sh"} &
Show all Git projects using locate, select using fzf, cache history to ~/.cache/gitprojects, cd to directory and open its file listing in Vim
#!/bin/bash
project=$(locate -r '\.git$'| sed 's/....$//' | dmenuhist ~/.cache/gitprojects fzf)
if test -z "$project"
then
    echo "Nothing selected"
else
    cd $project
    vim .
fi
Open some file in ~/.config with Vim, save history to ~/.cache/configfilecache and open in Vim.
find ~/.config -type f | dmenuhist ~/.cache/configfilecachex rofi -dmenu | xargs -o vim

Caveats

  • Does not work with multi select, will only save and output the first entry.

About

History for dmenu, fzf and rofi -dmenu type applications (show most frequently accessed on top)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published