zyedidia / micro

A modern and intuitive terminal-based text editor
https://micro-editor.github.io
MIT License
24.43k stars 1.16k forks source link

Feature request: setting for margins for all sides, particularly left and right #2636

Open Sininenblue opened 1 year ago

Sininenblue commented 1 year ago

I'd like to use micro as a minimal writing program for stories, and the main thing that's stopping me is the lack of left and right margins

It's purely aesthetic and I could probably get used to just resizing my terminal. But I think it would be nice to have as a setting, or at least a plugin

dase78 commented 1 year ago

+100 from my side, I also use it as a writing tool and have the same thoughts about it. I also opened a question to this: https://github.com/zyedidia/micro/issues/2374 But when I think about it, I find your way a lot better. This and the implementation of quoter-plugin by default - perfect!

glow12121 commented 1 year ago

Resizing terminal may be confusing in a split view, with two or more texts opened in several view columns. So, yes, adding line margins would be great for editing prose.

RobViren commented 1 month ago

Thank you so much. Zellij did it. It took a bit of digging around but its exactly what I wanted. Its literally perfect. Nothing but the text and not too wide. Yes!

In case someone else stumbles on this

zellij --layout thing.kdl
layout {
    pane split_direction="vertical"  {
        pane borderless=true size="20%" command="reset"
        pane borderless=true size="60%" command="micro" {
                args "Path/to/document"
        }
        pane borderless=true size="20%" command="reset"
    }
}