Code Monkey home page Code Monkey logo

Comments (4)

fatualux avatar fatualux commented on May 29, 2024 1

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.

kamiyaa avatar kamiyaa commented on May 29, 2024

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.

Reference: https://github.com/kamiyaa/joshuto/blob/main/docs/configuration/keymap.toml.md#bulk_rename-rename-all-selected-files

from joshuto.

fatualux avatar fatualux commented on May 29, 2024

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.

kamiyaa avatar kamiyaa commented on May 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.