[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-nano] Language-specific replacement for `formatter`

From: Anthony Sottile
Subject: [Help-nano] Language-specific replacement for `formatter`
Date: Tue, 25 Sep 2018 13:23:31 -0700

Hi! I've noticed that `formatter` has been removed in nano 3.x,
however I've previously found it pretty useful for running things like
`go fmt` (or sorting for gitignore for example).

Whether I had a formatter or linter I could run ^T and it would
usually do what I want.  With the removal of `formatter` from nanorc
is there a way to restore that behaviour?

Here's an example of a nanorc where I use a formatter (yes the irony
is not lost on me):

Additionally (not committed) I have this for go:

formatter gofmt -w

I work on a _ton_ of different file types (20+) so setting up a
shortcut for each formatter for each language is really not feasible.
I'd be sad to see this feature removed permanently

(maybe this is an email asking for restoration of `formatter`)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]