NotepadNext icon indicating copy to clipboard operation
NotepadNext copied to clipboard

Auto-completion does not include keywords

Open corytertel opened this issue 6 months ago • 1 comments

Operating System and Version

Fedora 41

Distribution

flathub

Description

When typing, keyword suggestions should appear based on the language you are in.

In C++, when typing "publ", the autocompletion should suggest "public" based on the keywords set here: https://github.com/dail8859/NotepadNext/blob/master/src/NotepadNext/languages/cpp.lua

In every language the keyword autocompletion is broken. The autocomplete only suggests existing words in your file.

Steps to Reproduce

  1. Create a new file test.cpp.
  2. Open in NotepadNext
  3. Type in any keyword. For example, "class" or "public". You will notice no suggestions appear.
  4. Once you have words in the file, suggestions will appear, but only those existing in the file already.

Debug Information

Notepad Next v0.12 (Flatpak) Build Date/Time: Nov 11 2011 11:11:11 Qt: 6.5.3 OS: KDE Flatpak runtime Locale: en_US CPU: x86_64 File Path: /app/bin/NotepadNext Arguments: NotepadNext Config File: /home/cory/.var/app/com.github.dail8859.NotepadNext/config/NotepadNext/NotepadNext.ini

Additional Details

Image Image

corytertel avatar Jul 30 '25 09:07 corytertel

Upon further inspection, Notepad Next does not perform keyword auto-completion at all. I believe Notepad Next should offer this feature, just like Notepad++ does.

corytertel avatar Jul 31 '25 08:07 corytertel