Comments (18)
Have you tried the latest version?
from faint.
Yes.. I Just did a git pull .. and it said "Already up to date" then did a "sudo make install" . The above issue still exists on my system.
from faint.
Let me have a look at your faint-operate
and faint
files.
from faint.
Here you go ..
from faint.
Everything looks fine there.
I've tried to reproduce the issue but haven't been able to do so.
I will see what I can do about this.
In the mean time, try removing the -m
flag from the faint
file and see if it helps or not.
And also try running find . -maxdepth 1
on your shell and see if you get any entry named -m
on the standard output or not.
from faint.
Looks like the problem is with --header ' ' [ ie. being empty somehow.. ]
I changed the line 27 to look like :
25 FZF_DEFAULT_OPTS="\
26 $FZF_DEFAULT_OPTS
27 --reverse --border --no-info --margin 15%,30% --no-color -m --cycle --header '-----'
28 --bind \"$KEY_LAUNCH:reload(faint-list -l {})+clear-query+top\"
29 --bind \"$KEY_OPERATE:execute(faint-operate {+})+reload(faint-list -r)+clear-query+top\"
30 --bind \"$KEY_BOOKMARK:execute(faint-bookmarks)+reload(faint-list -r)+clear-query+top\"
31 --bind \"$KEY_BACK:reload(faint-list -b)+clear-query+top\"
32 --bind \"$KEY_QUIT:cancel\"
33 --bind \"$KEY_SHELL:execute(kill -35 $$)+abort\"
34 --bind \"$KEY_EDIT:execute(faint-launch -e {})+clear-query+top\"
35 --bind \"$KEY_MARK_ALL:toggle-all\"
36 --bind \"$KEY_MARK_DOWN:toggle-down\"
37 --bind \"$KEY_MARK_UP:toggle-up\"
38 --bind \"$KEY_UP:up\"
39 --bind \"$KEY_DOWN:down\"
40 --bind \"$KEY_REFRESH:reload(faint-list -r)\"
41 "
42 export FZF_DEFAULT_OPTS
Now I get this
https://imgur.com/GaeH2fL.png
which is kinda acceptable instead of an "empty" string being the header (which seems to be causing the issue)
PS :
I can't seem to put anything else (ie. space etc.) other than a visible character to make it to work with the --header option. So I chose '------' as a separator/header . Whether it is an Escaping of Character(s)/String(s) issue, I don't know.
from faint.
And also try running find . -maxdepth 1 on your shell and see if you get any entry named -m on the standard output or not.
I didn't get any entry name -m in the output.
from faint.
If I run fzf with the same "FZF_DEFAULT_OPTS" in faint (ie. --header '' ) in the terminal.
$ /usr/bin/fzf --reverse --border --no-info --margin 15%,30% --no-color -m --cycle --header ''
It shows up as an empty line as header in the fzf-popup window, like it is supposed to.
from faint.
I see. In that case, replace the single quotes with double quotes and escape them using backslashes.
It's gonna look like this --header \"\"
.
I'm gonna push with this on the next commit so that you don't have to worry about compatibility with the new versions.
from faint.
--header \"\"
I tried that option earlier too.. But then I was getting this error, from the very next line in "faint" file:
$faint
unknown option: ;:reload(faint-list -l {})+clear-query+top
27 --reverse --border --no-info --margin 15%,30% --no-color -m --cycle --header \"\"
28 --bind \"$KEY_LAUNCH:reload(faint-list -l {})+clear-query+top\"
from faint.
Okay then try removing the export FZF_DEFAULT_OPTS
line altogether and put the export
command before the FZF_DEFAULT_OPTS
variable. It's gonna look like this...
export FZF_DEFAULT_OPTS="\
$FZF_DEFAULT_OPTS
--reverse --border --no-info --margin 15%,30% --no-color --header ''
...
...
...
from faint.
Okay then try removing the
export FZF_DEFAULT_OPTS
line altogether and put theexport
command before theFZF_DEFAULT_OPTS
variable. It's gonna look like this...export FZF_DEFAULT_OPTS="\ $FZF_DEFAULT_OPTS --reverse --border --no-info --margin 15%,30% --no-color --header '' ... ... ...
I am getting the same error as before.
$faint
unknown option: ;:reload(faint-list -l {})+clear-query+top
$ fzf --version
0.20.0
from faint.
Let me have a look at your faint-config
file
from faint.
Here you go ..
faint-config.zip
from faint.
I think your back
and launch
keys are causing the issue.
Try a few things like double quoting, no quoting and escaping to see what works for you.
Fingers crossed.
P.S.: Try pulling down the new version to see if it helps or not.
from faint.
Thanks for all your help. I am happy with making the header '---' to avoid the issue, for now. May be its an issue with my version of fzf or my setup.
from faint.
You better not give up on me man! lol.
We'll figure this out. 🙂
from faint.
Definitely not!. Sure thing..
from faint.
Related Issues (9)
- no 'FAINT_FILTERS' directory HOT 4
- unknown option rounded HOT 2
- On ArcoLinux, not placing faintrc at $HOME/.config/faintrc, and then error when I put it there
- [Feat request?] toggle hidden files HOT 1
- License HOT 1
- faint image viewer HOT 3
- How to add image viewer with latest version? HOT 2
- Provide a license 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 faint.