Skip to content
This repository was archived by the owner on Apr 17, 2025. It is now read-only.
This repository was archived by the owner on Apr 17, 2025. It is now read-only.

[Feature]: per-mode implementations for functions (funcs) #413

Open
@hinell

Description

@hinell

Similar Issues

  • Before filing, I have searched for similar issues.

Description

Very similiar to, but for functions:

Can we have the same feature for legendary.funcs(...)?

There are functions, that can only be run in visual mode, so it's logical to have { mode = {...} } restrictions so upon running :Legendary we have these funcs filtered...

endary.funcs({
	{ mode = { "v" }, description = "Buffer: my fn in visual mode" , fn }
})

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions