micro icon indicating copy to clipboard operation
micro copied to clipboard

Valid filetypes are hard to discover

Open harristom opened this issue 2 years ago • 1 comments

I opened a config file and wanted to set the filetype to get some syntax highlighting. I tried "set filetype sh" which didn't work, but "set filetype shell" did (I had expected that using a valid file extension would do it). I couldn't find a list of valid filetypes in the documentation, and tab completion didn't work on this command to provide a list of valid options in the way it does when setting a colorscheme.

harristom avatar Apr 21 '22 23:04 harristom

This is a valid point, and perhaps we can introduce some tab completion for this case. For the time being, you can look through the syntax files at https://github.com/zyedidia/micro/tree/master/runtime/syntax. If you open a file, the filetype name should be listed at the top.

zyedidia avatar Apr 21 '22 23:04 zyedidia

@dmaluka @JoeKar for close? because of #3090

dustdfg avatar Mar 17 '24 18:03 dustdfg

Closed with #3090.

JoeKar avatar Mar 17 '24 19:03 JoeKar