Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUGS: MenuIcons] 1. Add a Symbol (file needs saving) Doesn't Always Display + 2. Symbol Change Adds Another 3. Unicode Issue #33

Closed
dbareis opened this issue Oct 29, 2022 · 8 comments

Comments

@dbareis
Copy link

dbareis commented Oct 29, 2022

To reproduce:

  • Set the option to display a symbol (it would be nice if this could be more than 1 one character or in fact an icon)
  • Modify a file (the symbol should now be displayed)
  • Rename the file (in npp)
  • BUG: Symbol no longer displays
  • Use Esc to exit npp (it does without prompting, is this an npp bug?)
  • Restart npp, the symbol is now displayed BUT: MenuIcons is possibly not displaying it... Some part of npp things it is part of the filename and saving doesn't remove it. Actually further test implies this is a second MenuIcons bug and each time you change the symbol (while file unsaved) it forgets the current one is there and adds another to the front,.

Possibly 3rd bug: I realised when typing the above that I could add my own "icon" by unicode, that works for some but wider character such as '💥' are ignored, and in any case they don't display in color when they are.

@dbareis
Copy link
Author

dbareis commented Oct 29, 2022

Oh well, unicode works until you restart npp....

@francostellari
Copy link
Owner

francostellari commented Oct 30, 2022 via email

@francostellari
Copy link
Owner

Please see the new version for

  • increased the number of characters for the symbol
  • If you save MenuIcon.ini as UTF-16, the you can save/use Unicode symbols, alas without colors since the tab text is monochrome
  • fixed the issue with the the rename

@dbareis
Copy link
Author

dbareis commented Jan 2, 2023

Thanks, I can confirm the rename issue is fixed.

I have updated npp to latest version 8.4.8, it is still saving the ini file as "UTF-8"!

All attempts to change "%appdata%\Notepad++\plugins\config\menuicons.ini" then restart npp have failed, I tried "UTF-16 LE" & "UTF-16 BE". When it fails it uses my previous "UTF-8" config so that is stored somewhere else? This is before attempting UNICODE symbols...

@dbareis
Copy link
Author

dbareis commented Jan 2, 2023

I have got it to work (the original unicode value mentioned above and single characters, "space+char" doesn't work):

  1. Close npp
  2. open notepad (not npp)
  3. save the file as "UTF-16 LE" (BE seems to fail horribly)
  4. Restart npp
  5. Make plugin changes
  6. Exit npp (that is when the plugin ini is updated)
  7. The file remains as "UTF-16 LE"

@francostellari
Copy link
Owner

francostellari commented Jan 2, 2023 via email

@francostellari
Copy link
Owner

francostellari commented Jan 2, 2023 via email

@dbareis
Copy link
Author

dbareis commented Jan 2, 2023

Thanks, I will try "_" again, I tried it while struggling before but I'll try it again :-)

Wouldn't it now be better if the plugin saved the file as UTF-16? It does now if it is already in that format. If it is UTF-8 it could "upgrade" it to "UTF-16?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants