tag:blogger.com,1999:blog-5304409.post3477601284888633606..comments2024-03-17T16:17:20.145-07:00Comments on Amit's Thoughts: Emacs: Find files anywhereAmithttp://www.blogger.com/profile/12159325271882018300noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-5304409.post-68130182165212515822014-06-02T10:10:39.252-07:002014-06-02T10:10:39.252-07:00Thanks Anonymous 3! I've made the change, both...Thanks Anonymous 3! I've made the change, both in my emacs setup and in the blog post. I kept thinking there should be such a function but I couldn't find it, so I ended up writing my own. :-)<br />Amithttps://www.blogger.com/profile/12159325271882018300noreply@blogger.comtag:blogger.com,1999:blog-5304409.post-59773663124528681892014-06-02T09:59:31.171-07:002014-06-02T09:59:31.171-07:00This is clever. I like this idea.
Btw, you can re...This is clever. I like this idea.<br /><br />Btw, you can replace amitp/shorten-file-name with the more general abbreviate-file-name.<br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5304409.post-75668496618735742222014-06-02T07:24:04.954-07:002014-06-02T07:24:04.954-07:00Anonymous 1: thanks! I'll take a look at adapt...Anonymous 1: thanks! I'll take a look at adaptive sorting.<br /><br />Anonymous 2: yes, exactly. Since I'm using this to replace switch-to-buffer, I want to just type something and press return without idling for the results to pop up. Preloading the results of locate/mdfind into a local variable eliminates the delay.<br />Amithttps://www.blogger.com/profile/12159325271882018300noreply@blogger.comtag:blogger.com,1999:blog-5304409.post-24916276965122940482014-06-02T04:58:17.626-07:002014-06-02T04:58:17.626-07:00" Unfortunately I couldn't get the querie..." Unfortunately I couldn't get the queries to run faster than 300 milliseconds, and it didn't feel fast enough to run on every keystroke. "<br /><br />That's why helm has idle delay. There is no point in running the search on every keystroke if you keep typing, only if you stop for a while which delay is configurable.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5304409.post-69696074559948168052014-06-02T00:43:07.110-07:002014-06-02T00:43:07.110-07:00For sorting you may want to try enabling adaptive ...For sorting you may want to try enabling adaptive sorting in helm. It stores how often you select certain items and the more often you select a file the higher it will be in the candidate list.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5304409.post-83203533204820099002014-06-01T22:29:43.767-07:002014-06-01T22:29:43.767-07:00There are lots of other details I've left out....There are lots of other details I've left out. There are some text files that Mac OS doesn't recognize as text, so I've made my cron job pick those up as well. I sorted buffers by project, with my own project system that I use with tabbar. Helm-recentf automatically removes duplicates once you start typing. I do some renaming of symlinked files that I normally keep in ~/Dropbox but I want emacs to see them in another location. I have the shell script exclude a whole bunch of directories that I don't care about.Amithttps://www.blogger.com/profile/12159325271882018300noreply@blogger.com