Often i have a need to open a file from the other projectile-based project in another window. I'm using helm
with projectile, so there's a function helm-projectile-switch-project
(which i guess by default is bound to C-c p p
). I'd like to join it with std C-x 4
command, i.e to have a function which opens a file from a different project in another window, similar to C-c p 4 f
. I couldn't find anything like this in the helm codebase and current implementation for projectile-find-file-other-window
didn't shed the light how i can do this myself.
1 Answer
You don't need another command to open files in other window. Just use the usual command, move cursor to a file and press C-c o to open in other wimdow.
-
This is great! But, where is
C-c o
documented? How could I have found this in Emacs's docs (and where can I find other such keys)?– GlyphCommented Oct 26, 2017 at 23:17
other-window
which display any output in a different window, like(other-window (function-which-returns-something))
?(with-selected-window (select-window (split-window-horizontally)) (switch-to-buffer your-buffer) (message "Hello or do something else"))
.