It would be very useful to either display current character code in status bar – à la [BabelPad](https://babelstone.co.uk/Software/BabelPad.html) – or provide a shortcut key to open a popup with full character information, like full Unicode code and name – à la [EmEditor](http://www.emeditor.org/en/dlg_character_code_value_dialog_index.html).
Examples:
- U+2010: HYPHEN: ‐ - U+002D: HYPHEN-MINUS: - - U+2212: MINUS SIGN: − - U+2013: EN DASH: – - U+2014: EM DASH: — - U+301C: WAVE DASH: 〜 - U+FF5E: FULLWIDTH TILDE: ~
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](https://www.geany.org/manual/current/index.html#statusbar-templates) could get new placeholders for **character position** (see #2733) and **character code and/or name**:
![BabelPad](https://user-images.githubusercontent.com/1401086/105163747-990a6180-5b14-11...)
Above text line « ` // ö` » consists of 6 characters (the 6th one having the caret cursor):
1. U+0009 <control> : CHARACTER TABULATION, HORIZONTAL TABULATION [HT, TAB] : horizontal tabulation (HT), tab 2. U+002F SOLIDUS : slash 3. U+002F SOLIDUS : slash 4. U+0020 SPACE [SP] 5. U+006F LATIN SMALL LETTER O 6. **U+0308 COMBINING DIAERESIS : double dot above, umlaut, Greek dialytika, double derivative**
---
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.
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.
- **Unicode code point** sounds like a genuine feature of Geany, more than a plugin - **Unicode character name** would be a nice to have plugin: personally I would not miss this much if I had the above already
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.
github-comments@lists.geany.org