microsoft / microsoft/edit

Add command-line options to initialize settings on statusbar

Open
#589 0 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
14.6k
Forks
734
Avg merge
8h 40m
Merged PRs (30d)
4

Description

First: Thanks for this project! It's great to have an easy-to-use, single executable terminal editor in Windows consoles. Very nice!

My suggestion for enhancement would be to have command-line options to initialize the settings currently available on the statusbar.

Examples:

`--lineterminator LF` — use LF instead of CRLF line terminators
`--encoding` _encodingname_ — specify file encoding
`--tabs` — use tabs instead of spaces
`--tabwidth` _width_ — if `--tabs` active, display width of tabs; if `--tabs` inactive, number of spaces to insert with each press of Tab key

Contributor guide

Open the contributing guide

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 command-line argument handling and the statusbar settings entry points in the Rust editor. Trace how line terminators, encoding, tabs, and tab width are initialized, then determine how each proposed option should map to those settings. Done means the options are accepted and each initializes the corresponding setting when the editor starts.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.