abbadon420@sh.itjust.works to Ask Lemmy@lemmy.world · 2 days agoLinux question: I like to browse using ls. Than when I find what I'm looking for, I would like to directly move there with cd without having to retype the path. Is there an elegant solution for that?message-squaremessage-square50fedilinkarrow-up1119arrow-down11file-text
arrow-up1118arrow-down1message-squareLinux question: I like to browse using ls. Than when I find what I'm looking for, I would like to directly move there with cd without having to retype the path. Is there an elegant solution for that?abbadon420@sh.itjust.works to Ask Lemmy@lemmy.world · 2 days agomessage-square50fedilinkfile-text
Maybe there is a tool that does that? Maybe I’m doing this all wrong and there is a different way I should browse?
minus-squareabbadon420@sh.itjust.worksOPlinkfedilinkarrow-up6·2 days agoI had already found ctrl+a that brings me back to the front of the line. It’s bit more convenient for my hands than home.
minus-squareNeatNit@discuss.tchncs.delinkfedilinkarrow-up5·2 days agoI have a really strong muscle memory for Home so it’s super convenient to me, but ctrl+a sounds just as good.
minus-squareandyburke@fedia.iolinkfedilinkarrow-up3·2 days agoctrl-a: beginning of line ctrl-e: end of line ctrl-k: delete rest of line from cursor ctrl-u: delete line before cursor these are helpful in these situations, as well.
I had already found ctrl+a that brings me back to the front of the line. It’s bit more convenient for my hands than home.
I have a really strong muscle memory for Home so it’s super convenient to me, but ctrl+a sounds just as good.
ctrl-a: beginning of line ctrl-e: end of line ctrl-k: delete rest of line from cursor ctrl-u: delete line before cursor
these are helpful in these situations, as well.