Comments (12)
Thanks.
It's obviously zsh's problem. And it looks like we don't need history
command.
1, 2, 3, 4, 5 as you described
6. Just press enter
7. CTRL+R, and you'll see the updated list
Seems like command history seen inside a widget is not immediately updated until you start a new prompt by pressing enter. Are you aware of any way to fix the behavior?
from fzf.
Not yet. But I'll be sure to submit this to zsh developers.
Thanks.
from fzf.
@junegunn, almost forgot :) Is there any way to show more than just 30 last commands in Ctrl+R menu? Didn't find any way to change this behaviour.
from fzf.
Hmm, fzf should show unlimited number of commands. (See https://github.com/junegunn/fzf/blob/master/install#L219)
Please update the repository and re-run the install script.
from fzf.
Yeah, that's fc thing, I guess. Still can't view more than last 30 lines :(
BTW, fc has -n option, which could omit | sed "s/ *[0-9*]* *//"
. Line numbers may be useful, but with inc_history_append
there're also asterisks after some line numbers which ends up in something like that - * ls ./
.
from fzf.
What is the output of fc -l 1 | wc -l
? AFAIK, fc -l 1
command should report all the commands in the history so if it returns 30, you should check your shell configuration.
Removing command index was discussed before, but I find it useful and won't remove it. And the sed command already removes the asterisk as well ([0-9*]*
).
from fzf.
fc -l 1
prints 28-29 lines. And my ~/.zsh_history contains 130 lines at the moment.
from fzf.
Hmm. How about 'history' 1 | wc -l
?
from fzf.
Same.
from fzf.
Okay, then there's nothing fzf or .fzf.zsh can do. You should figure out why those commands are giving you only 30 commands.
from fzf.
Do you have $HISTSIZE
set?
See "2.5.4: Setting up history " section in http://zsh.sourceforge.net/Guide/zshguide02.html
from fzf.
Yep, zsh support answered me with that:
This has already been reported and a patch can be found in the article
zsh-workers/32682 ( http://www.zsh.org/mla/workers/2014/msg00470.html )It was an intentional change to fix a different problem (elapsed time
accuracy) but we underestimated the importance for some users of having
the immediate file update.
Haven't tried this yet, though.
from fzf.
Related Issues (20)
- Escape issue in vim with latest changes on s:shellesc_cmd HOT 9
- Background color for prompt only? HOT 4
- Tarball extraction in install.sh — improvement suggestion HOT 6
- Calling fzf#run with a list as source fail (n)vim is used from git bash HOT 25
- FZF_COMPLETION_OPTS to not follow symbolic link on **<TAB> completion being ignored HOT 5
- Preserve fzf fuzzy list view? HOT 11
- Preserve color output of `kubecolor get pods -A | fzf --ansi`? HOT 1
- Is it possible to create new bind on action from transform HOT 2
- Unknown command fzf_key_bindings error when invoking read in a Fish shell script HOT 3
- Header line at bottom? HOT 1
- `{q}` isn't escaped properly on Windows HOT 12
- last good fzf for fzf.vim on Windows 10 HOT 4
- FZF ignores nested files from $FZF_DEFAULT_COMMAND='fd' but not when piping fd into FZF HOT 3
- Can't input non ascii characters HOT 6
- Hang on SIGSTP when session leader
- simplify cygwin handling in Git Bash
- Action to clear selections if there are any else exit fzf. (Feature request) HOT 1
- Feature request: no-clear option that affects execute action (no clear before executing)
- On fzf.vim opening in new cmd Window in Git Bash HOT 37
- [Feature Request] Combining `--expect` and `--bind` HOT 4
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.