Fork me on GitHub
#emacs
<
2017-04-07
>
ag00:04:18

@qqq what do you mean, can you clarify?

ag00:04:50

do you mean directory structure or single directory in dired?

ag00:04:03

you can use swiper/`helm-swoop` - is that close to what you trying to get?

qqq02:04:12

@ag: imenu right now only 'indexes' curent buffer; I want a way to use imenu to index all the .clj .cljc *.cljs files in src/ ...

bja15:04:43

@qqq you can using helm to load all of those files in the buffer

bja15:04:15

I do this from spacemacs, using helm-projectile-find-file and a regex to filter, M-a to select all the results, and then RET to load them in buffers. From there, I use helm-imenu-in-all-buffers to jump around the project

bja15:04:56

if you don't use helm, I'm assuming you could lift whatever source code underlies helm-imenu-in-all-buffers to adapt to whatever display system you'd prefer

qqq19:04:40

@bja: I tried something like that, writing a function to recursively open all the files in src/ .....

qqq19:04:02

problem is, when I'm done editing a file, I'm so used to hitting buffer-kill that very soon, my most frequently edited fiels are no longer open in buffers 😞

qqq19:04:20

this is just bad finger memory from vim, say I'm editing foo.clj

qqq19:04:26

then I need to open bar.clj

qqq19:04:41

so what I do is (1) open bar.clj (2) make changes, (3) I need to jump bak to foo.clj -- and I do that by killing bar.clj

qqq19:04:52

so then, I jump back to foo.clj, but not bar.clj is closed

dpsutton19:04:56

get C-x b built into your muscle memory

dpsutton19:04:08

list buffers. easy navigation, can start typing to match against open buffers, etc

dpsutton19:04:16

don't kill buffers, there's lots of memory

dpsutton19:04:33

also, remembers recent buffers so you could go back to them easily if you did kill them

rmuslimov19:04:15

I’d also recommend use (global-set-key [f11] 'ibuffer), nice list of opened buffers (search,filter,select functionality)

rmuslimov19:04:22

easy to remember

ag20:04:25

@qqq don't kill buffers, bury them