Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Q: can treemacs tree contains links to files/urls ? Can a subdirectory not be a project in its own right? #718

Closed
rileyrg opened this issue Sep 5, 2020 · 3 comments

Comments

@rileyrg
Copy link

rileyrg commented Sep 5, 2020

Is it possible to link files? eg link to most frequently accessed emacs project files.

* Emacs Related
 ** Emacs Editor
  - path :: ~/.emacs.d
  *** Important Files
   **** [[Custom][elisp/custom.el]]
   **** [[Config][config.org]]
 ** Treemacs
  - path :: ~/.emacs.d/straight/repos/treemacs

Can any node be a file link?

In addition, I would like to be able to have a project pointing to a sub project and this doesnt seem possible. Is it?

* Emacs
** Config
 - path :: ~/.emacs.d
** Lessons
 - path :: ~/.emacs.d/elisp/lessons

It complains that ~/.emacs.d/elisp/lessons appears in the workspace more than once. Which it does because its a sub sub directory of the first project but it would be nice to have it in the tree as its own project. Or, whichi might the case, should I just use treemacs bookmarks to jump to that sub project node?

Currently Im happy to create a workspace and then just add different sub directories of my top level project as projects but of course that means I can't browse all files at the top level but It's not so critical as I can dired for that anyway.

@rileyrg rileyrg changed the title Q: can treemacs tree contains links to files/urls ? Q: can treemacs tree contains links to files/urls ? Can a subdirectory not be a project in its own right? Sep 5, 2020
@Alexander-Miller
Copy link
Owner

Is it possible to link files? eg link to most frequently accessed emacs project files.

There's a project to integrate treemacs with Emacs' built-in bookmarking abilities at https://github.com/Jasu/treemacs-bookmark, though I am not sure just how complete and functional it is. I intend to pick it up myself to migrate it to the new extension api after #677 is done.

In addition, I would like to be able to have a project pointing to a sub project and this doesnt seem possible. Is it?

No that's not possible, and won't be for a very long time.
Let's put it this way: if treemacs was a database schema then a file's absolute path would be treated as its UNIQUE PRIMARY KEY. So it's not that I don't want to lift this restriction, it's that doing so requires a massive refactoring touching almost every corner of treemacs' internals, with a dozen edge cases around every such corner. So if I ever get around to working on this it'll mean I'm done with all my other ideas.

@rileyrg
Copy link
Author

rileyrg commented Sep 7, 2020 via email

@stale
Copy link

stale bot commented Oct 7, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Oct 7, 2021
@stale stale bot closed this as completed Oct 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants