Giter Club home page Giter Club logo

Comments (3)

gokcehan avatar gokcehan commented on July 17, 2024

In fact this happens for all recursive commands (e.g. cmd foo foo or cmd foo :down; foo;). Since we don't have conditionals I guess all recursive calls can be considered errors. But then there is still the case you mention and other arbitrary mutual calls (e.g. cmd foo bar and cmd bar foo). I'm not sure if there is a straightforward way to detect and handle these. Almost all programming languages have this though. Even though lf is not a programming language, it is still a language with recursive constructs. It is unfortunate that this example does look very innocent from the outside but now at least this issue might pop up in the search results to those people having the same problem.

from lf.

KenjiTakahashi avatar KenjiTakahashi commented on July 17, 2024

Surely it happens for all such commands, this one is just an "ugly" example that many macOS users will probably bump into.
I don't think there's a different way than "static analysis", i.e. going through the commands and checking that their parts do not interfere with other commands. That might quickly become infeasible, though. Especially when user defines many own, possibly more complicated, commands.

Anyway, it doesn't really bother me, just felt like letting you know it might be happening.

from lf.

gokcehan avatar gokcehan commented on July 17, 2024

I have now added a default file opener on all platforms which includes open on mac. New users should not need to configure a file opener until they get used to the syntax. It is unlikely that we may add something else regarding this issue. Closing this issue for now. Feel free to leave comments as you like.

from lf.

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.