zyedidia / micro

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

Feature Request: Editor Width/Margins #3307

Closed RobViren closed 1 month ago

RobViren commented 1 month ago

I am constantly trying to find an ideal markdown editor and love micro but find the text taking up the whole width of the monitor to be difficult to use. It would be amazing if there were a config setting to limit the maximum width of the used space with margins on the side. I do not want to shrink the window as I find myself getting easily distracted. I want to full screen the terminal and just have micro open with the text centered on the screen.

This could be done as configurable left/right margins as a percent, or simply a maximum width and alignment variable. I am not familiar enough with go and found myself having trouble with the plugins to get the behavior I wanted.

Andriamanitra commented 1 month ago

You can achieve the same result in a more general way by using a tool like tmux or zellij. They allow you to run any program in a split/floating/tabbed pane and offer wide variety of customization options (and probably do a better job than micro ever could even if this feature got implemented).

Using tmux:

tmux new-session -- tmux popup micro

Using zellij:

zellij
zellij run --floating -- micro
RobViren commented 1 month ago

Thank you, tried with some Konsole margin settings, but it ended up not working well. Will for sure try that out!