notepad-plus-plus / notepad-plus-plus/notepad-plus-plus
[Feature request] Named bookmarks and display them in the Function List panel
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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