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

[BUG] "mov-cli --edit" outputs "sh: 1: nano: not found" #272

Closed
IceAsteroid opened this issue Mar 28, 2024 · 6 comments
Closed

[BUG] "mov-cli --edit" outputs "sh: 1: nano: not found" #272

IceAsteroid opened this issue Mar 28, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@IceAsteroid
Copy link

IceAsteroid commented Mar 28, 2024

Describe the bug:
I've set up the env variable export EDITOR=nvim

In order, if in any case, that lower case for it would work, I also set up export editor=nvim, but still no luck.

Expected behavior:
Being able to switch to another editor like vim.

Error:
Good Morning, user.
It's 10:20 AM on a beautiful Thursday!

  • Hint: mov-cli -s films mr.robot
  • Hint: mov-cli -s anime chuunibyou demo take on me

[DEBUG] (mov_cli) - Config -> {'version': 1, 'player': 'mpv', 'debug': True, 'ui': {'fzf': True}, 'plugins': {'test': 'mov-cli-test'}}
sh: 1: nano: not found

Python 3.12.2 (main, Feb 15 2024, 06:47:30) [GCC 13.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

Platform (please complete the following information):

  • OS: VoidLinux
  • Version: 6.6.21_1

Additional context / possible cause or solution:
Add any other context about the problem here or possible causes and solutions.

Version
4.2.5

@IceAsteroid IceAsteroid added the bug Something isn't working label Mar 28, 2024
@r3tr0ananas
Copy link
Member

r3tr0ananas commented Mar 28, 2024

You need to set the editor inside the config, but you can't edit it because nano is the standard editor and you don't have it.

@r3tr0ananas
Copy link
Member

You can also edit the config file, see the Wiki

@THEGOLDENPRO
Copy link
Member

Yeah didn't add support for the EDITOR environment variable yet. I will add it soon. 👍

@THEGOLDENPRO
Copy link
Member

For now you can do:

{your-editor} ~/.config/mov-cli/config.toml

@IceAsteroid
Copy link
Author

IceAsteroid commented Mar 31, 2024

Ok, copy that :)

Setting up editor = "nvim" in the config.toml works

@r3tr0ananas
Copy link
Member

Is now added with this commit: 3cd9b9c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants