Comments (4)
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!
from joshuto.
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.
from joshuto.
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
from joshuto.
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
from joshuto.
Related Issues (20)
- There are some errors when I use Joshuto to preview some .lua files HOT 1
- Latest release doesn't build HOT 1
- v0.9.7 - `Cargo.toml` does not match `Cargo.lock` HOT 2
- feature request: change, simplify joshuto image preview HOT 2
- [BUG] Fatal crash when I return to joshuto from a shell HOT 4
- Use of `--change-directory` command line argument? HOT 1
- Configure ratatui-image preview background/frame color.
- [BUG] Linemode 'sizemtime' unknown. HOT 1
- [FEATURE] More linemodes and sort modes
- linux gnu build error
- Directory chooser HOT 1
- [Help wanted] Creating a custom script to use joshuto to control imv. HOT 1
- Feature request: delete colon to exit command mode
- Feature request: implement scrollable preview area HOT 2
- [Bug] File preview(with bat) does not update after file modification with vim
- Feature request: Add options to pre-select a file on start HOT 2
- Unable to select neovim config with NVIM_APPNAME environment variable
- Feature Request: add more useful variables for shell/spawn commands HOT 1
- Feature request: keybinding `v` to mark all files / folders in current view
- Feature request: add `bat` as fallback for viewing HTML / JSON in `preview_file.sh`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from joshuto.