reddit / emacs
Aweshell: Awesome shell extension based on eshell with multiple extra features
de_sonnaz · 2022-11-04 07:19
mysockinabox · 2022-11-04 09:34
Aweshome!
machineperson · 2022-11-04 11:28
Looks interesting. There could be space to extend eshell even more.
jvillasante · 2022-11-04 12:01
Is it on melpa?
gammarray · 2022-11-04 12:04
Been using this for years. It’s a good one.
[deleted] · 2022-11-04 12:28
[deleted]
jigarthanda-paal · 2022-11-04 13:58
I use it once in a blue moon
oantolin · 2022-11-04 14:30
I use transpose-chars all the time! Don't you make typos?
mmaug · 2022-11-04 16:59
Daily. Finger (nb: singular) doesn't always hit the keys in the right order. 🤔 Emacs has rules about what keys a major or minor mode can use, but in this case, the user can control where they want the feature to appear. As an old VT-100 user, I don't map many keystrokes, and rely upon `ESC x` (ie, `M-x`) to execute many commands (30+ years of muscle memory and an old brain that won't fight it)
doomvox · 2022-11-04 18:05
I looked at eshell once, but didn't like that it didn't know anything about my .bashrc settings. I'd rather not have to define stuff in two places to make sure my emacs shell keeps working like my terminal shells, so I keep staying with "ESC-x shell".
Also you know, the biggest problem with emacs is it tries to do too much inside one process-- anything you can run with an external process (like a sub-shell) is an improvement.
[deleted] · 2022-11-04 18:24
[deleted]
[deleted] · 2022-11-04 18:26
[deleted]
mmaug · 2022-11-04 20:11
It's not `ESC-x`, it's `ESC x`. 😏
That is, unlike META, SHIFT, et al. you press the keys in sequence, not concurrently. It would be a long reach, but the VT-100 terminal had no chord keys, so ESC as a prefix key was a thing. If you dig into Emacs keyboard handling, there a significant chunk of work done to emulate concurrent cord presses with META with sequential key sequences starting with ESC. It was made more difficult because the cursor and function keys all transmitted a series of keys starting with ESC as well 🤯
karthink · 2022-11-04 21:58
Do you use transpose-chars in its default form? To fix typos immediately after committing them I'd need to transpose the two chars before point, transpose-chars transposes the chars around point instead, so I have to do `C-- C-t`. I don't understand the merit of doing it this way.
oantolin · 2022-11-04 23:06
I do use it in its default form. There is a special case where the problem you describe does not arise: if you are typing at the end of a line, then `C-t` *does* transpose the last two characters! So I find I almost never need to use `C-- C-t`: I tend to have a text-entering phase where I'm almost always typing at the end of a line and then a text-editing phase where I'm OK with having to position point between the characters I want to transpose.
oantolin · 2022-11-04 23:08
If I've typed, say 7 letters of a word and got the last 2 of those wrong, a quick `C-t` feels faster than `M-<backspace>` and retyping the 7 letters again, but definitely this is personal: you probably just type a lot faster than I do.
oantolin · 2022-11-04 23:12
On the other hand, for case changing commands the `M-- M-c` problem did prove to be too annoying so I wrote some new case change commands that if you are at the end of a word change the previous word rather than the next one.
karthink · 2022-11-04 23:35
> if you are typing at the end of a line, then C-t does transpose the last two characters!
Oh, that's very useful. Two decades of Emacs and I never noticed that!
hangingpawns · 2022-11-05 04:39
How do I scroll up in eshell or aweshell, e.g., to copy text with the cursor?
celeritasCelery · 2022-11-05 14:59
I am honestly surprised that you find `C-t` faster than double backspace. I always assumed it would be too slow for real world usage. But if you find it is an improvement, maybe I will have to try it out.
oantolin · 2022-11-05 16:28
It's not `C-t` vs `<backspace> <backspace>`: with the backspaces you still have to retype the two letters in the correct order, so it's one easy key combination versus _four_ non-combo keystrokes. I do think control + t is slower to type than _one_ key, maybe even slower than _two_, but it's not slower than _four_ of them *for me*. But this obviously depends on how quickly you type single keys and how quickly you type key combinations: if you type much faster than me it can certainly be the case that you can hit four separate keys faster than you can hit a single control + t.
Just to be clear: I'm only talking about noticing the typo immediately after making it, and when I'm at the end of a line (not typing in the middle of a paragraph, but at the end). That's the case when a single `C-t` fixes the typo without any need to move point first. Fortunately I notice most of my typos immediately after making them. If instead the transposed characters are somewhere in the middle of a longish word, I'm more likely to delete the whole word and retype it, or to use ispell.
[deleted] · 2022-11-06 15:08
[deleted]
[deleted] · 2022-11-06 15:10
[deleted]
[deleted] · 2022-11-06 16:00
[deleted]