Commit graph

13 commits

Author SHA1 Message Date
Henrik Lissner
383bc03f4c
Bump :ui treemacs
Alexander-Miller/treemacs@10c96c9 -> Alexander-Miller/treemacs@5c01829

The new treemacs-add-and-display-current-project command does what the
old +treemacs/toggle did, now we just need +treemacs/toggle to
do-what-I-mean with respect to projects (if not in a project,
treemacs-add-and-display-current-project unhelpfully aborts with an
error).
2020-05-03 13:39:29 -04:00
Henrik Lissner
b78fc4eb76
Minor refactor & reformatting across the board 2020-04-08 15:30:10 -04:00
James Ravn
e05e452528
Enable treemacs workspace/persp support
With https://github.com/Alexander-Miller/treemacs/issues/592 merged,
treemacs now fully supports perspective mode. That is, each treemacs
buffer is scoped to a perspective and initializes itself using projectile.

This change re-enables treemacs-persp, enables the `Perspectives` scope,
and adjusts the doom treemacs init behavior to support the new
treemacs-persp behavior.

I haven't been able to reproduce the prior errors with melpa so I think
this is safe to re-enable now. In my testing it seems to work
flawlessly, both with and without persp-mode enabled.

Only one issue is that users might need to remove their treemacs persist
file (`~/.emacs.d/.local/cache/treemacs-persist`) after this change if
using persp-mode. I'm not sure if it is necessary since I blew away my
own before testing.
2020-04-02 21:05:49 +01:00
Henrik Lissner
e7fc1d3290
Fix wrong-type-arg: stringp, nocache errors
Fix old usage of doom-project-name and doom-project-root.
2018-09-28 23:49:18 -04:00
Henrik Lissner
53fe7a1f04 Refactor Project API to reflect changes upstream
projectile-project-root no longer returns `default-directory` if not in
a project (it returns nil). As such, doom-project-* functions (and their
uses) have been refactored.

+ doom-project-p & doom-project-root are aliases for
  projectile-project-p & projectile-project-root.
+ doom-project-{p,root,name,expand} now has a DIR argument (for
  consistency, since projectile-project-name and
  projectile-project-expand do not).
+ The nocache parameter is no longer necessary, as projectile's caching
  behavior is now more sane.
+ Removed some projectile advice/hacks that are no longer necessary.
+ Updated unit tests
2018-09-28 21:13:27 -04:00
Henrik Lissner
60c03a78d9
Fix void-function treemacs-current-visibility error
Tried to use a function before it was defined.
2018-08-30 13:11:18 +02:00
Henrik Lissner
cab0ee33d1
ui/treemacs: fix SPC o P (treemacs-find-file)
Would create a blank treemacs window when invoked before a treemacs
window was first initialized.
2018-08-29 02:16:06 +02:00
Henrik Lissner
d0295a26d4
ui/treemacs: show only one project #846
If you use +treemacs/toggle.
2018-08-28 13:28:01 +02:00
Henrik Lissner
519330fcb1
Fix wrong-type-argument: treemacs-workspace error
Caused by changes upstream.
2018-08-10 18:52:20 +02:00
Henrik Lissner
d01926a7c3
Fix void-function treemacs--is-visible? error 2018-08-06 11:18:26 +02:00
Henrik Lissner
c4ec1413dc
ui/treemacs: update function name
Due to change upstream
2018-08-04 12:18:54 +02:00
Henrik Lissner
4213899b01
Refactor out -pcase in +treemacs/toggle 2018-07-01 01:16:37 +02:00
Henrik Lissner
2023aac314
Add +treemacs/toggle command 2018-06-15 03:42:01 +02:00