Closed arooni closed 6 years ago
For env 1, the issue might be related to this: https://github.com/fish-shell/fish-shell/issues/4715
You could try running the minimal testcase echo | sed &
and see if there's an error there.
for env 2, could you print the contents of your options? $FZF_DEFAULT_OPTS
and $FZF_REVERSE_ISEARCH_OPTS
.
For ENV1: I ran that: got a usage message [I] brazil  ~  echo | sed & Usage: sed [OPTION]... {script-only-if-no-other-script} [input-file]...
-n, --quiet, --silent suppress automatic printing of pattern space -e script, --expression=script add the script to the commands to be executed -f script-file, --file=script-file add the contents of script-file to the commands to be executed --follow-symlinks follow symlinks when processing in place -i[SUFFIX], --in-place[=SUFFIX] edit files in place (makes backup if SUFFIX supplied) -l N, --line-length=N specify the desired line-wrap length for the `l' command --posix disable all GNU extensions. -r, --regexp-extended use extended regular expressions in the script. -s, --separate consider files as separate rather than as a single continuous long stream. -u, --unbuffered load minimal amounts of data from the input files and flush the output buffers more often -z, --null-data separate lines by NUL characters --help display this help and exit --version output version information and exit
If no -e, --expression, -f, or --file option is given, then the first non-option argument is taken as the sed script to interpret. All remaining arguments are names of input files; if no input files are specified, then the standard input is read.
GNU sed home page: http://www.gnu.org/software/sed/. General help using GNU software: http://www.gnu.org/gethelp/.
For env2: [I] ~ echo $FZF_DEFAULT_OPTS --color fg:240,bg:-1,hl:33,fg+:241,bg+:223,hl+:33 --color info:33,prompt:33,pointer:166,marker:166,spinner:33 [I] ~
apparently that second var wasn't set [I] ~ echo $FZF_REVERSE_ISEARCH_OPTS
[I] ~
Thanks for your help!
Output of your test command in env1 looks correct. I'm not sure what's going on there, but it seems your shell doesn't have permissions to some command (setpgid
), and is unrelated to this plugin.
@jethrokuan problem #1, it looks like upgrading to a nightly build of fish resolved the setpgid issue .
However I still have this color issue on both Mac OS X and Ubuntu 16.04... same error and same fzf default and reverse options.
Kind of unrelated; but...
with set -U FZF_LEGACY_KEYBINDINGS 0
on both mac & ubuntu
alt + x ==> yields
[N] ~/.c/fish fish: Unknown command '__fzf_find_and_execute'
Every other command works well (with the exception of control r which complains about the color). that being said, happy it's working and i can ignore that message for now.
ps; thanks for the great features... couldn't imagine not having them
I removed the remnants of find_and_execute
in #61 , didn't find it particularly useful. I don't do much work here, some of the features I really like are implemented by others as well :smile:
can i check what fzf
version you're on?
No worries; I think having a chance to edit your command is more useful as well..
On Mac: [I] ~ fzf --version 0.17.3 (brew)
On ubuntu: [I] /tmp fzf --version 0.17.1 (0b33dc6)
That looks recent enough for --color
to exist. I'm quite certain the color issue is an error in your variable configuration on your end, since the code base does not set any color
options by default.
Well thanks for taking the time to look at my issue.. I grep'd for and color settings that might be in my fish config and didn't see anything that stuck out.
Regardless, I can just ignore the complaint since the code works.
david parkinson founder - aroonilabs.com blog - brofist.com twitter - @brofist https://twitter.com/brofist
On Mon, Mar 5, 2018 at 7:59 PM, Jethro Kuan notifications@github.com wrote:
That looks recent enough for --color to exist. I'm quite certain the color issue is an error in your variable configuration on your end, since the code base does not set any color options by default.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/fisherman/fzf/issues/60#issuecomment-370634278, or mute the thread https://github.com/notifications/unsubscribe-auth/AAh-e5HawXQLdOe2Ur3pthRtcpt6CB9nks5tbe1tgaJpZM4SY1ZW .
ENV 1: Ubuntu 16.04 LTS server fish version: 2.7.1 issue: hitting reverse search and picking an option, i'm then presented with :
[I] brazil  ~/.c/f/functions   master ±  Could not send process 29782, 'fzfcmd' in job 2, 'history | fzfcmd +s +m --tiebreak=index --toggle-sort=ctrl-r ' from group 29137 to group 29457 setpgid: Operation not permitted Could not send job 2 ('history | __fzfcmd +s +m --tiebreak=index --toggle-sort=ctrl-r ') to foreground tcsetpgrp: No such process fish