Skip to content

Commit

Permalink
[Dir Flattening] Disable feature for remote directories.
Browse files Browse the repository at this point in the history
Fixes #205
  • Loading branch information
Alexander-Miller committed Feb 15, 2019
1 parent 6a1ba86 commit 42296cc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.org
Expand Up @@ -281,6 +281,8 @@ your home directory when there is no node or path at point. That means that vari
~magit-status~ or ~helm-projectile-ag~ will correctly act based on the current directory or project context.
** Tramp Support
Treemacs supports projects on remote directories, e.g. ~/scp:remote-server:path/to/directory~.

However tramp support has some restrictions: ~treemacs-use-collapsed-directories~ has no effect on remote directories.
** Org support
Treemacs supports storing links to its file nodes by means of ~org-store-link~.
** Additional Packages
Expand Down
4 changes: 4 additions & 0 deletions src/scripts/treemacs-dirs-to-collapse.py
Expand Up @@ -8,6 +8,10 @@
LIMIT = int(sys.argv[2])
SHOW_ALL = sys.argv[3] == 't'

if ROOT.startswith("/ssh:") or ROOT.startswith("/scp:"):
print("()")
sys.exit(0)

# special workaround for windows platforms
# the default `join' implementation cannot quite deal with windows
# paths in the form of "C:/A/B" & "C:/A/B/C", joining them as
Expand Down

0 comments on commit 42296cc

Please sign in to comment.