reddit / emacs

Help moving from projectile+perspective to project.el+<something>?

hairlesscaveman · 2022-12-16 14:55
Hey all I'm toying with using `project.el` in place of `projectile`, since I barely use any of projectile's features other than switching between known projects. One thing I'm struggling with is the workflow element. Along with projectile I have `perspective` and `persp-projectile`, and I have bound `p` in the `projectile-command-map` to `projectile-persp-switch-project` which gives a great experience when flipping back and forth between related code repositories, something I have to do often. Unfortunately I can't seem to replicate this great experience. I briefly tried using `persp-mode` with `persp-mode-project-bridge` but there doesn't seem to be an analogue for `projectile-persp-switch-project`. What this means is that using Projectile I can have a 2-window split in one "project" and 6 in the other, and flipping between them is nice and smooth. Whereas in Project each time I switch the flow is broken, since the default action is to present a menu and maybe open a single file. I'd love to hear from people who maybe use Project+<something> and have a similar workflow/experience to what I'm aiming for. If it helps, my config is based on vertico+consult+embark. As always, thanks in advance for your suggestions/support!
mclearc · 2022-12-16 15:58
You might look at my tabspaces package, which integrates with project.el and (the built-in) tab-bar.el. It should provide the kind of workflow you're looking for. https://github.com/mclear-tools/tabspaces
Extension_Try_6870 · 2022-12-16 18:24
I enjoy using https://github.com/fritzgrabo/project-tab-groups which also integrates project.el and tab-bar.el
[deleted] · 2022-12-16 20:32
[deleted]
sebhoagie · 2022-12-16 21:03
FWIW I bound `project-switch-project` to a single key (F2) and basically use it to jump to a file (F2 -> f) or open vc-dir (F2 -> v) etc. I don't really "switch projects", just move between files/windows. Then again, I don't keep a curated window setup, so that influences my (extremely basic) workflow.
hairlesscaveman · 2022-12-17 07:41
Would this work without tabs enabled?
bbenne10 · 2022-12-17 12:07
You can turn off tab display and it works just like `persp-mode`. Tabspaces is pretty great!