Files
Andrew Whitworth de6b5b1768 Add -exec CLI argument to execute commands when micro starts (#4132)
This argument allows us to execute one or more commands immediately
after editor initialization.
This is useful in cases where you know you are going to want to open
two panes immediately, or for scripting purposes so you can start
with certain things set up, or if you want to execute certain plugin
actions at startup, etc.

Usage:
	micro -exec "...cmd..."
	micro -exec "cmd1" -exec "cmd2" -exec "cmd3" ...

(multiple commands are gathered into an array and executed in order)
Commands are executed after plugin initialization, so you can use
plugin commands as well.

Updated man page with information about the new argument.
2026-07-09 19:01:30 +02:00
..
2020-02-11 16:30:58 -05:00