ozansz / gls

Minimal file manager with terminal UI #Go

Home Page:https://sazak.io/gls-file-manager-on-terminal-with-go/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Run as TUI or CLI ?

gedw99 opened this issue · comments

commented

It would be nice if you can do everything on the CLi ( nogui mode) that you can do in the TUI mode.

For example search, navigate down a tree hierarchy.

As far as i can tel this is not possible because the raw commands are coupled to the TUI ?

Another nice pattern for the comments is that you can ask it to return the result as JSON. This allows higher level tooling to be build on top easily, because the higher level commands can parse the JSON.

SO then you can pipe things, like a Find and then a Replace. The Find cmd would return a JSON list, and then the Replace would use this JSON to do the replace

SO maybe like:

gls -noui find --jsonout hello l replace hello-world