micro-editor / micro-editor/micro
Accept arbitrary lua expression in LuaAction / "lua:" binding target
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 29.6k
- Forks
- 1.4k
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 10
Description
It would be nice if https://github.com/zyedidia/micro/blob/95fea064b08ca09c1ac554e5ae9d118f1271da8a/internal/action/bufpane.go#L40 accepted arbitrary lua expressions, or at least could handle calling through nested tables, such as:
lua:plugin.some.func for
some = { ["func"] = function ... } }
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 at internal/action/bufpane.go around line 40, where LuaAction or the "lua:" binding target is handled. Review how the target is parsed and determine the scope needed to support the nested-table example or arbitrary Lua expressions. Done means a binding such as lua:plugin.some.func can call the nested function correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, lua
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100