Comments (12)
Hmm, even a very simple ls | fzf
doesn't work reliably on fish on Ubuntu 14.
jg@jg-VirtualBox ~> ls | fzf
# returns immediately
jg@jg-VirtualBox ~> fg
Send job 2, β/usr/bin/ruby --disable-gems /home/jg/.fzf/fzf $argvβ to foreground
/home/jg/.fzf/fzf:791:in `getc': Input/output error (Errno::EIO)
from /home/jg/.fzf/fzf:791:in `get_input'
from /home/jg/.fzf/fzf:995:in `start_loop'
from /home/jg/.fzf/fzf:232:in `start'
from /home/jg/.fzf/fzf:1194:in `<main>'
from fzf.
I am also having this issue...
from fzf.
Yup, It seems to be caused by a bug or limitation of fish on Linux, unlike ls | fzf
, ls | ruby ~/.fzf/fzf
works fine. I'm looking for a workaround.
from fzf.
I'm working on making fzf_key_bindings.fish suck less for my dotfiles, (no offense, it's just not good fish π) and you're welcome to my changes when I finish.
Also, seems to be working for me when I set TMPDIR. I fix this in my changes, among other issues.
The changed code will be in neersighted/dotfiles.
from fzf.
Sounds great, actually I was secretly hoping for some help :)
It would be even better if TMPDIR is not required all. Please let me know of the progress, thanks!
from fzf.
Does fzf not block in pipes? I seem to be having some trouble with a cd from stdin function, debugging shows that the function is being called before fzf writes to stdout.
from fzf.
I think it's related to this issue: see http://stackoverflow.com/questions/22729298/fish-command-substitution-issue-with-interactive-command
from fzf.
Done! See the refactored code at https://github.com/neersighted/dotfiles/blob/master/config/fish/functions/fzf_key_bindings.fish
from fzf.
Awesome! I'll test it tonight. You interested in sending a pull request?
And, have you found a way to circumvent the aforementioned problem (#60 (comment))? It happens on Ubuntu, but not on OSX.
from fzf.
I can pull it out into a pull request or you can just copy the file from my repo. It seems to fix this issue for me.
from fzf.
Either way is fine for me. Just felt like I should ask you first :)
from fzf.
Ah, my ls
is long by default. If I define fzf as a function and pipe dir
, or command ls
into it, it hangs. However, I think this is a fzf issue with one line of input, as the output of ls
/dir
is only one line long and space delimited. I do not have the same issue with find.
from fzf.
Related Issues (20)
- Streaming filter mode crashes
- fzf-tmux fails if fzf is an aliased HOT 6
- v0.50.0 not showing process data correctly HOT 10
- [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
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.