Post Az6PSwZNTeHjMj0eAa by MartinaNeumayer@mastodon.social
(DIR) More posts by MartinaNeumayer@mastodon.social
(DIR) Post #Az6G4OfEzCI7fjyKsC by kaia@brotka.st
2025-10-11T12:49:09.287278Z
0 likes, 0 repeats
another #linux question if I may: how do you deal with long and complex folder paths in the terminal?./Psychiatric-Mental Health Nurse Practitioner-Board Certified (PMHNP-BC)/./Psychiatric-Mental Health Nurse Practitioner-Board Certified (PMHNP-BC) Test Book 2025/
(DIR) Post #Az6GBnVB2RyGjRnHPc by kaia@brotka.st
2025-10-11T12:50:29.042731Z
0 likes, 0 repeats
@mezzodrinker but there are two, it won't autocomplete in bash
(DIR) Post #Az6GJZlpyVh4ShIOIa by kaia@brotka.st
2025-10-11T12:51:02.964589Z
0 likes, 0 repeats
@mezzodrinker maybe bad example tbh
(DIR) Post #Az6GL2Mp8gkvRTICRc by mezz@mstdn.games
2025-10-11T12:51:51Z
1 likes, 0 repeats
@kaia @mezzodrinker If you doubletap tab while there are ambiguous paths, it will show you the possible matches, you can then type the next letter and press tab again.
(DIR) Post #Az6GpCW1yJF3bXyxPs by kimapr@ublog.kimapr.net
2025-10-11T12:56:33.194368Z
1 likes, 0 repeats
@kaia @mezzodrinker you can Tab it for a partial autocomplete, then type some more characters to disambiguate, then Tab againOr switch from bash to zsh, there you can just Tab Tab Tab Tab and you’ll eventually get to the desired name
(DIR) Post #Az6GsklD6g6WgKmBcW by sampo@pleroma.soykaf.com
2025-10-11T12:58:19.692907Z
1 likes, 0 repeats
@kaia bind TAB:menu-complete
(DIR) Post #Az6GtJeLOCPMtAphHE by monkee@chaos.social
2025-10-11T12:55:32Z
1 likes, 0 repeats
@kaia @mezzodrinker autocomplete should show you the two up to where they differ. Just type the next character - space in this occasion for the second folder. and tab again
(DIR) Post #Az6GuVuBJF2vBioOEi by BitBun@raru.re
2025-10-11T12:52:19Z
1 likes, 0 repeats
@kaia @mezzodrinker Usually tab completes what it can that is common between the two, printing the two file names that are ambiguous. Then I type the disambiguating character to select between the two, then tab again to complete it.
(DIR) Post #Az6IUzAE6SMgJOGuKe by hiddenalpha@mastodon.social
2025-10-11T13:10:21Z
1 likes, 0 repeats
@kaia Glob patterns can be handy too:echo Psy*Test*echo Psy*BC?Same works for any command. Like with cd:cd Psy*BC?In my example "*" stands for several chars and "?" says here's exactly one char. shell globs have some more features like sequences, sets etc.
(DIR) Post #Az6IXBMJjWqSiGyU3k by kaia@brotka.st
2025-10-11T13:16:45.115601Z
0 likes, 0 repeats
@hiddenalpha oh that is new to me, thank you!!
(DIR) Post #Az6MVgu5sZkpmjJl1E by kimapr@ublog.kimapr.net
2025-10-11T13:57:09.706124Z
1 likes, 0 repeats
@hiddenalpha @kaia you can also type a glob and then press Tab to complete it into a non-glob ! that will ensure that you only hit one file instead of possibly multiple and you know which oneThough, having one thing expand to multiple arguments can sometimes be useful, and globs are one way to do this but there is also {}for example, you can enterecho Sus.{png,txt,mp4} meow{-2,}.txtAnd it’s like enteringecho Sus.png Sus.txt Sus.mp4 meow.txt meow-2.txt
(DIR) Post #Az6PSwZNTeHjMj0eAa by MartinaNeumayer@mastodon.social
2025-10-11T14:34:17Z
1 likes, 0 repeats
@kaia With tabulator key.
(DIR) Post #Az6QKpNWQixuhS9r2O by zstg@fedia.social
2025-10-11T14:38:33.796Z
1 likes, 0 repeats
@kaia tab complete and zoxide (thanks for the video @thelinuxcast!)
(DIR) Post #Az6TaanwgNjLznj5PM by meeper@udongein.xyz
2025-10-11T15:20:39.858915Z
1 likes, 0 repeats
@kaia Wildcards?* - matchws any Character 0 and infinity times so like Psy*Test\ Book\ 2025? matches any (single character)You'd probaby need regex for some stuff and fine yourself using Find+xargs (or something less shitth like fd)
(DIR) Post #Az6bbzRvL36qLxbS6q by taak@troet.cafe
2025-10-11T16:50:04Z
1 likes, 0 repeats
@kaia Use the fzf shell plugin. Then hit alt-c fuzzy search to your destination directory.https://junegunn.github.io/fzf/shell-integration/
(DIR) Post #Az8p23qLJPz1EJhrou by finlaydag33k@social.linux.pizza
2025-10-12T18:27:13Z
1 likes, 0 repeats
@kaia I use "nushell" which allows me to just press `tab` and then I can just select whichever option I want with the arrow keys and pressing "enter".
(DIR) Post #Az9vpLrJud8gB40hvc by AndrzejWasowski@social.itu.dk
2025-10-13T07:09:38Z
1 likes, 0 repeats
@kaia Also: fzf https://github.com/junegunn/fzf
(DIR) Post #AzEh4Idrd1Fr1PBa2S by nobody@mastodon.acm.org
2025-10-15T14:29:28Z
1 likes, 0 repeats
@kaia$ cat "$(fzf)"$ cat ~/.config/nnn/.selection | xargs -n1 -0 echonot saying is good ux tho =/