Treemacs: Switch workspace automatically?

Created on 29 Apr 2020  路  2Comments  路  Source: Alexander-Miller/treemacs

Hi, I was wondering if treemacs can switch from Workspace A/Project A, to WorkspaceB/ProjectB when I do a projectile-switch-project.
I have treemacs-follow-mode enabled, but it doesn't seem to work in this context...

Would be really neat! I think even the solution in #489 would be sufficient for this.

Enhancement Workspaces

Most helpful comment

(add-hook 'projectile-after-switch-project-hook 'treemacs-display-current-project-exclusively)

yup - awesome! This works really well. Thanks!

All 2 comments

Does addingtreemacs-display-current-project-exclusively to projectile-after-switch-project-hook work?

You'll have to update treemacs, the commands has just been added today.

(add-hook 'projectile-after-switch-project-hook 'treemacs-display-current-project-exclusively)

yup - awesome! This works really well. Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ianpan870102 picture ianpan870102  路  4Comments

ianpan870102 picture ianpan870102  路  7Comments

XO39 picture XO39  路  6Comments

fiveNinePlusR picture fiveNinePlusR  路  12Comments

maxwedwards picture maxwedwards  路  3Comments