Open jesus2099 opened 4 years ago
Sounds quite useful. But I moved to issue to the https://github.com/geany/geany-plugins/ as it should be implemented as a plugin, ideally.
Any volunteers are welcome!
It would be nice that the statusbar template could get new placeholders for character position (see https://github.com/geany/geany/issues/2733) and character code and/or name:
Above text line « // ö
» consists of 6 characters (the 6th one having the caret cursor):
Note: I use Geany on Linux, but EmEditor and BabelPad are Windows only softwares.
I assume that by your loose use of "character" you actually mean Unicode code point. When we are talking about these things its important to be precise, as was pointed out on #2733.
A well written pull request that added say %u to the status bar template values to show the code point in the line would probably be accepted, just needs care to minimise the cost as it would have to be counted each update, and some people insist on editing minimised HTML/JS that is all one line. [Edit: note this isn't currently possible in a plugin AFAIK]
Adding the character names requires the unicode data files (AFAICT its not available from any of the libraries Geany currently uses or something like ICU) and could be fairly big. Thats the sort of thing that should be put in a plugin so the cost isn't incurred by those not needing it.
Thanks for the correct Unicode code point. :) It's all English and I don't master it.
I would likely convert this ticket to Unicode code point only, back to geany/geany instead of geany/geany-plugins.
Unicode code point sounds like a genuine feature of Geany, more than a plugin
Correct as the edit above said and on geany/geany#2733
A well written pull request that added say %u to the status bar template values to show the code point in the line would probably be accepted,
Unfortunately, I only know little bit of JavaScript. :-/
just needs care to minimise the cost as it would have to be counted each update, and some people insist on editing minimised HTML/JS that is all one line.
@elextr
Do you know if it would be always computed or only when the user includes %u
in their statusbar template?
Do you know if it would be always computed or only when the user includes %u in their statusbar template.
This is a question for the new issue you were asked to create on the Geany repo for that.
Keep this issue for the plugin for character names, and that issue on Geany itself for the statusbar addition.
It would be very useful to either display current character code in status bar – à la BabelPad – or provide a shortcut key to open a popup with full character information, like full Unicode code and name – à la EmEditor.
Examples: