this post was submitted on 20 Sep 2024
39 points (93.3% liked)

Linux

8332 readers
323 users here now

Welcome to c/linux!

Welcome to our thriving Linux community! Whether you're a seasoned Linux enthusiast or just starting your journey, we're excited to have you here. Explore, learn, and collaborate with like-minded individuals who share a passion for open-source software and the endless possibilities it offers. Together, let's dive into the world of Linux and embrace the power of freedom, customization, and innovation. Enjoy your stay and feel free to join the vibrant discussions that await you!

Rules:

  1. Stay on topic: Posts and discussions should be related to Linux, open source software, and related technologies.

  2. Be respectful: Treat fellow community members with respect and courtesy.

  3. Quality over quantity: Share informative and thought-provoking content.

  4. No spam or self-promotion: Avoid excessive self-promotion or spamming.

  5. No NSFW adult content

  6. Follow general lemmy guidelines.

founded 2 years ago
MODERATORS
 

I purchased a license for Sublime a few years ago, when I seriously thought that the way forward for me was to continue working in IT. That didn't play out, so I'm now free to expunge one more piece of proprietary software from my life.

I've spent literally years at a time with modal text editors as a job requirement, and I know that I just don't work well with them. This is not to say that Vim and Emacs are anything less than excellent. This is a me problem and not a them problem.

The editors I've found that have worked best for me in the past are probably Textmate and Sublime. Notepad++ runs a close third, and there is a Linux port these days!

The one thing I will not do is Electron-based editors. Besides the enormous resource usage of having a browser instance fired up for them, I've had malware try to coopt the JS backends of Electron text editors in the past. (On an interesting short-term contract gig cleaning malware out of websites.) It's left me pretty gunshy, and I don't need extra stress.

I've been down the lists of editors at certain wikis, and experimented with several of them. Kate seems like the best GUI editor and Micro seems like the best terminal-based editor.

However, I've been living in a relative vacuum on this subject for more than a decade and would appreciate others' opinions.

you are viewing a single comment's thread
view the rest of the comments
[–] jaxxed 9 points 3 months ago (2 children)

Is emacs considered a modal editor?

[–] ramblingsteve 8 points 3 months ago

it's more of an operating system with a text editor included :p

[–] gmhh 0 points 3 months ago (2 children)

usually, yes. It can be used almost amodally, especially if you use the GUI interface, but there are some pretty important features that just can't be used without switching modes

[–] [email protected] 7 points 3 months ago

Typically modal refers to insert/normal mode.

Mode in terms of the file type is fairly standard across all editors.

So Emacs, VScode, Vim and Pycharm are the obvious choices.

Geany and Kate are options but they're not as nice to use.

See generally helix and zed.

[–] [email protected] 1 points 3 months ago (1 children)

According to whom? It has no fucking beep mode, it's just there.

It has modes, but that doesn't make it modal.

[–] [email protected] 1 points 3 months ago* (last edited 3 months ago)

Yeah, normally the emacs/vi difference is considered to be "emacs is modeless, vi is modal".

That being said, it is true that basically all software is somewhat modal in limited senses.

  • Any software that can throw up an error dialog or similar has the "mode" where the dialog is present, where behavior is different. Emacs effectively does that, can ask to confirm some actions. I assume that that's not what he's talking about.

  • Caps Lock is a "mode" for text entry that's normally OS-wide and which I think all text editors I've ever seen subsequent to . I assume that's not what he's falling about.

  • Emacs has multi-key commands. Think of hitting C-u. That mode doesn't go away just because you've lifted your hands from the keyboard. Maybe that's what he's thinking of, because most Windows and Mac software doesn't do that. Though on Windows, tapping the Alt key normally is modal OS-wide for menus, unless things have changed.

  • Emacs permits changing input method, which is a form of mode. Most software does this at the OS level.

  • Emacs has an application-level read-only flag for buffers, which is a form of mode. Most editors don't have that.

  • There are Emacs' "modes", but like you, I assume that that's not what he's thinking of, because you don't typically go cycling among them. I mean, if I edit an XML file, I'm in one mode, but other editors that support multiple formats will do something similar, even if they don't call it a mode.

I honestly don't really know what OP is thinking of when he's saying that emacs is occasionally modal and he doesn't want that modality, though. Might be one of the above, might not be.

He says that using the emacs GUI interface is a factor, which confuses me even more, because I can't think of a way in which that is potentially a factor in emacs modal interface at all.