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)
- [Feature Request] Customizable shell command flag for command execution HOT 2
- [Feature Request] Integrate fzf into Gnome Search
- FZF to search in winget store and it closes previous fzf window
- Respect $FZF_DEFAULT_OPTS_FILE in key bindings and completion
- How fzf operate with stdin/stdout/stderr/tty/pipe? HOT 1
- Fzf cannot find a function configured as FZF_ALT_C_COMMAND HOT 5
- Incorrect command-line options in shell key-bindings scripts (--scheme=history and --bash) HOT 2
- TestOSExitNotAllowed fails when `go test` is passed `-trimpath` HOT 17
- Bind option doesnt work always HOT 1
- The prompt appears slowly HOT 2
- Not searching recursively HOT 5
- [Feature Request] add `toggle+to+top` and `toggle+to+bottom` actions HOT 2
- [question] Action to toggle multi selection HOT 6
- fish shell: CTRL_T not starting fzf from specified file path HOT 1
- Command failed on starting fzf
- Multiple delimiter to work with -n and --select-1?
- fzf adding a ^ character on Windows when an @ symbol exists in selected line/field HOT 5
- Alt-c overwrites prompt that is in next line HOT 6
- action execute sudoedit: laggy input
- change-preview-window resets change-preview HOT 3
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.