Post 9uVGzQL1YHjanx0PEe by glaurungo@niu.moe
(DIR) More posts by glaurungo@niu.moe
(DIR) Post #9uVD9GHxN3a8iS0SQ4 by wolf480pl@mstdn.io
2020-04-28T12:33:31Z
0 likes, 0 repeats
I've been using scribes as my editor of choice for when I need to edit one file a lot. (I use nano for one-off or remote things).Now, during last update I noticed that scribes not only is gone from Arch repos, but the old version stopped working because some breaking changes somewhere.It's still in AUR so I could built it myself pretty easily... except it also depends on other packages from AUR, and I don't feel like building all of them...So I decided to try out different editors.
(DIR) Post #9uVDV7XkZAKfxooheq by pfm@edolas.world
2020-04-28T12:37:28.400636Z
0 likes, 0 repeats
@wolf480pl I'm curious which ones you'd try and which would "win". ;)
(DIR) Post #9uVDZ3xjp06K14qu2a by glaurungo@niu.moe
2020-04-28T12:38:08Z
1 likes, 0 repeats
@wolf480pl How do you quit nano though?
(DIR) Post #9uVDc5IRJolx1QyZlo by wolf480pl@mstdn.io
2020-04-28T12:38:44Z
0 likes, 0 repeats
Ideally, I'd like something which:- has minimal UI (saves screen space, easier to theme)- plays nicely with sway (copy/paste, one window per file, etc.)- supports windows-style keybindings by defualt (Ctrl+arrows to move by word, Shift+movement for selection, Ctrl+C, Ctrl+V, etc.)- has neat tricks like enclosing text in brackets by selecting it and pressing opening bracketSo, I opened the list of editors on Arch Wiki and started to look at thingshttps://wiki.archlinux.org/index.php/List_of_applications#Text_editors
(DIR) Post #9uVDgbvRwiLdNVNgRs by wolf480pl@mstdn.io
2020-04-28T12:39:33Z
0 likes, 0 repeats
@glaurungo you type "hakase" 6 times.(not realy, you just "Ctrl-X, y")
(DIR) Post #9uVDqmc73woFQGBePg by glaurungo@niu.moe
2020-04-28T12:41:22Z
0 likes, 0 repeats
@wolf480pl I'm waiting till you decide to also write an editor
(DIR) Post #9uVDvJ1IWFKH5S7iXg by wzqtparor@mastodon.cloud
2020-04-28T12:42:12Z
0 likes, 0 repeats
That is why we have so many different apps to do the same thing.And I think diversity is good.@wolf480pl
(DIR) Post #9uVE0BH0kRL2VdnWxk by wolf480pl@mstdn.io
2020-04-28T12:43:05Z
0 likes, 0 repeats
Some editors I could eliminate just by reading their descriptions (eg. if it mentions JS, it's out).Others, I looked at theirs screenshots and decided they had too much UI/tabs/etc.I also avoided most of those which were only in AUR.Went through 25% of the list before I found something worth installing. Which was...
(DIR) Post #9uVEV8e4ZL1PKsLXpg by wolf480pl@mstdn.io
2020-04-28T12:48:41Z
1 likes, 1 repeats
Howl.https://howl.io/An editor written in Lua. Not bad.With minimal UI, and dark mode by default, nice.Supposedly customizable, and has commands. We'll see about that.Installed.Minimal UI indeed.Ctrl+arrows work.Select then bracket trick works.Wow that UI is minimal, not even a settings button. Let's read the manual then.Yeah, it has commands, eg. open, supposedly with completion, let's try that... oooh... that's some nice completion
(DIR) Post #9uVEumQZnQyZxSGDXk by wolf480pl@mstdn.io
2020-04-28T12:53:17Z
0 likes, 0 repeats
The command's completion basically acts as a file picker dialog.And then you have a preview in the editor buffer when you're about to select a file.Now, I'm sure all you spacemacs users over there are used to such things and don't consider it impressive.But see, all your spacemacsen have this learning curve I can't be assed to go through.If I had vim or emacs at the age of 8, maybe.But now... old habits die hard.
(DIR) Post #9uVF0KRWku8Su1Lpmi by michcio@om.nom.pl
2020-04-28T12:40:33.230155Z
0 likes, 0 repeats
@wolf480pl join the neovim club, we have mwk
(DIR) Post #9uVF0Kcs4jD3TCetSy by wolf480pl@mstdn.io
2020-04-28T12:54:18Z
1 likes, 0 repeats
@michcio hey I thought you were sick of following me?
(DIR) Post #9uVFr4a6SXyL3YVr8q by pfm@edolas.world
2020-04-28T13:03:52.599825Z
0 likes, 0 repeats
@wolf480pl Have you tried / considered trying one of these? I've noticed them on screenshots on fedi and even installed but never liked them enough to leave Emacs for a longer period of time.- xi, an editor separated into a (Rust) backend and a set of frontends (https://github.com/xi-editor/xi-editor);- micro, written in Go, terminal-based (https://micro-editor.github.io/#screenshots).(Not saying that they supported shortcuts or selection you require. Just curious what you think about them.)
(DIR) Post #9uVG2cGLZbbUhcmBkm by wolf480pl@mstdn.io
2020-04-28T13:05:56Z
0 likes, 0 repeats
Oh, did I mention all the keybindings I care about are windows-style by default?Ctrl-C, Ctrl-X, Ctrl-V,Ctrl-O, Ctrl-S,Ctrl-Z,Ctrl-FCtrl-W (for closing current file, like in ffox)Ctrl+arrowsShift+movementPgUp/PgDn, Home/EndNow, I'm not exactly proud of being used to those keybindings.I don't think they're the best, and I don't think them coming from Windows means anything good.
(DIR) Post #9uVG4GqMBF0yqqPO2i by wolf480pl@mstdn.io
2020-04-28T13:06:14Z
0 likes, 0 repeats
So please, if you have kids, teach them vim at a young age, so that they don't end up where I ended up.
(DIR) Post #9uVGQDFYDpFw4oei80 by glaurungo@niu.moe
2020-04-28T13:10:11Z
0 likes, 0 repeats
@wolf480pl You should still learn itso you can then teach your kids about the vim's gloryThink about the children.
(DIR) Post #9uVGdwok783VAOfKd6 by wolf480pl@mstdn.io
2020-04-28T13:12:40Z
0 likes, 0 repeats
@pfm Xi looks exactly like what @glaurungo would want.I agree and appreciate all the goals they're aiming for.I don't know about the keybindings, and I'm not gonna try it now, because it's not in Arch repo yet.
(DIR) Post #9uVGiOwlTISzZCXdS4 by wolf480pl@mstdn.io
2020-04-28T13:13:29Z
0 likes, 0 repeats
@pfm Micro looks kinda like what I'm looking for on the first sight, but again, not in Arch repo.
(DIR) Post #9uVGzQL1YHjanx0PEe by glaurungo@niu.moe
2020-04-28T13:16:32Z
0 likes, 0 repeats
@wolf480pl @pfm ThoughI would want an editor, that would scale so well, I could throw at it a lot of complex extensions and it would still work diabolically fastBecause my main problems with editors is that they're either fast and simple (like vim without too many extensions) or bloated but with language-dependent extras (like emacs with lot of extensions)And the ideal scenario would bethat when I need to open 10 times the extensionsI just buy 10 PCs and build a distributed system only for my text editing needs.
(DIR) Post #9uVH5ESwbbyXilToYq by wolf480pl@mstdn.io
2020-04-28T13:17:35Z
0 likes, 0 repeats
@glaurungo @pfm ok, well, I guess that means it has to be Erlang or Elixir after all...
(DIR) Post #9uVH9FbkIly2QAVrLk by glaurungo@niu.moe
2020-04-28T13:18:20Z
0 likes, 0 repeats
@wolf480pl @pfm You can build nice distributed stuff in other languages tooerlang/elixir would be somewhat nice for downscaling though.
(DIR) Post #9uVHFgFu8gZinyMYCW by wolf480pl@mstdn.io
2020-04-28T13:19:30Z
0 likes, 0 repeats
@glaurungo @pfm yeah, but AFAIU, in Erlang and co, you get distributedness for free.Like, no matter how you write your program, someone can easily take it and run on a cluster and the program won't even notice, right?
(DIR) Post #9uVHP5OE3mdjMbjvc0 by glaurungo@niu.moe
2020-04-28T13:21:11Z
0 likes, 0 repeats
@wolf480pl @pfm Nah. You don't. I mean, you can write your program that wayand language does push you towards thinking about distributed thingsBut distributed systems are hard problem anyways, so if you don't write it correctly, you'll just end up with stuff being bottlenecked or worse
(DIR) Post #9uVKX1PN2y0RC6kckK by paul@post.lurk.org
2020-04-28T13:56:10Z
0 likes, 0 repeats
@wolf480pl I learned vim through "vimtutor", and so can you.I believe in you!
(DIR) Post #9uVL3yTwwmaFfvbd1U by wasamasa@lonely.town
2020-04-28T14:02:06Z
0 likes, 0 repeats
@wolf480pl Thanks for sharing some screenshots. How is the customizability? I know it's written in Lua and the design distantly resembles Emacs.
(DIR) Post #9uVL8CEPljphTcLvBQ by TeddyDD@octodon.social
2020-04-28T14:02:57Z
0 likes, 0 repeats
@wolf480plHave you tried Micro? Might be editor you'd like. I'm not saying that Howl is bad but micro works in terminal and that's sometimes useful
(DIR) Post #9uVLHKUGRaongg7ZT6 by wolf480pl@mstdn.io
2020-04-28T14:04:35Z
0 likes, 0 repeats
@wasamasa I've only read like 2 pages of the manual, I'll let you know after I read more.
(DIR) Post #9uVLOaqq08G0T08x84 by wolf480pl@mstdn.io
2020-04-28T14:05:54Z
0 likes, 0 repeats
@paul I tried twice, got bored pretty quickly, and then next day I didn't remember any of what I've learnt.I do know a few vim commands though. Enough to use it in a bind, if nano isn't around.
(DIR) Post #9uVY7yEn64IrTmkdg8 by paul@post.lurk.org
2020-04-28T16:28:34Z
0 likes, 0 repeats
@wolf480pl Part of learning is doing a little bit every day. Things won't stick otherwise, and the muscle memory doesn't develop. This also applies to learning emacs too (which I've been learning more recently now).The strategy I did was to try to use Vim for *all* my text editing needs.
(DIR) Post #9uVYCDCPPbfT2Yewym by wolf480pl@mstdn.io
2020-04-28T16:29:22Z
0 likes, 0 repeats
@paul I don't feel like doing it
(DIR) Post #9uVYFAGImyW8nct8xE by paul@post.lurk.org
2020-04-28T16:29:52Z
0 likes, 0 repeats
@wolf480pl But... but... I believed in you.
(DIR) Post #9uVYLuadSJ9ODjcHgG by wolf480pl@mstdn.io
2020-04-28T16:31:06Z
0 likes, 0 repeats
@paul I'm sorry you believed in me.Tbh. get used to it, people are gonna disappoint you every day.I used to believe in people too, but then I grew up.
(DIR) Post #9uVYNWQqFGjbsJnsIa by paul@post.lurk.org
2020-04-28T16:31:22Z
0 likes, 0 repeats
@wolf480pl But I don't want to grow up.
(DIR) Post #9uVYP5zFXQtSR7eDtg by wolf480pl@mstdn.io
2020-04-28T16:31:42Z
0 likes, 0 repeats
@paul your choice
(DIR) Post #9uVYeP8yazYMC6UtJQ by paul@post.lurk.org
2020-04-28T16:34:22Z
0 likes, 0 repeats
@wolf480pl gg
(DIR) Post #9uVZ8jN9wxxfcValQe by brad@weeaboo.space
2020-04-28T16:39:56.865641Z
0 likes, 0 repeats
@wolf480pl >If I had vim or emacs at the age of 8, maybe.I think I learned vim properly around age 18 and emacs maybe around 21 or 22, but I was having fun, so that tends to make things easier.
(DIR) Post #9uVa2f2VFQ3yOibEi8 by poorpocketsmcnewhold@mamot.fr
2020-04-28T16:50:00Z
0 likes, 0 repeats
@wolf480pl I´m I the only one, who´s been able to survive, with just nano ?
(DIR) Post #9uVbKR7pon9ePX8KhM by wolf480pl@mstdn.io
2020-04-28T17:04:27Z
0 likes, 0 repeats
@poorpocketsmcnewhold well... I knew a couple people who use nano as their preferred editor. But in a bind, they can use vi[m], too.If you ssh to other people's boxes, sooner or later you'll stumble upon a system with only vi and ed. No nano.
(DIR) Post #9uVev7JuiS6HYyxvHM by jorge_jbs@mastodon.cloud
2020-04-28T17:44:37Z
0 likes, 0 repeats
@wolf480plI would suggest Kakoune. It is a modal editor, but very different to Vim. I have heard it is easier to learn from scratch than Vim (I knew Vim before so I can't tell). Regarding your requirements:- ✔️ UI: AFAIK it only has a TUI interface.- ✔️ External copy pasting is implemented by the user, so it is very easy to pipe the selection to wl-copy (I can help you set that up).- ❌ Modal editing. But it is very configurable- ✔️ It has special selectors for ()[]{}<>""< etc.