[Github-comments] [geany/geany] Wrong column number: Tab counts as 4 characters (#2733)

jesus2099 notifications at xxxxx
Wed Jan 20 11:21:07 UTC 2021


Indeed for the **character count** used as we can see with tabs and combining characters.
And I do think it's better to master what your code contains, by showing character count, rather than having the virtual column number we have.

You're right that eslint should call this number, **Char** instead of **Col**.

![BabelPad](https://user-images.githubusercontent.com/1401086/105163747-990a6180-5b14-11eb-8a44-ba1fb88746e0.png)

So it would be nice that we could have a new or modified placeholder in [statusbar template](https://www.geany.org/manual/current/index.html#statusbar-templates), counting **char**.
I would use this instead of virtual column (IMO it should even be the new default).

Before Geany, I did not see a tool that displays a virtual column position instead of character position.
But I don't know many (I have used EmEditor and BabelPad, mostly).

I tried some other tools right now but here is all I have available handy:

- Linux nano: virtual column position (like Geany)
- Windows [notepad2e](https://github.com/ProgerXP/Notepad2e): true character position (like eslint, EmEditor, BabelPad)

There are other famous editors but I don't have them handy.

---

Off topic, for what it's worth:

I guess this issue is what makes the block selection (Crtl+click) slightly _strange_ on tab indented files.
Selecting tabs, should not select groups of 4 characters above or below.
But it is usually not needed to select both tabs and text in same block, so nvm)

I use tabs to indent, I think as such I am more hindered by this ticket.


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/2733#issuecomment-763535454
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20210120/56bf10ac/attachment.htm>


More information about the Github-comments mailing list