Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not respecting EDITOR #18

Closed
wpcarro opened this issue Jul 12, 2018 · 3 comments
Closed

Not respecting EDITOR #18

wpcarro opened this issue Jul 12, 2018 · 3 comments
Labels

Comments

@wpcarro
Copy link

wpcarro commented Jul 12, 2018

I've tried setting the following variables:

export FPP_EDITOR='emacsclient -n'
export EDITOR='emacsclient -n'
export VISUAL='emacsclient -n'

...but I cannot get tmux-fpp to open the files in anything other than vim.

However, when I run:

git status | fpp

...that will open my files using emacsclient -n

Any idea what's going on here?

@wpcarro
Copy link
Author

wpcarro commented Jul 12, 2018

My guess is that all three variables are unavailable. According to fpp's docs, that's when vim is used:

The $FPP_EDITOR environment variable can be set to tell PathPicker
which editor to open the selected files with. If that variable
is not set, $VISUAL and then $EDITOR are used as fallbacks,
with "vim" as a last resort.

@elrrrrrrr
Copy link

+1

export EDITOR="nvim"
export VISUAL="nvim"
export FPP_EDITOR="nvim"

when I use fpp directly, it works.
But in tmux-fpp it always invoke nano.

@KapJI KapJI added the bug label Feb 14, 2021
@KapJI
Copy link
Contributor

KapJI commented Mar 5, 2021

tmux is not capturing your environment correctly, it's nothing to do with the plugin itself. If you run tmux from .bashrc or .zshrc make sure you're setting these variables before running tmux.
You can check these vars by adding echo $EDITOR in fpp.tmux, it's just a bash script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants