Fork me on GitHub
#spacemacs
<
2018-02-27
>
ag00:02:57

@pablore, that's why I don't use neotree or treemacs. I use direx. It lets me have a tree in a buffer of my choosing. I also wrote a function to open file from the tree in any surrounding buffer. e.g. o h - opens the file placing it on the left side, o j - in the bottom, and so on. Here's spacemacs layer for that:

spfeiffer09:02:15

Using „2 l“ as told in the comments?

spfeiffer10:02:33

Yes, it works. It is “<window number> l“.

ag22:02:46

this turned out to be is especially handy when used with Chrome dev tools

practicalli-johnny22:02:29

That's cool. Is that the Emacs plugin for Chrome? Or is there a specific thing for the Slack app?

ag22:02:26

nope...

ag22:02:39

this is of my own baking. basically I'm calling emacsclient with custom frame and invoking a function, but before that I'm emulating "Select All" + "Copy" and then when frame opens, I yank what's in clipboard, then there's a minor mode that when pressed C-c C-c puts the buffer content back into clipboard, and kills the frame, then the script pastes it (into previous app), essentially overwriting what was previously selected by "Select All"

ag22:02:06

this doesn't work in Linux though.. I have to figure out yet how to make that work in Linux

ag22:02:10

this is for OSX

ag22:02:49

thanks,... it's a bit "dirty" right now, it works as part of my Hammerspoon config, and not documented at all

ag22:02:31

I guess one can use applescript to get the same thing to work without Hammerspoon