micro-editor / micro-editor/micro

line number padding

Open
#4,202 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature
Dominant language
Go
Stars
29.6k
Forks
1.4k
Avg merge
2d 18h
Merged PRs (30d)
10

Description

Description

it would be very much appreciated to be able specify a padding before (left of) the standard line number gutter.

this is for the purposes of centring the code more towards the middle of the screen. i have a wide monitor and having most of my code displayed at the very left of the terminal can be uncomfortable. it would be nice to be able to horizontally push or pull my code to where i like it most.

the default of zero [characters] would be for no additional padding, ie: current behaviour.

also: it would be unbelievably cool if a binding were available to increase/decrease this padding on the fly by 1 character at a time. some code is narrow, some code ain't - whatever's in the current buffer a few taps plus or minus to make it just right.

i've only just started using your editor and thus far i'm really excited to switch from the graphical editor i've always been nearly, but not quite, happy with.

thank you!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the code that renders the line-number gutter and the existing binding/configuration entry points. Check how a zero-character default is represented and how buffer-specific settings are handled. Done means users can set padding before the gutter and adjust it by one character through bindings, while existing behavior remains unchanged by default.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
67/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.