Skip to content

Can I use nano exclusively in lf? #1930

Answered by DusanLesan
Damglador asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, you need to override the open command. This is an example of how it should look like:

cmd open ${{
	type="$(file --mime-type "$f" -b)"

	case "$type" in
		text/*) nano "$f" ;;
		*) for f in $fx; do setsid "$OPENER" "$f" >/dev/null 2>&1 & done ;;
	esac
}}

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Damglador
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants