Fork me on GitHub
#emacs
<
2022-09-29
>
jjttjj16:09:29

Is there a way to make find-file with ido mode collapse empty directories, like how github will just show com/mydomain as a path if there's nothing else in com?

Drew Verlee20:09:26

any evil users have a way to yank a keword. i can yank a word (it doesn't grap the : with yiw.

Drew Verlee21:09:06

copy-sexp seems to work fine

Drew Verlee21:09:28

ok now how to i just replace a keyword with the one i just yanked.

tomd21:09:37

take a look at evil-inner-symbol and evil-a-symbol bound to io and ao respectively. I'm not entirely sure why they're included in evil (they're not in vim by default) but they're so useful in code buffers.

👀 1
Drew Verlee07:09:30

ty. ill take a look

👍 1
Drew Verlee18:09:55

@UE1N3HAJH how do i use these functions? the docs aren't clueing me in "inner symbol" "selects an inner symbol". Maybe im not invoking it correctly...

tomd19:09:58

So you would do yio on a keyword to copy it and viop on another keyword to replace it with the first.

👍 1
Drew Verlee04:10:53

ill have to find a way to trim this down to like two keys, i do this all the time.