The following gif demonstrates folding:

all 81 comments

sorted by: hot top controversial new old
[–] [S] 1 point 1 year ago

UPDATE: For posterity's sake, I'd like to reflect on the last couple of days.

First of all, I'd like to thank everyone that has contributed to the discussion! Were it not for your recommendations/suggestions/endorsements, then I might not have found a valid alternative.

Secondly, I've taken every single recommendation pretty seriously. As such, I've either installed them to see for myself if I was able to reproduce the functionality found in the gif found above. Or, didn't install them to begin with due to the suggested installation methods not passing through my (rather) strict policy on software. Regardless, in the end, I've only found two pieces of software that satisfied the bill: Kate and KDevelop.

KDevelop is pretty cool, but is more of an IDE rather than a text editor. As such, I've landed on Kate.

But, perhaps more than anything, I've come to really appreciate Emacs (and Neovim). And, perhaps more than ever, I feel ready to take them on 💪. Wish me luck 😊.

  • source
  • [–] 25 points 1 year ago (1 child)

    Kate,kdevelop,xed,mousepad,gnome builder.,notepad next(clone notepad++)

  • source
  • hideshow 1 child comment
  • [–] 14 points 1 year ago* (8 children)

    Geany(Its a lightweight GTK Based IDE)

  • source
  • hideshow 8 child comments
  • [–] [S] 1 point 1 year ago (6 children)

    Thank you!

    Question: According to this table, Geany's capabilities might leave some to desire when it comes to code/text folding. Is this correct? Or is the table simply outdated?

  • source
  • parent
  • hideshow 6 child comments
  • [–] 1 point 1 year ago* (last edited 1 year ago) (5 children)

    Yw and I think it's up to date that list (i just looked at article last updated)

  • source
  • parent
  • hideshow 5 child comments
  • [–] [S] 1 point 1 year ago (4 children)

    Thank you for confirming my suspicions. I took it for a test run and wasn't able to replicate the above functionality either. Hopefully it's an error on my side, but it's very possible that I will not stick to Geany.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 1 point 1 year ago* (3 children)

    Did you try plugins but sure it's fine

  • source
  • parent
  • hideshow 3 child comments
  • [–] [S] 1 point 1 year ago (2 children)

    I have looked into plugins, but nothing I've found suggests to contain/offer the desired functionality.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 13 points 1 year ago* (5 children)

    On windows: Notepad++. On Linux-based OS: Kate. And there's also JetBrains Fleet, that is jetbrains answer to vscode.

  • source
  • hideshow 5 child comments
  • [–] [S] 3 points 1 year ago

    Thank you!

    I tested Notepad Next, which seems to be Notepad++' cross-platform alternative. However, I wasn't able to get the folding functionality on a Markdown file. Am I doing something wrong?

    I've tried Kate since yesterday, it has been one of the better ones for now.

    JetBrains Fleet seems like a cool project. But I'll probably wait until it's open sourced. Thanks anyways!

  • source
  • parent
  • [–] 1 point 1 year ago (2 children)

    Also notepad++ on wine on Linux ... Not my favorite but it's there

  • source
  • parent
  • hideshow 2 child comments
  • [+] 12 points 1 year ago (3 children)
  • [–] [S] 3 points 1 year ago (2 children)

    I have to agree with the positivism surrounding Kate. It has been the only one (together with KDevelop) out of the 5 text editors I've installed and tested since yesterday that actually did what I desired from it. Props to the devs! Let's see if it can dethrone Emacs 😜.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 3 points 1 year ago (1 child)

    Emacs will always be abe to do things you can't do with other editors. It's a text based interface toolkit that happens to also have a good text editor and IDE capability. Buuut, you need to spend a lot of time to set things up. I use it since probably more than 20 years and I still often need to look up and learn stuff. If you want a tool and not a workshop, get a simpler editor.

  • source
  • parent
  • hideshow 1 child comment
  • [–] [S] 2 points 1 year ago

    I think you've done an excellent job at capturing my initial thoughts. It basically felt as if using Emacs was bound to be overkill as my (relatively simple) use case didn't seem to warrant its usage.

    But, even if it is (possibly) overkill, I do prefer^[Granted, I haven't tried out Neovim for this yet.] how Emacs handles the folding. So, while there's the very real possibility that I'll not even utilize 1% of Emacs' potential, I feel most excited and (somehow) comfort while working with it 😅.

    As for setting things up, I immediately started using Emacs through Spacemacs until the input lag became very noticeable on larger files. Then, I pivoted to Doom Emacs and I've been enjoying it so far. Perhaps I'll create my own config at some point in the future, But for now, Doom Emacs is all I need.

  • source
  • parent
  • [–] 9 points 1 year ago* (3 children)

    Will probably get airstriked for this, but Zed is also a option.

    Also, if you're using GNOME, then try GNOME builder. And if you're using KDE, then try KDevelop or Kate.

  • source
  • hideshow 3 child comments
  • [–] [S] 1 point 1 year ago

    Thank you for your recommendations!

    Hopefully I'll get around to take Zed for a test drive in the near future.

    As for GNOME Builder, for some reason, I wasn't able to replicate what's seen above with it. Perhaps it doesn't support Markdown that well. Or..., it needs/requires a plugin to do its bidding. Would you happen to know more on this? Any help is appreciated!

    KDevelop and Kate, on the other hand, have been a very pleasant surprise. I have literally checked about a dozen of text editors since yesterday, and these two have been the only ones that have yielded the desired result. Props and kudos to the dev team!

  • source
  • parent
  • [–] 2 points 1 year ago

    i’ve heard that some people love using kate because, with some plugins, it really can do all most people need. i’ve seen a dude make a video on it but would need some time to find it again if there was any interest.

  • source
  • parent
  • [–] 8 points 1 year ago (1 child)

    If you don't want to go the Emacs or Vim routes, try Kate. Neovim is amazing but Kate is too from what I hear. Similar support for LSPs.

  • source
  • hideshow 1 child comment
  • [–] [S] 1 point 1 year ago

    It's not that I don't want to go with Emacs or Neovim. Rather, I want to explore what else is out there.

    As for Kate, thank you for its endorsement! I've tried Kate since making this post and it^[Together with KDevelop. Though it has to be noted that KDevelop IIUC seems to rely on Kate for this functionality.] has been the only one which has yielded a desirable result. I can wholeheartedly attest to its quality.

  • source
  • parent
  • [–] 14 points 1 year ago* (5 children)

    There's also Zed. And helix.

    Amongst all the other great alts here

    Also neovim is really dope! Just have to throw that there

  • source
  • hideshow 5 child comments
  • [–] [S] 6 points 1 year ago (4 children)

    There’s also Zed.

    Noted. Thank you!

    And helix.

    I believe this doesn't have folding (yet). Unfortunately.

    Also neovim is really dope! Just have to throw that there

    xD , Neovim is definitely pretty cool.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 3 points 1 year ago (3 children)

    I use Zed as my primary editor these days. It’s just about ready for prime time!

    (Source: 12 years of web and Linux hacking)

  • source
  • parent
  • hideshow 3 child comments
  • [–] [S] 2 points 1 year ago (2 children)

    By admission of my fellow Lemmy-users, I've gone and tried out many text editors over the course of the past few days. Unfortunately, I didn't like the installation options for Zed in my current distro of choice (i.e. Fedora):

    • its flatpak is unverified
    • not found in Fedora's own repos

    It is found within Terra's repos. However, users report that -at least for Zed- some of the installed packages from Fedora's own repo are replaced by Terra's. This interaction can be prevented by giving preference for Fedora's own packages, but it seems like a can of worms I'm not very interested to engage with at the moment. Hopefully this situation will be resolved rather sooner than later.

    Anyhow, have you got the chance to work with Emacs and/or Kate over the years? If so, could you chime in and give your thoughts on how Zed fares in comparison? Please note that I'm (mostly) asking within the confines of a relatively simple text editor used to take notes with.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 3 points 1 year ago (1 child)

    Honestly I never really got into using any of the terminal based editors- I like a pretty GUI, personally.

    That being said I have been a KDE user for the last couple of years and actually have quite a favourable view on Kate. It’s a very competent editor with a great deal of extensibility.

    The big difference between the two is their focus. Zed is written to be targeted at developers and as such has some capabilities that Kate doesn’t (afaik) like an AI assistant panel, handling multi megabyte text files with grace, and being able to directly connect to remote file systems over SSH.

    If you’re not looking for those features I think you’d be very happy with Kate!

  • source
  • parent
  • hideshow 1 child comment
  • [–] [S] 1 point 1 year ago

    Thank you so much for this information! It confirms that Kate is very competent, yet clears where it may fall short compared to Zed.

    Aight, I'll keep Kate around for the time being. And I'll definitely take Zed into consideration whenever I'm in search of an IDE.

  • source
  • parent
  • [–] 7 points 1 year ago (16 children)
  • [–] [S] 3 points 1 year ago (15 children)

    Looks cool. Thanks!

    Uhmm..., did I understand correctly that it's not open source?

  • source
  • parent
  • hideshow 15 child comments
  • [–] 6 points 1 year ago (14 children)
  • [–] [S] 4 points 1 year ago (13 children)

    Thank you for the clarification!

    While I didn't mention it explicitly in the post, I do intend to stick to open source.

  • source
  • parent
  • hideshow 13 child comments
  • [–] 1 point 1 year ago (12 children)

    Sublime Text is not open-source but it has a sane price and a WinRAR-style trial. I use it because it feels a lot snappier than other editors/IDEs I've tried when browsing large files.

    On the one hand, it's a shame that it's not open-source, but on the other hand, developers have to make a living from something.

  • source
  • parent
  • hideshow 12 child comments
  • [–] [S] 4 points 1 year ago (5 children)

    I use it because it feels a lot snappier than other editors/IDEs I’ve tried when browsing large files.

    Snappiness is definitely something I appreciate. So, if it blows everything else out of the water in this respect, that I might have to concede. Thank you for mentioning this particular aspect of it!

    On the one hand, it’s a shame that it’s not open-source, but on the other hand, developers have to make a living from something.

    I wholeheartedly agree. But, I prefer the capability to donate to the open-source software developers that I love to support.

  • source
  • parent
  • hideshow 5 child comments
  • [–] 2 points 1 year ago (2 children)

    I wholeheartedly agree. But, I prefer the capability to donate to the open-source software developers that I love to support.

    Right indeed, not sure why it was implied that open source software couldn't be a financially viable option for developers too.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 3 points 1 year ago (4 children)

    On the one hand, it’s a shame that it’s not open-source, but on the other hand, developers have to make a living from something.

    I'm pretty sure most people here, at least I hope, who use open source and free software directly money donate to developers. I know of plenty of developers who do get paid writing open source through such donations or via funding, e.g. NLNet or grants. Maybe I'm misunderstanding your statement, are you saying Sublime Text isn't open source because they believe those ways are not appropriate for them?

  • source
  • parent
  • hideshow 4 child comments
  • [–] 2 points 1 year ago (3 children)

    I wrote a whole comment in which I mused about the reason why Sublime Text isn't open-source. However, a brief search found one developer's answer: They just don't think that typical FOSS funding is sustainable for their particular project.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 3 points 1 year ago (2 children)

    FWIW I'm donating every month to CodeMirror author, donates to Vim, etc. I'm not saying they are wrong, nor right, solely that implying (but maybe I misunderstood the comment) that somehow open-source and getting paid are antagonist is IMHO damaging to FLOSS broadly.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 2 points 1 year ago (1 child)

    That's a fair point. Still, I think it's also worth acknowledging that getting paid to develop open-source software can often be more difficult than getting paid for proprietary work. According to Tidelift State of Open Source Maintainer report, 44 % of FOSS maintainers aren't getting paid for their work but would like to. Interestingly, 36 % of FOSS maintainers are getting some monetary compensation.¹

    (I'm responding mostly because I found that survey. Interesting numbers.)

    ¹ I thought this number would be smaller. Alas, I am a pessimist.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 2 points 1 year ago

    44 %

    Very interesting, thanks for sharing. That number is of course way too high. I won't point fingers but... OK I will, I would argue, naively, that a lot of that frustration comes from corporate exploitation. I bet a lot of that comes from maintainer who noticed big number of downloads on CDN but no PR because somehow a paid for tool (so not blaming just BigTech here) relies on their work... and they don't see a cent for it.

    I doubt most people who have a quirky side project, say something about how to use Lego controllers for their model train on the weekends with kids, really mind. Sure they'd love to see a bit of money from it but whatever.

    Anyway I'll dig into that report a bit more, thanks for sharing!

  • source
  • parent
  • load more comments (-1 replies)
  • [–] 6 points 1 year ago (3 children)
  • [–] [S] 2 points 1 year ago

    Thanks for the recommendations! Helix doesn't seem to offer this functionality (yet). Unfortunately...

    As for Zed, it does seem to be capable of reproducing the functionality found in the gif (or at least to some extent). However, installing it on my distro isn't pretty. Therefore, I wish to install it at some point, but I'll wait it out for now.

  • source
  • parent
  • [–] 5 points 1 year ago (13 children)

    Others have given you many options, but I would like to know why Nvim or Emacs are not good options for you?

  • source
  • hideshow 13 child comments
  • [–] [S] 1 point 1 year ago* (last edited 1 year ago) (12 children)

    No no, don't get me wrong. I think both Emacs and Neovim are excellent. And this little endeavor/search/pursuit has (perhaps more than anything) solidified (and gave context as to) why they're in their own league.

    Like, I've tried about a dozen of text editors in last couple of days. And with most^[Heck, I've only been able to confirm that Kate and KDevelop at least do what has been advertised (by others).] of them I've failed to reproduce the functionality demonstrated in the gif.

    But even the very best of what I've tried since making this post pales -or at least seems to be*- in terms of extensibility. And, when we add in Emacs' proven^[Neovim is still relatively new. I don't think I can justifiably vouch for its longevity yet.] longevity, it becomes hard to root for any of the alternatives. At least..., so far*.

    Still, I had to answer for myself if committing to Emacs (or Neovim for that matter) was justified given the fact that I had not a lot of experience with text editors 😅. Like, as funny as it sounds, I've moved from Word+StickyNotes to (GNOME's) Text Editor to a bunch^[I can recall ghostwriter, MarkText and QOwnNotes.] of Markdown text editors to Emacs. And the switch to Emacs was mostly motivated when I saw Obsidian do the very thing you see in the gif 😂. But as cool as learning the ropes of Emacs was, I think I was experiencing some impostor syndrome shenanigans.

    Thankfully, it seems that this has mostly served to be a huge motivation boost. Perhaps I was (more than) ready to conquer Emacs all along...

  • source
  • parent
  • hideshow 12 child comments
  • [–] 2 points 1 year ago (11 children)

    If you had started with that people would have told you that nothing comes even close. The closest things you will find are Atom (archived), Sublime (closed source) and Helix (still very new and no plugin support, but something to keep an eye on).

    Speaking of obsidian, the reason why it took me forever to start using Silverbullet is that Emacs has org-mode which does most of what Silverbullet/Obsidian do out of the box, plus some other stuff that they don't do (e.g. excel like tables).

    But I wanted something I could edit remotely through my phone and web interfaces are better than using text editors over ssh connections. Also I have migrated from Emacs to Nvim, the reasons are purely ergonomical (pinky fatigue is a real issue) but after switching I found a jump in the way to think about an editor. Emacs is great, don't get me wrong, and if you decide to learn Emacs I can assure you it will be the best editor you've used, but it still edits things at a character level, while there are concepts for matching brackets or quotes changing the text inside quotes in Emacs is very character oriented, I.e. go to start of quote, start marking, move to matching quote, delete, whereas in vim is sort of a higher level language where you say Change Inside Next Quote using cin", and expanded with some plugins you can even do srnq' to Surround Replace Next Quote with ' (which will change the quotations on the next text from whatever to '). And that's a lot closer to the way I think so it skips a mental step (plus it's a lot less keystrokes and no Ctrl for my pinky).

    But those are the reasons why I switched, many people use Emacs for decades without ergonomic issues, whichever of the two you decide to learn you'll understand why they're the staple editors for most people who actually choose an editor.

  • source
  • parent
  • hideshow 11 child comments
  • [–] [S] 1 point 1 year ago (10 children)

    Thank you for the raving endorsement and otherwise very informative reply!

    Also I have migrated from Emacs to Nvim, the reasons are purely ergonomical (pinky fatigue is a real issue) but after switching I found a jump in the way to think about an editor. Emacs is great, don't get me wrong, and if you decide to learn Emacs I can assure you it will be the best editor you've used, but it still edits things at a character level, while there are concepts for matching brackets or quotes changing the text inside quotes in Emacs is very character oriented, I.e. go to start of quote, start marking, move to matching quote, delete, whereas in vim is sort of a higher level language where you say Change Inside Next Quote using cin", and expanded with some plugins you can even do srnq' to Surround Replace Next Quote with ' (which will change the quotations on the next text from whatever to '). And that's a lot closer to the way I think so it skips a mental step (plus it's a lot less keystrokes and no Ctrl for my pinky).

    Hmm...., interesting. I'm still pretty new to evil-mode, but doesn't that bridge the gap here? Btw, I don't know why, but I wasn't able to see for myself how cin" worked within Vim*.

  • source
  • parent
  • hideshow 10 child comments
  • [–] 2 points 1 year ago (9 children)

    Yes, evil-mode would have bridged the gap, however I didn't go emacs -> vim in one step, I left emacs back in 2017 because of pinky strain, and other ergonomic issues that made me switch keyboard layout as well (which made me lose lots of agility on emacs) and started using Pycharm for python dev, VSCode for other languages (including Markdown for note taking) and nano for system file edition. I tried some of the other suggestions here like atom, sublime, Kate, etc, but they never became my everything tool like emacs used to be. Very recently I discovered Helix, and I gave it a try and loved it, however the lack of plugin support made me have reservations on diving in. But the interaction mode is very close to vim, so I decided to give vim another go and went through a few tutorials on how to set Nvim up while refreshing muscle memory for vim movements and learning new stuff and it's slowly becoming the everything tool that emacs once was for me.

    All of that being said, I don't think I would use evil-mode on Emacs, the reason is that vim is made with those motions from the ground up, whereas in emacs they will be an after-thought so it will probably not be integrated enough (or more likely will require lots of configurations).

    I wasn't able to see for myself how cin" worked within Vim*.

    It's simple, imagine you have a line of code like so:

    my_var = "some string with spaces"
    

    If your cursor is almost anywhere on that line pressing ci" will erase the contents of inside the string and place you in insert mode, i.e. the line will look line this:

    my_var = "|"
    

    With | being the cursor in insert mode. There are other similar things, for example ca" (Change Around ") will also erase the quotes, very useful for example to change a hard coded string with a variable.

  • source
  • parent
  • hideshow 9 child comments
  • [–] [S] 1 point 1 year ago* (last edited 1 year ago) (8 children)

    Sorry fam for the late response! I was writing up a draft a couple of days ago, but that one somehow disappeared. Which..., is kinda peculiar as I don't recall the last time a draft spoofed out of existence. Regardless, it really puts me off to start a reply all over. As such, I've been mustering motivation since 😅. Anyhow, thank you for your patience!

    Thank you (also) for sharing your journey around the many text editors! If anything, it reminds me how life has got many surprises for us. As such, being wed to any software, regardless of how powerful it may be, may still result in a break later down the line.

    Thank you (once more) for touching on ergonomics! I haven't mentioned it, but I do experience some RSI-related pains/aches.

    Steps I've undertaken to alleviate the pains/aches. This has been put in spoilers, because I don't think it's very relevant for the subject matter.

    • I use a split keyboard, and hope to switch in the upcoming months to one of the most ergonomic keyboard around.
    • I have made changes to my workflow to become (mostly) keyboard-only, so little to no mouse/touchpad. Which led me to embrace and become more familiar with modal editing.
    • I have dabbled into the alt keyboard layouts and intend to make the switch when the aforementioned ergonomic keyboard arrives.
    • I have made many other changes to how I work in order to better align with ergonomics; laptop-stand so that it's lifted to the appropriate height, worked on better posture, only making minimal use of my phone etc. And intend to back this up further with a height-adjustable desk.
    • Employ speech to text whenever I can afford it.
  • Anyhow, I do have concerns on how Emacs' default keybindings might be detrimental on someone using a regular keyboard. I believe this article makes an interesting case on this. That's also one of the reasons why I've (almost) exclusively been on evil mode.

    I hope you've recovered completely from the strain on your pinky! And, hopefully, nothing else has been causing any issues since!


    Btw, the trick with ci" and ca" is pretty cool! Thank you for teaching me something new! FWIW, it was reproducible within Emacs' evil mode*.

  • source
  • parent
  • hideshow 8 child comments
  • [–] 2 points 1 year ago (7 children)

    Hey, yeah, I know the feeling, every time I lose an already typed reply I completely lose motivation to rewrite it.

    Yeah, my pinky strain issue is completely gone, I also used to have some more pain on my wrist which made me go through a very similar journey to you, I took many steps for it to the point where nowadays my setup is (in order of what I think has made the largest impact)

    • Using i3/sway as my WM for a keyboard centric usage
    • Switching to Colemak and learning touch typing properly
    • Split ortholineal keyboard (crkbd)
    • Trackball instead of mouse

    I've also got a height adjustable desk and a good chair to prevent issues with my back, and my monitors use an arm to be in the right position. It was a slow process of making one change here, few months later another z etc, but this has been my setup for a few years and all of my pains in wrist, lower back, neck, etc have disappeared. I figured if I'm going to ve sitting in front of a computer typing stuff for 8h a day I need to make that as comfortable as possible to be able to do it for longer.


    As for emacs with evil mode I was sure that ci" would work, that's basic vim functionality, what I'm less sure would work is more complex stuff for which I use plugins, e.g. <space>srq" (Surround Replace Quotes with ") to replace the next quotes for " (e.g. changing var = 'some text' to var = "some text"). That same plugin allows me to also do <space>srb[ to Surround Replace Bracket/Braces with [ (to change the surrounding [, (, or { to [ ). Another plugin allows me to move to any part of the screen in 4 keystrokes, I press s the two characters of where I want to move, and a third disambiguation character and the cursor moves there. Those are advanced usages that I think will be difficult to reproduce in emacs, plus plugins will not incorporate the basic ideas for movements.

    May I ask why emacs in evil-mode instead of Nvim?

  • source
  • parent
  • hideshow 7 child comments
  • [–] [S] 1 point 1 year ago (6 children)

    Hey, yeah, I know the feeling, every time I lose an already typed reply I completely lose motivation to rewrite it.

    Hehe, as a precaution, I wrote this up in Emacs instead 😜.

    Yeah, my pinky strain issue is completely gone

    Glad to hear that!

    Using i3/sway as my WM for a keyboard centric usage

    Curious to see this at the very top of your list. Perhaps I should make my switch to Sway rather sooner than later. Thank you for the endorsement!

    learning touch typing properly

    I intend to learn this with the alt keyboard layout after the more ergonomic split keyboard has arrived. Wish me good luck 😉!

    Trackball instead of mouse

    Hmm..., this is lower on your list. So I suppose that by effectively removing most need for a mouse, the switch to a trackball has been less impactful. Btw, perhaps related, would you happen to be aware of hints? If so, could you touch upon its relevance?

    a good chair to prevent issues with my back

    Curious. Is this a special ergonomic chair (or something)?

    It was a slow process of making one change here, few months later another z etc

    Did you advance/progress in increments because you were testing out the latest addition to the setup? And thus, only introduced a subsequent change after judging that you were not 'done' yet?

    all of my pains in wrist, lower back, neck, etc have disappeared.

    I am so glad to read this! While the journey until I am able to interact with my systems without any pain seems far away right now, success stories like yours make me so pumped to pull through.

    I figured if I'm going to ve sitting in front of a computer typing stuff for 8h a day I need to make that as comfortable as possible to be able to do it for longer.

    Couldn't agree more.

    e.g. <space>srq" (Surround Replace Quotes with ") to replace the next quotes for " (e.g. changing var = 'some text' to var = "some text"). That same plugin allows me to also do <space>srb[ to Surround Replace Bracket/Braces with [ (to change the surrounding [, (, or { to [ ).

    Interesting. FWIW, I did test this out and I believe that OOTB Doom Emacs does utilize the evil-surround package. However, I don't think it's as powerful as what you describe. Though, this could also be on me 😅.

    Another plugin allows me to move to any part of the screen in 4 keystrokes, I press s the two characters of where I want to move, and a third disambiguation character and the cursor moves there.

    Hmm..., this very closely resembles what evil-snipe does. Though, unless I'm doing something wrong, the functionality is not a single s away, but rather a g s SPC away. At least, OOTB*.

    May I ask why emacs in evil-mode instead of Nvim?

    Of course you can. Unfortunately, though, I don't exactly recall my reasonings 😅. Thankfully, I did note some of my thoughts from back when I was actively trying to decide between the two. From there, I was able to gather the following:

    • I would only try out Emacs or Neovim through a opinionated config.
    • For Emacs, Doom had kinda won over Spacemacs based on the opinions (and experiences) of others . Though, I still wanted to try out Spacemacs to judge for myself.
    • While for Neovim, LazyVim and LunarVim were the winning configs.

    What follows is not based on my notes, but from what I can remember. Shortly after I came to the above conclusions, I went out and tried to install them. But, I wanted to 'test' them without 'polluting' my system. As such, I tried to install them within a distrobox. This is where Neovim came short because of this imposed limitation. I don't 100% remember what it was, but IIRC there might have been more than 1 issue; one of which had to do with fonts. Regardless, my Neovim adventures were prematurely terminated 😅. By contrast, Emacs didn't budge an inch under these circumstances. So I was able to test out both Doom and Spacemacs without any significant issues. Since then, I have dabbled in Emacs. But the folding mentioned in the original post is what has led me to commit more seriously than ever. So, in short, it was mostly out of practical reasons.

    Btw, it's funny, but most of what you just read about my reasonings were buried memories 😂. Like, if I had to answer it on the spot -so without thinking it over or look through my notes or dig through my memories- , I would probably have stated some arbitrary technical reason (e.g. org-mode FTW) OR its proven longevity OR I don't know... something. But it couldn't be further from the truth 😅. Granted, I'm still very much enjoying Emacs. But, I shouldn't disregard/dismiss Neovim any longer. It's time to revisit this rabbit hole 😂. I should also thank you for asking the question that brought this to my attention 😊!

  • source
  • parent
  • hideshow 6 child comments
  • [–] 2 points 1 year ago (5 children)

    Curious to see this at the very top of your list. Perhaps I should make my switch to Sway rather sooner than later. Thank you for the endorsement!

    For me it was a lot off wrist pain, so switching to a more keyboard centric way of interacting with the WM was very impactful.

    I intend to learn this with the alt keyboard layout after the more ergonomic split keyboard has arrived. Wish me good luck 😉!

    Which alternate layout are you considering? I recommend grabbing something you typed and feeding it here to check heat map of keypresses you would have done to have some visual representation of your usage.

    So I suppose that by effectively removing most need for a mouse, the switch to a trackball has been less impactful.

    Bingo, I actually switched to trackball before going to keyboard centric WM, but after it I've even gone back to mouse a few times feeling almost no difference, because I end up using the mouse a lot less.

    Btw, perhaps related, would you happen to be aware of hints? If so, could you touch upon its relevance?

    I have, not exactly it but similar stuff, I used to use a browser called conkeror that had emacs key bindings, and have tried to learn a very similar system to hints in the past. Honestly, when I has lots of wrist pain they were useful to completely remove the need of a mouse, but they're clunky and not as efficient as a pointer so I tend not to use them.

    Curious. Is this a special ergonomic chair (or something)?

    Nope, just a Secret Lab Titan Evo, but any good chair would do, I spent a year with a cheap Amazon chair and had lots of back pain.

    Did you advance/progress in increments because you were testing out the latest addition to the setup? And thus, only introduced a subsequent change after judging that you were not 'done' yet?

    It was more of a gradual thing, I had wrist pain, so I switched to a trackball, that helped but didn't got rid of it. So I tried AwesomeWM, found Conkeror and slowly the pain started to fade away and I dove deep into the keyboard centric thing learning touch typing and Colemak. Eventually other issues came on, like pinky strain from Emacs, or a different kind of wrist pain from a small keyboard that made me switch to a split one, or back pain that made me invest in a good chair. I don't think my setup is "done", it adapts to whatever my body is asking, but I've started to listen carefully and switch stuff on the early signals because that first wrist pain was an eye opener on how bad things can get if you ignore them.

    I am so glad to read this! While the journey until I am able to interact with my systems without any pain seems far away right now, success stories like yours make me so pumped to pull through.

    Do you feel pain now though? If so what? You should address that immediately. At most points I would have answered that I felt no pain with my setup, because those things build up gradually, if you're at the point of feeling pain the time to take action is now.

    About the emacs plugins, yeah, by the name I can tell you those do the same to the ones I cited, my point is that the plugin ecosystem for it might be a bit less extensive, and not sure how to set shortcuts that use vim key bindings for other plugins.

    I would only try out Emacs or Neovim through a opinionated config.

    Why? Having had an emacs config that I copied from somewhere and ended up growing and becoming something unmanageable, I'm have a very strong opinion that one should build your own config files from scratch to know them. Presets are good if you're going to be using them bare, but if you're going to customize them they can get in the way. And that's another point for Nvim for me, their configs are very easy, I followed this guide and had a working config that I could easily expand in no time.

    org-mode FTW

    Ah, I miss org-mode, it's too bad the world went with Markdown instead.

    Granted, I'm still very much enjoying Emacs. But, I shouldn't disregard/dismiss Neovim any longer. It's time to revisit this rabbit hole 😂.

    Meh, maybe, maybe not, Emacs is great, I just never would have gone with evil mode, it sort of feels like it defeats the purpose of both emacs and vim in my mind for some reason. It's like if someone told you they put a Ford engine on their Chevrolet, it feels convoluted and strange to think on that solution before thinking of using a Ford.

  • source
  • parent
  • hideshow 5 child comments
  • [–] [S] 1 point 1 year ago (4 children)

    Thank you so much for your elaborate and well-articulated reply! As I don't want these messages to spiral into an ever-expanding wall of text, I've chosen to refrain from reacting to every single valuable thing you've written. Nonetheless, everything, including the parts I'm explicitly not reacting to, has been a joy to read and has been very informative. So, again, thank you! Much appreciated!

    Which alternate layout are you considering?

    Hehe, currently, I've landed on Night.

    I recommend grabbing something you typed and feeding it here to check heat map of keypresses you would have done to have some visual representation of your usage.

    This is pretty cool! Unfortunately, (perhaps unsurprisingly) Night isn't included within its layout options. I would otherwise have loved to check this out.

    switch stuff on the early signals because that first wrist pain was an eye opener on how bad things can get if you ignore them.

    Would you like to elaborate on this? As the pains and discomfort have increased over time, I have been more conscious than previously. But, I'm sure there's still a lot of mileage to be had. Like, what do you perceive as an early signal? Exhaustion and/or fatigue after a day of work? Or perhaps something more specific?

    Furthermore, how bad did things become?

    Do you feel pain now though?

    After a couple of hours, I do experience strange sensations that border on pain. Furthermore, there's (almost) always some level of unease/discomfort. Thankfully, resting continues to feel good and I get especially revitalized after sleeping well. But I acknowledge that this isn't sustainable.

    If so what?

    Wrist pain and fingers that feel wacky. So, this is basically carpal tunnel 101. This has been confirmed/diagnosed by both the general practioner as well as the surgeon. Thankfully, the damage is relatively tame still; the surgeon didn't see much distortion/damage in the x-rays (yet). There's also no need (yet) for a surgery and (hopefully) there'll never be. Which is very much reliant on me putting in the work and effort to make this as comfortable and (by extension) sustainable as possible.

    You should address that immediately. At most points I would have answered that I felt no pain with my setup, because those things build up gradually, if you're at the point of feeling pain the time to take action is now.

    I have taken some action; but I'm still very much in the process. I'm aware it's just not enough (yet). But, the steps I've taken so far have thankfully led to significant relieve already. Like, I was a lot worse last year. And, as hinted at previously, I already have plans to address the remaining issues.

    my point is that the plugin ecosystem for it might be a bit less extensive, and not sure how to set shortcuts that use vim key bindings for other plugins.

    You could be right on the plugin ecosystem; even beyond the integration of evil-mode*. It doesn't matter which metric I throw at it, the Neovim ecosystem seems to be more vibrant. Though, at least for the time being, org-mode seems to be Emacs' forte. Which..., just happens to be the very thing I'm using it mostly for. While I'm far from being comfortable with it, it has already provided a much better experience compared to all other text editors I've tried.

    I would only try out Emacs or Neovim through a opinionated config.

    Why?

    My apologies, perhaps I should have been clearer. I didn't stress enough how this was mostly for trying it out and get going initially. I'm still on Doom Emacs, but I do intend to build my own config after I've gotten a better grasp IF it's beneficial.

    And that's another point for Nvim for me, their configs are very easy, I followed this guide and had a working config that I could easily expand in no time.

    Hahaha 🤣, I would have loved to have an up-to-date video guide like that for Emacs. Alas... 😅.

    I miss org-mode

    Hehe 😜, though I wonder: have you tried out Neorg or nvim-orgmode to see how they fare by comparison?

  • source
  • parent
  • hideshow 4 child comments
  • [–] 2 points 1 year ago (3 children)

    I understand, and I agree, although I'm reading all the replies are already becoming wall of text so I'll skip parts but I have read them and they're all interesting.

    I've landed on Night.

    That looks interesting, although I would be weary of learning a layout that only works on specific keyboards, it will make it hard for you to use a laptop on the go, work in an office with a normal keyboard or any other similar situation.

    Furthermore, how bad did things become?

    I think it's easier if I answer this first. At the worst I had problems holding heavy stuff in my hand, as in fingers lackesld strength or didn't respond properly. And for my lower back at the worst it was constant pain where I needed to lay down with a pillow on my lumbar to stretch. After fixing those I became very aware of the initial feelings, such as numbness or feeling pain when stretching (which btw I strongly recommend you check out wrist and finger stretching exercises as they help a lot). Lots of the changes I made (e.g. split ortholinear keyboard) were probably not needed, but the wrist pain that kickstarted everything got me worry enough that I don't want to take any chances.

    After a couple of hours, I do experience strange sensations that border on pain. Furthermore, there's (almost) always some level of unease/discomfort. Thankfully, resting continues to feel good and I get especially revitalized after sleeping well. But I acknowledge that this isn't sustainable.

    It's not, those are exactly the early signals that you asked me about, you think that because you're able to rest and stretch and it goes away that it's all fine, but it will require ever more stretching and resting until they don't go away ever. At least that's what happened to me, at the beginning I would stretch my wrist and fingers and rest for a while and be fine, eventually that became next day I'll be fine, then over the weekend, then never.

    Wrist pain and fingers that feel wacky. So, this is basically carpal tunnel 101.

    That's exactly what I had, although mine was never actually diagnosed, but I had all of the symptoms and my dad had to do the surgery so I have family history. It does get better if you adjust, I don't feel any of the symptoms I once did, and it is sustainable I haven't had any symptoms in about 10 years since I switched to a more keyboard centric flow and the layout, so putting in the work does help out. I should say I had 24 years when the symptoms first appeared, so it was kindof young which was one of the reasons I got very scared about getting those symptoms so early.

    org-mode seems to be Emacs' forte.

    Org-mode is absolutely wonderful, I haven't tried any replacement because the reason I abandoned org-mode wasn't emacs related, I kept using emacs for org-mode for a while after I dropped it as my main editor. The reason is that there's no compatibility with other editors or apps. Everything uses markdown, and for most basic stuff markdown is good enough. I do miss habit tracking, task management, table calculations and other neat stuff, but the commodity of using the same format for everything and that other people use it as well outweighs all of that for me.

  • source
  • parent
  • hideshow 3 child comments
  • [–] [S] 1 point 1 year ago (2 children)

    Again, I want to establish that I've learned a ton and really appreciate your writings. Thank you!

    That looks interesting, although I would be weary of learning a layout that only works on specific keyboards, it will make it hard for you to use a laptop on the go, work in an office with a normal keyboard or any other similar situation.

    Thanks for the reminder! While I can't completely ignore the main takeaway, I do find myself only rarely (read: less than 5%) engage with normal keyboards. And, AFAIU, by only adopting the exotic layout for splitting keyboards, I can keep the muscle memory for QWERTY on regular keyboards. Though, please feel free to correct me if I say something that goes against your own experiences.

    which btw I strongly recommend you check out wrist and finger stretching exercises as they help a lot

    Would you be so kind to share what has worked for your wrist? While there's no reason to assume that your exercises work out for me, I can at least discuss them with the physiotherapist. BTW, to be clear, I've already visited the physiotherapist a number of times and we've discussed exercises that I've eventually incorporated in my daily routine.

    Lots of the changes I made (e.g. split ortholinear keyboard) were probably not needed

    Question: If we focus on the split ortholinear keyboard, is only the ortholinear aspect (possibly) redundant? Or..., the split itself?

  • source
  • parent
  • hideshow 2 child comments
  • [–] 2 points 1 year ago (1 child)

    Damn, I thought I had sent the reply and it's been erased.

    I'll keep it short, muscle memory for qwerty doesn't go away that easily, at least it didn't for me, but I'm able to type blindly in qwerty (just not touch typing). Still I think that something I can use in my laptop is very useful so I can keep the ergonomics on the go.

    I don't have the exercises, it was just something someone told me to do, I'm sure whatever your doctor is telling you would be better.

    For the split vs ortholinear I think split makes more difference, whenever I use a normal keyboard I feel this, but never had any pains related to it, it's just more comfortable.

  • source
  • parent
  • hideshow 1 child comment
  • [+] 5 points 1 year ago* (1 child)
  • [–] [S] 1 point 1 year ago

    Thank you for mentioning Lapce!

    I have been interested in Lapce for a long time. Unfortunately, IIUC, it doesn't support folding Markdown headings as shown in the gif. At least, I wasn't able to get it to work. Can you attest to this? Or am I doing something wrong? Your aid would be much appreciated!

  • source
  • parent
  • [–] 2 points 1 year ago (1 child)
  • [–] 2 points 1 year ago (4 children)

    There's got to be a Micro plug-in for this.

  • source
  • hideshow 4 child comments
  • [–] 7 points 1 year ago (3 children)

    WAIT, if I'm reading this right, it's had code folding since last year: https://github.com/zyedidia/micro/pull/2942
    I'm gonna try this right now

  • source
  • parent
  • hideshow 3 child comments
  • [–] [S] 2 points 1 year ago (2 children)

    Thanks a lot for putting in the work! Uhmm..., how has testing been? Were you able to pull this off with Markdown?

  • source
  • parent
  • hideshow 2 child comments
  • [–] 0 points 1 year ago (1 child)