Search and bookmark lines
Description
Hi, First of all, thank you for this great project, NotepadNext is a very promising alternative to Notepad++ on macOS.
One of the most useful features I use regularly in Notepad++ is the ability to automatically bookmark all lines that match a search pattern via the Mark tab. This allows quick navigation, selection, copy, cut or removal of all matching lines.
In Notepad++, this feature is enabled by checking the box "Bookmark line" before clicking "Mark All". It is especially useful for batch processing or filtering content.
Currently, NotepadNext doesn’t seem to support this functionality. I would love to see it implemented in a future release.
Thanks again for your great work!
Describe the solution you'd like
No response
Describe alternatives you've considered
No response
@dail8859
Is this a desired feature, (that I could implement)?
@LCrawford13 I'd love for this to be implemented. Part of the problem currently is the Find/Replace dialog is rather messy. I tried to implement it similar to Notepad++ but the way it is now does not lend itself well to Qt's layout system. Adding the extra functionality for bookmarks would make it less managable, but maybe it has to become a big enough mess to understand how best to implement it.
@dail8859, is the problem relating to the way the GUI for findreplacedialog has been implemented? Specifically that it doesn't use Qt creator's own tab widget. Or is there another problem I'm missing, or both?
Yes that is the biggest issue is that depending which tab it has to hide/show the various widgets. The other option was duplicate a lot of the buttons which is not ideal.
The other problem is the layout. It's hard to do it correctly with Qt's layout widgets, plus things just take up a lot of space when you try to resize and stuff.
There are other editors that have very full featured find/replace dialogs that are very compact and easy to understand, such as VS Code, Visual Studio, DBeaver, etc. Id love to redesign the entire thing but don't have any concrete ideas or time to really flesh anything out.
Thanks for the detailed explanations. For my use case, a very small MVP would already solve it:
Add a button "Bookmark matching lines" inside the existing Find dialog, using the current search pattern and flags (regex / match case / whole word).
No need to redesign the whole Find/Replace UI on my side.
Thanks!
Agreed. This is one of the most useful features in Notepad++. Would love to have the simple "book matching lines" added to the find/search box.