Closed fatualux closed 5 months ago
bulk_rename
uses the EDITOR
environment variable to determine what editor to use.
You may need to set this environment variable in your script for it to work.
Pardon my noobish, doubt, but I set this environment variable in my .bashrc
# Default apps
export BROWSER='firefox'
export VISUAL=vim
export EDITOR=vim
and in my sway config
# SET $mod key on SUPER
set $alt Mod1
set $mod Mod4
set $EDITOR vim
set $TERMINAL alacritty
but nothing changes, I cannot figure where I am to add the environment variable...
Plus, i do not understand whi this issue occur only when I start joshuto from sway with a shortcut Thanks for your time and support
You can try debugging it by changing foot -e joshuto
to foot -e path/to/a/script
inside the script:
#!/bin/bash
echo "EDITOR: $EDITOR"
and see if it prints anything. If it does, then you can use this script to launch joshuto. If not, then export it in the script
#!/bin/bash
echo "EDITOR: $EDITOR"
export EDITOR=vim
joshuto
Thanks!
I fixed the issu by following your advice; i put this in my sway config:
bindsym $alt+Control+a exec dunstify -r 333 "File Manager" && export EDITOR=vim && foot -e joshuto
and now it works. I missed the "export" of the variable. Thanks again!
Environment variable not found when I choose 'bulk rename'
Steps to reproduce the issue
Expected behavior
Until three days ago, I would like to be able to rename multiple files at once with this command, but now, if I choose 'bulk rename' I get an error:
If I open a shell, (using either foot or alacritty) and launch Joshuto, the command will work as expected.
Unfortunately, I do not remember what I changed in my config files to cause this error.
Could you help me?
Thanks in advance,
FZ