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

Is it possible to use variable ? #14

Open
sucrecacao opened this issue Oct 17, 2021 · 2 comments
Open

Is it possible to use variable ? #14

sucrecacao opened this issue Oct 17, 2021 · 2 comments

Comments

@sucrecacao
Copy link

Is it possible to use
text/: $TERMINAL -e $EDITOR ?

@BachoSeven
Copy link

BachoSeven commented Oct 17, 2021

@sucrecacao No, the closest thing you could do is:

  • write a txt.desktop file which uses your editor, and set Terminal=true in it (file goes in ~/.local/share/applications):
[Desktop Entry]
Type=Application
Name=Text editor
MimeType=text/x-tex;text/plain;text/markdown
Terminal=true
NoDisplay=true
Exec=nvim %u
  • then, put TERM: st in your mimi.conf file, and mimi will parse that and use it as your terminal of choice.

Also, have a look at the maintained fork I'm keeping at https://github.com/BachoSeven/mimi, I fixed bugs, merged PRs and added some functionality to this nice little program.

Edit: Alternatively, you could also just put text: TERM -e nvim in your mimi.conf, since mimi parses a first instance of TERM if you defined its value (as mentioned above).

@BachoSeven
Copy link

BachoSeven commented Oct 17, 2021

I decided this was useful enough so it is now implemented in my fork, starting with this commit; let me know if that works for you.

Edit: See https://github.com/BachoSeven/mimi#example-configuration for an example of usage.

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

No branches or pull requests

2 participants