Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
oalders
on July 8, 2024
|
parent
|
context
|
favorite
| on:
Entering text in the terminal is complicated
Or even just bind it to ctrl-e in bash:
bind '\C-e: edit-and-execute-command'
kragen
on July 8, 2024
[–]
that sounds horrific. every time you tried to go to the end of the line you'd get interrupted by launching an editor!
dgfitz
on July 8, 2024
|
parent
|
next
[–]
I always just use the home and end buttons for that kind of thing.
kragen
on July 8, 2024
|
root
|
parent
|
next
[–]
i don't even know where they are without looking at the keyboard. then when i try to press them half the time i accidentally press insert or print-screen instead
aendruk
on July 9, 2024
|
root
|
parent
|
next
[–]
When I have this problem I remap the key I needed to a location that does work for me.
kragen
on July 9, 2024
|
root
|
parent
|
next
[–]
now you have two problems
oalders
on July 8, 2024
|
parent
|
prev
[–]
I have `set -o vi` so, `esc` and `$` takes me to the end of the line. `ctrl-e` is unused for me unless I bind it to something I think is useful.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
bind '\C-e: edit-and-execute-command'