micro-editor / micro-editor/micro

(feature req) Virtual Space /Space on Demand column editing?

Open
#3,143 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Is there a way to have micro select a multiline block (columnar multi cursor editing) and have it automatically pad spaces in for any rows in the selection that are shorter than the position of selection column? I've seen this called by a few names (virtual space/Space on demand, etc.) and it's a feature I use heavily in UltraEdit, Notepad++, and Geany (it has it, surprisingly). Neither Vscode nor NeoVim have this capability.

Here's a quick screen capture of what I mean (from geany - a gui, but the principle is the same).

https://github.com/zyedidia/micro/assets/85891520/3456ecea-2760-4b42-a281-8dd3aa19b462

If there's a way to allow this as an option, I'm not sure where to find it. If it's not an option now, can it be added as a feature request? It is mind-bogglingly useful.

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

The issue names no files, tests, or entry points. Reproduce the linked Geany screen capture and inspect micro's existing multiline or column selection behavior first; the work is done when an optional setting provides virtual-space padding for shorter selected rows and the behavior is covered by suitable tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.