Giter Club home page Giter Club logo

Comments (3)

Canop avatar Canop commented on May 18, 2024 1

@ovizii I'm not sure I understand everything. Could you come to the chat, maybe ? https://miaou.dystroy.org/3490

from broot.

ovizii avatar ovizii commented on May 18, 2024

Is this really closed? Sorry to post into such an old thread but its the same question (apparently).

I am using broot 1.1.11 and when navigating to a file i.e. /root/.config/broot/conf.hjson and hitting enter I get:

Os { code: 2, kind: NotFound, message: "No such file or directory" }

if I manually edit it: /root/.config/broot/conf.hjson and replace $EDITOR with "nano" it still does not work except if I press F2 for editing.

{
                        invocation: edit
                        key: F2
                        shortcut: e
                        #execution: "$EDITOR +{line} {file}"
                        execution: "nano +{line} {file}"
                        leave_broot: false
                }

Am I doing something wrong?

###edit###
I might be slightly stupid here, I read again and it seems "enter" starts xdg-open - but that seems to be a desktop command, I am running just on cli. My mistake, I guess I need to stop using "enter" and start using F2?

from broot.

Canop avatar Canop commented on May 18, 2024

When you hit enter on a file, unless the configuration is changed, xdg-open is called.

You may:

  1. configure xdg-open
  2. call an editor of your choice on open
  3. call a system opener of your choice on open

I don't really recommend 2 in the general case as it means you won't have something useful on some files.
1 and 3 are done like this: https://dystroy.org/broot/tricks/#change-standard-file-opening

from broot.

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.