by deckard1 · 5y ago · 0 comments
Modern text editing is a multilayered mess. Rendering, input methods, variable width fonts, and the special codes (markdown, etc.). On some sites it's not even self-consistent. Take Jira. Last I checked, they have one editor for creating a ticket and an entirely different editor for editing that same ticket[2] (one of these editors sucks more than the other, but I can never remember which... but neither one is remotely what I would consider a "good" interface). How they got there is truly the 8th Wonder of the World.
[1] https://archive.org/details/msdos_qbasic_megapack
[2] https://community.atlassian.com/t5/Jira-Software-questions/H...
Auto-removal of trailing space is only possible if the trailing space is meaningless. Many programming languages have meaningful trailing spaces which cannot be removed. The most common example is inside multi-line strings.
> Of course, this is not universal and only works with monospace fonts in certain languages.
But even then, monospace didn't go away. Most developers are working with code in monospace right now.
And considering how awful it tends to be to navigate a complex word processing task in Word or LibreOffice even now - mystery-meat selections abound - I'm not sure this is the right feature to support all of the time.
Proportional fonts are more aesthetically pleasing and legible (the entire reason for their existence).
When I'm editing "symbolic content", I like it to be easy on my eyes. If I'm constantly re-reading what I've just written, I appreciate the added legibility.
(With the exception of heavily punctuation-based computer code, of course, where monospace results in greater legibility.)
I liked doing ANSI art back in the 80s, but that's not really interesting outside of terminal connections to a BBS.
If you move the cursor to an empty area and start typing, should the missing characters be tabs or spaces then? Or NULs?
Also, how do you insert spaces/newlines/tabs in between other text? Everything would be implicitly modal.
It's good UI for some things, but it's not as good for a general editor like vim. I'm not looking forward to write Python with it, for example :)
IIRC the Commodore 64 did something similar with its built-in Basic prompt.
> should the missing characters be tabs or spaces then?
I'm not sure what QBasic does. But it's irrelevant since they control the format and the display. All Microsoft needed to care about is whether the file displays the same as before when loaded.
But it's really no different than text editors that let you switch a tab character to insert 2/4/8 spaces. If you've ever had the misfortune of working on a code base that allowed both tabs and spaces (fake tabs) then you'll be keenly aware that plaintext has always been modal. Your editor either has to figure out how many spaces to display a tab character, or how many spaces to insert on the tab key. Even line endings, CR+LF vs. LF. I think Mac even just used a single CR once upon a time.
Makefile is another format that is particular about requiring an actual tab character. The first time I "discovered" this I had the urge to toss my computer out the window. That was probably the late '90s when that sort of information was a bit more difficult to come across.