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

[Feature request] Named bookmarks and display them in the Function List panel

Open
#9,782 3 comments 0 reactions 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

Bookmarks are great for creating references in our files (code or documentation). They are non-invasive (do not affect the content of files) and are remembered. Would be a good improvement to add the ability to label bookmarks (and also remember this labels) and display them in the Function List panel. Several reasons why:

  • Named bookmarks make them easier to recognize (if there are a lot of them)
  • Named bookmarks can be tread as some kinds of navigation, so displaying them in a Function List seems reasonable. This would make it easier to navigate between them, instead of the previouse / next options currently available.
  • Named bookmarks can be used for any files, so in the absence of a parser in the Function List, there would still be some way to navigate through the code.
  • If some parser in Function List doesn't work properly (doesn't display something) then named bookmarks would give the possibility to create shortcut to that place.

Of course if someone doesn't label the bookmarks, everything works in the old way (like now). We can also add some quick switch in the Function List to show / hide these labeled bookmarks (e.g. in the context menu).

I know there is a plugin like https://github.com/Dook1/Bookmarks-Dook, but it has some problems and displays bookmarks in own panel, it's just hard to put somewhere all those additional panels.

Do you have any opinions on this idea? Would it be useful for someone, or would it be better to leave it for the plugins?

Debug Information

Notepad++ v7.9.5 (32-bit)
Build time : Apr 6 2021 - 17:08:10
Path : D:_test\NPPClean\notepad++.exe
Command Line : -multiInst
Admin mode : ON
Local Conf mode : ON
Cloud Config : OFF
OS Name : Windows 7 Ultimate (64-bit)
OS Build : 7601.0
Current ANSI codepage : 1250
Plugins : mimeTools.dll NppConverter.dll NppExport.dll

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

Begin by locating the existing bookmark commands and Function List panel entry points; no file or test is named, so trace those areas and how bookmarks are remembered. Done requires an agreed design and verified behavior for naming bookmarks, retaining labels, showing them in Function List, and preserving unlabeled bookmarks.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.