aligrudi / neatvi

A small vi/ex editor for editing UTF-8 text
http://litcave.rudi.ir/
305 stars 25 forks source link

automatic syntax detection via shebang #57

Closed apprehensions closed 9 months ago

apprehensions commented 1 year ago

languages such as shell or python or sh most likely always have a #!/bin/sh or similar at the first line of the file, used by the kernel to execute.

kyx0r commented 1 year ago

Nextvi has it as an opt patch: https://github.com/kyx0r/nextvi/blob/patches/filetype_shebang.patch

apprehensions commented 1 year ago

Why not have it consider conf.h and submit a PR?

aligrudi commented 1 year ago

apprehensions @.***> wrote:

Why not have it consider conf.h and submit a PR?

One goal of Neatvi is to remain minimal, and therefore I have resisted similar features that do not seem absolutely necessary. Kyryl's Nextvi on the other hand is feature-rich; it has many other interesting features.

Ali
apprehensions commented 1 year ago

I wanted to try out nextvi, but its missing commits of neatvi

kyx0r commented 1 year ago

Keep in mind that I do maintain the software. I track whatever changes occur on Neatvi and update Nextvi on as it becomes apparent/necessary.

lobre commented 9 months ago

If this is out of scope for neatvi, should the issue be closed?

apprehensions commented 9 months ago

according to the author, syntax detection is not necessary for minimalism, so yeah.