paul-nameless / tg

terminal telegram client
The Unlicense
943 stars 75 forks source link

Not using EDITOR variable in A, I #234

Closed veyxov closed 3 years ago

veyxov commented 3 years ago

e for editing works fine (opens nvim) but A, I seem to look for vim and ignore EDITOR variable. /bin/sh line 1: vim: command not found Had to symlink vim to nvim to fix: sudo ln -s /usr/bin/nvim /usr/bin/vim

My config: EDITOR=os.environ.get("EDITOR", "vi") and yes I did: export EDITOR="/usr/bin/nvim"

paul-nameless commented 3 years ago

Hi, you can use this variable to specify cmd for long msg LONG_MSG_CMD

It was made as a separate configurable variable, to make it more comfortable, like going straight into insert mode.