Comments (3)
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.
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.
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)
- Default merge strategy HOT 2
- lf -selection-path does not update the file on Windows HOT 3
- Big bug and Big error HOT 2
- cd on quit HOT 2
- "doc" command could be replace by the more common "help" HOT 6
- [Question] How to keep terminal opened after quiting LF. HOT 2
- Statfmt problem if I use show link (%l, %L) HOT 4
- Inaccessible files and directories should be shown in the file listing HOT 1
- Open an ipynb file HOT 1
- Image preview using `wezterm` or `timg`
- open does not always pass a $f HOT 2
- [BUG] Some non-ASCII characters get stuck in the preview pane HOT 11
- lf display `unknown option: color256` when launched by a shortcut HOT 2
- lf can launch two `ls -server` that don't communicate HOT 1
- Setting 'map e $nvim $Env:f' does not work for shell pwsh HOT 3
- Cant loop over lines in command script, what am I doing wrong? HOT 1
- BUG:lf 2023/08/09 11:31:26 remote command: dialing to send server: dial unix /run/user/1000/lf.thinker.sock: connect: no such file or directory HOT 2
- Difference between $fx and $fs? HOT 2
- Set user option in commands HOT 2
- [bug] preview without resetting bold causes `!` and `$` to "inherit" bold text HOT 1
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 lf.