Code Monkey home page Code Monkey logo

Comments (18)

salman-abedin avatar salman-abedin commented on June 12, 2024

Have you tried the latest version?

from faint.

har5ha avatar har5ha commented on June 12, 2024

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.

salman-abedin avatar salman-abedin commented on June 12, 2024

Let me have a look at your faint-operate and faint files.

from faint.

har5ha avatar har5ha commented on June 12, 2024

Here you go ..

faint+faint-operate.zip

from faint.

salman-abedin avatar salman-abedin commented on June 12, 2024

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.

har5ha avatar har5ha commented on June 12, 2024

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.

har5ha avatar har5ha commented on June 12, 2024

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.

har5ha avatar har5ha commented on June 12, 2024

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.

salman-abedin avatar salman-abedin commented on June 12, 2024

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.

har5ha avatar har5ha commented on June 12, 2024

--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.

salman-abedin avatar salman-abedin commented on June 12, 2024

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.

har5ha avatar har5ha commented on June 12, 2024

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 ''
...
...
...

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.

salman-abedin avatar salman-abedin commented on June 12, 2024

Let me have a look at your faint-config file

from faint.

har5ha avatar har5ha commented on June 12, 2024

Here you go ..
faint-config.zip

from faint.

salman-abedin avatar salman-abedin commented on June 12, 2024

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.

har5ha avatar har5ha commented on June 12, 2024

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.

salman-abedin avatar salman-abedin commented on June 12, 2024

You better not give up on me man! lol.
We'll figure this out. 🙂

from faint.

har5ha avatar har5ha commented on June 12, 2024

Definitely not!. Sure thing..

from faint.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.