milibare.blogg.se

Emacs for mac search
Emacs for mac search













emacs for mac search

Helm-recentf automatically removes duplicates once you start typing. I sorted buffers by project, with my own project system that I use with tabbar.

#EMACS FOR MAC SEARCH MAC OS#

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. There are lots of other details I've left out. Another cute trick: in browsers, Cmd-Shift-T opens a recently closed tab I do something similar in Emacs: I can now use Cmd-T somewhat like I do in a browser, where I open a new tab and then start typing in a url or query. I've needed other heuristics as well (some posted in comments), and I continue to refine those. Combined with recentf, this means that the "working set" of recent files is rather short, and I don't have to type much to get to the file I want. (the real script also includes all the other filename extensions that aren't classified as public.text) Definitely better. Mdfind -onlyin $ HOME "kMDItemContentTypeTree = 'public.text' & kMDItemFSContentChangeDate > \$time.today ( -4 ) & kMDItemFSContentChangeDate \$time.today ( -14 ) & kMDItemFSContentChangeDate \$time.today ( -45 ) & kMDItemFSContentChangeDate ~/.global-file-list.txt

emacs for mac search

(mdfind -onlyin $ HOME "kMDItemContentTypeTree = 'public.text' & kMDItemFSContentChangeDate > \$time.today ( -1 ) " \ There are other emacs packages to do this but I ended up with my own custom setup to make this: 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. I was hoping that I could make mdfind fast and precise enough that I'd use it all the time. As part of that, I improved my Mac OS mdfind setup to include all my text files. In a previous post, I described my previous attempt, using helm-for-files to open files from many different directories, using locate ( mdfind on Mac). I also want to find files without having to switch folders first, because I work on lots of small projects in different folders. Instead, I want the command to depend on whether I'm switching to a file or a non-file. I don't want to have to remember whether a file is open. In the default Emacs setup, the command to switch to a file depends on whether the file is open: A typical way to use Emacs is to open lots of files as buffers.















Emacs for mac search