micro icon indicating copy to clipboard operation
micro copied to clipboard

Feature request: inline options

Open 1buran opened this issue 10 months ago • 4 comments

It would be great to have support of inline options e.g. using setlocal command in comment will apply it in current buffer at first file opening:

// this is a normal comment line, but the next one is an inline command: 
// setlocal tabsize 2

or, if it would be easier implemented, something like emacs .dir-locals.el: special file with custom options for current dir and its decendants or type of files e.g. file with name .micro.yaml:

filetype: json 

detect:
    filename: "\\.json$"
    header: "^\\{$"

options: 
    - tabsize: 2     

1buran avatar May 01 '24 09:05 1buran