Questions tagged [fzf]

Use for questions specific to the command-line fuzzy finder, fzf : https://github.com/junegunn/fzf

Filter by
Sorted by
Tagged with
0
votes
1answer
38 views

Passing a Directory to cd

I have a function, which I would hope would get me a fuzzy search on the latest directories I have been looking at and save me time, a simple 1 liner: dirs | sed 'y/ /\n/' | fzf | xargs cd 2 hours ...
1
vote
1answer
37 views

How to use terminal as program runner with FZF

I have a thought. Can I use a terminal as program runner? Instead of dmenu / rofi I was thinking to list all the programs with FZF, run the selection, and then close the terminal after it runs. I ...
0
votes
1answer
67 views

List all directories in home folder with fd

I'm trying to write a shell function to rapidly cd into any directory in my home folder, using the fd and fzf programs. This is what I have so far function fdcd() { cd "$(fd --type d --ignore-file ...
0
votes
0answers
15 views

Splash when using fc command through fzf in subshell

If we have this below command: fc -rl 1 | fzf --height 10% Then we don't have a splash (feel like double redraw screen) If we have this below command: cmd=$(fc -rl 1 | fzf --height 10%) Then now ...
1
vote
0answers
55 views

Alternative to fc command in zsh

I have below code: # CTRL-R - Paste the selected command from history into the command line fzf-history-widget() { local selected num setopt localoptions noglobsubst noposixbuiltins pipefail ...
0
votes
0answers
42 views

fzf: sub-command completion?

I've notices this line in zsh autocompletion https://github.com/junegunn/fzf/blob/85644aa3fb9da6fbe1807b793f085130932594ce/shell/completion.zsh#L169 What if I have a command that has sub-command ...
3
votes
1answer
432 views

Auto trigger history search in terminal using fzf (fuzzy finder)

Is it possible to trigger fzf history search automatically in zsh shell? In this video, the user clicks "Ctrl+r" to start the history search and then starts typing. Is it possible to start the ...
0
votes
1answer
58 views

fzf: How to return “ID” / line numbers?

I have a set of lines (item + description) which I want to run through fzf -m. For example: item1: Some description item1: Another description item2: Yet another description After selection I would ...
0
votes
0answers
49 views

Vimscript infinite loop

I'm trying to combine fzf-bibtex with UltiSnips so that I can search my bibliography file and insert a BibTeX key automatically. I use the following function from fzf-bibtex (which calls the binaries ...
0
votes
1answer
99 views

Launch default application for files with fzf

fzf has some keybindings of which some are listed below as examples: Alt-C : cd into the selected directory Ctrl-T : select a file I want to add a keybiding so that I can launch the selected file ...
1
vote
0answers
52 views

how to use fzf with bidirectional languages?

I am using a bash script to provide a search utlilty to locate and open files and directories. here is the script: #!/bin/bash lxterminal -e "bicon.bin locate /home /run/media |fzf >| ~/....