CatsDeservePets
CatsDeservePets
Hello @CabalCrow, hello @vagos! This is a really quick implementation you can paste into your config (might need some fine-tuning): ```sh # restore last file on start-up cmd on-init ${{...
Oh I see. Well, you could write your own registry system (some key-value store) using `pre-cd`, `on-cd` and perhaps `on-load`. Before changing the directory, you would have to store `$f`...
Nah, it works differently. In `lf`, every loaded directory is its own object of type ```go type dir struct { loading bool // directory is loading from disk loadTime time.Time...
Theoretically speaking, yes. The question is, how simple would it be to implement and would it be worth it. Kindly asking @joelim-work to give his thoughts.
Nope, currently there is no way to display a git column in `lf`. The best thing you can do is display the git status inside the prompt, as described in...
I am working on it. This is my progress so far. I used https://github.com/gokcehan/lf/issues/83#issuecomment-1030013438 as an orientation. I update the column in `newDir()`. This way it gets updates when entering/reentering...
I introduced a function `stripAnsi()` based on `printLength()`. As of right now, escape codes get fully removed before printing the custom column. They also no longer influence the calculation of...
I initially tried writing a function to convert from `tcell.Style` to escape sequences, but it seemed too error-prone. After experimenting with several approaches, I settled on returning the custom field...
Also, I am not fully understanding how the onLoad hook should work. I created the hook command `on-load` like this (not committed yet): ```go func onLoad(app *app, path string) {...
> I'm not sure why you need to iterate over subdirectories though, each dir object only store information about their immediate children. What I meant by this when the contents...