Comments (4)
For now i built fzf myself with a modification in key-bindings.zsh like this :
if [[ "${FZF_CTRL_R_COMMAND-x}" != "" ]]; then
zle -N fzf-history-widget
bindkey -M emacs '^R' fzf-history-widget
bindkey -M vicmd '^R' fzf-history-widget
bindkey -M viins '^R' fzf-history-widget
fi
and sourcing fzf like this in my zshrc
FZF_CTRL_R_COMMAND= source <(fzf --zsh)
from fzf.
if it would be possible to get syntax highlighting like zdharma-continuum/history-search-multi-word for history backsearch with fzf ?
I'm not sure. We would have to use bat
for syntax highlighting, but our recent change to support multi-line display will probably make it difficult to incorporate that into our script.
Related: sharkdp/bat#2974
Or add an option to disable only the Ctrl-R key biding
Maybe you can load fzf --zsh
first, then the other plugin so that the latter overrides CTRL-R
binding of fzf?
from fzf.
Maybe you can load
fzf --zsh
first, then the other plugin so that the latter overridesCTRL-R
binding of fzf?
Yes, it works. But I don't find it very convenient.
Is there a specific reason that CTRL-R
is the only binding where the command can't be overridden, like CTRL-T
and ALT-C
?
from fzf.
Yes, it works. But I don't find it very convenient.
Thanks for the confirmation, so we do have a workaround.
Is there a specific reason that CTRL-R is the only binding where the command can't be overridden
Mainly because no one has asked for it. Opting out of the other keys was a recent addition (see #3678); we didn't include CTRL-R in the patch because there is no FZF_CTRL_R_COMMAND
.
from fzf.
Related Issues (20)
- Merge fish history before showing history widget HOT 3
- Vi-mode for input field navigation and editing. Maybe by introducing readline support? HOT 1
- Ability to control search order (or have `--nth` respect it) HOT 2
- Cannot exclude symbolic links from search HOT 9
- `--walker-skip symlink-to-dir` not skipped
- Missing directory slashes when completion chosen HOT 16
- make CTRL-T work with directories outside the current one HOT 3
- Dynamically changing colors HOT 1
- Dynamically changing preview label position HOT 4
- Panic when killing script since 83b6033 'main.go' HOT 1
- Option to disable terminal beep when exiting search HOT 5
- 0.53.0: --bind behaviour changed? HOT 4
- Feature request: Ability to display current line position and matched item count in fzf info HOT 7
- Garbage escape symbols in preview window HOT 1
- Switching to a dir outside of current dir with ALT-C HOT 3
- Significant prompt flick with fzf --expect HOT 4
- Replacing placeholder by the query when no match HOT 2
- Using bind with an echo output, the variable assignment no longer works HOT 2
- Question: What's the expected behavior with --nth and --with-nth together? HOT 2
- Manually triggering events HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fzf.