![]() | |
The justification I’ve heard for why Acme doesn’t support up/down is because it uses a variable width font by default.
I must admit, I do not use a variable width font with Acme — I use /mnt/font/Iosevka/12a/font just like I do in VSCode, IntelliJ, and iTerm2.There are existing patches for up/down, like the one incorporated into acme2k, but I found the changes to text.c are messy and functionality is not complete. So, I spent an afternoon implementing a simple up/down handler change which navigates to the same position as your cursor on the current line to the previous or next line, and takes into account tabstop such that in a monospaced font, the navigation across lines of varying indentation appears as a straight vertical line.I am quite happy with the result, it meets my needs. I’ve opened a PR with the expectation that it may not be merged, but as a way to document my patch for anyone else who has the same need.I’ve also documented the shortcomings I can think of in the PR, and I would love feedback on how to address them.
--
---
You received this message because you are subscribed to the Google Groups "plan9port-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plan9port-de...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/plan9port-dev/922DDB89-135C-41E8-8185-FC6741370E49%40gmail.com.
On Jun 20, 2025, at 16:12, Jacob Vosmaer <con...@jacobvosmaer.nl> wrote:
The justification I’ve heard for why Acme doesn’t support up/down is because it uses a variable width font by default.I didn't know that but now that you say it that makes sense! FWIW I do use Acme with a variable width font. It took some getting used to but I really like it now. I use the 'Font' command to toggle a window to a monospaced font if I need it. But maybe you know all this already.My hack for mouseless vertical cursor movement is ctrl-a followed by left arrow, or ctrl-e followed by right arrow. I also rely a lot on auto-formatting (e.g. clang-format) which takes care of vertical alignment of text.Not trying to talk you out of wanting vertical cursor movement, just sharing.
I must admit, I do not use a variable width font with Acme — I use /mnt/font/Iosevka/12a/font just like I do in VSCode, IntelliJ, and iTerm2.There are existing patches for up/down, like the one incorporated into acme2k, but I found the changes to text.c are messy and functionality is not complete. So, I spent an afternoon implementing a simple up/down handler change which navigates to the same position as your cursor on the current line to the previous or next line, and takes into account tabstop such that in a monospaced font, the navigation across lines of varying indentation appears as a straight vertical line.I am quite happy with the result, it meets my needs. I’ve opened a PR with the expectation that it may not be merged, but as a way to document my patch for anyone else who has the same need.I’ve also documented the shortcomings I can think of in the PR, and I would love feedback on how to address them.
<718.png>
--
---
You received this message because you are subscribed to the Google Groups "plan9port-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plan9port-de...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/plan9port-dev/3cb1af43-2e50-476e-bb32-9829cf728202%40app.fastmail.com.