Skip to content

Conversation

@CatsDeservePets
Copy link
Collaborator

@CatsDeservePets CatsDeservePets commented Dec 15, 2025

This PR introduces a new flag to execute commands after the client has been initialised. This fixes some of the shortcomings the current -command flag has due to its commands running before lf's UI has been established.

Name and functionality are highly inspired by Vim:

 +command, -c command
			 Execute command after reading the first file.  Up to
			 10 instances allowed.  "+foo" and -c "foo" are
			 equivalent.

 --cmd command
			 Like -c, but execute command before processing any
			 vimrc.  Up to 10 instances of these can be used
			 independently from instances of -c.

@CatsDeservePets CatsDeservePets marked this pull request as ready for review December 15, 2025 21:14
@CatsDeservePets CatsDeservePets deleted the post-commands branch December 21, 2025 06:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Focus a dir when opening lf

1 participant