MRdotB
Iex history fuzzy find
Hello,
I wanted to share you some a little script I made to search my iex history.
It require tmux and fzf.
How it look like (click if the gif is not playing)

If you are interested or have some suggestions you can check the github repo
Most Liked
MRdotB
It will be nice but I don’t know if it’s possible, last time I checked . Let me explain you how I did.
I open another shell in a split below with tmux then I run fzf in this terminal with my elixir history as input the output (selected line) is written in a fifo. The fifo is read and the line is send as key to the shell running iex.
mkfifo -m o+w $fifo
tmux split-window "iex-history | fzf -s > $fifo"
tmux send-keys -t $current_pane -l "$(cat $fifo)"
MRdotB
Thanks to @dimitarvp who bumped my thread I revisited the project today.
One thing that annoy me is when I typed many line in iex pressing arrow up only show the last line.
I added the fzf option to select multiples lines.
Check the new demo on asciinema ![]()
dimitarvp
Can this be used without tmux? I am interested in having better history search but I’d prefer such a tool to be mostly independent of the shell it’s used in.
Popular in Discussions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance









