micro-editor / micro-editor/micro
Running shell script in statusformatl
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 29.6k
- Forks
- 1.4k
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 10
Description
Description of the problem or steps to reproduce
I was attempting to try and add file type icons, and at first I thought the statusformatl took shell scripting in the sense that $(echo "test") would yield test... etc etc... But from what I later discovered it seems it's using Lua code? I've hardly played with Lua so I don't know that much, but would there be any way to make it use stdin from a shell script to put into the status?
That way I can easily add my own file type icons...
Specifications
Commit hash: 5044ccf6
OS: Linux (Arch)
Terminal: GNOME Terminal
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the statusformatl implementation and reviewing how its Lua expressions are evaluated. Reproduce the reported behavior from commit 5044ccf6 on Linux, then determine whether shell-script stdin can provide the requested file-type icons in the status; done means the supported behavior and its limits are clear.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua, shell
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100