Spyke

Syndicated from the fediverse. Read and engage on the original instance.

View original on lemmy.world

how to set micro as editor in yazi file manager?

ive set micro as my editor in yazi but when i hit Enter it opens a new document instead of editing the one ive selected. in my TOML i have this under opener.

[opener]
edit = [
	{ run = 'micro "$@"', desc = "$EDITOR", block = true, for = "unix" },
	{ run = "code %s",          desc = "code",         for = "windows", orphan = true },
	{ run = "code -w %s",       desc = "code (block)", for = "windows", block = true },
]

any help would be great.

View original on lemmy.world
10

2 replies

lemmy.zip

That is the old string format, use "micro %s". I would recommend setting Micro as your editor with environment variables and using "${EDITOR:-vi} %s". And also check the full new default TOML file in their repo. It was easier for me redoing my configuration from the new default rather than to edit my old one bit by bit.

2

You reached the end

how to set micro as editor in yazi file manager? | Spyke