notepad-plus-plus / notepad-plus-plus/notepad-plus-plus

Option to switch column index starting from 0 instead 1

Open
#12,730 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
29.4k
Forks
5.4k
PR merge metrics
No merged PRs in 30d

Description

Description of the Issue

By default, the column index indicator starts at one.
Could we have option to change it, and starting it from zero?

Steps to Reproduce the Issue

Cursor on before first character, display "Col: 1"

NPP_IndexZero_Col1

Go to offset 1 :

NPP_GoToOffset_1

Finish on "Col: 2"

NPP_GoToOffset_1_finish_on_Col2

Expected Behavior

Option in prefererence for change the starting index.

Others people, asked the same thing :
starting the Line number with 0 https://community.notepad-plus-plus.org/topic/14954/starting-the-line-number-with-0
How to make line index start with 0 ? https://community.notepad-plus-plus.org/topic/15351/how-to-make-line-index-start-with-0

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

The issue names no files, tests, or entry points. Start by locating the column indicator and the preferences code that controls editor display, then trace how the cursor position is converted to the displayed column. Done means a preference can switch the displayed column index between one-based and zero-based values.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.