[Github-comments] [geany/geany] Rpg sidebar tree (see #259) (#1813)

Thomas Martitz notifications at xxxxx
Wed Apr 4 06:07:10 UTC 2018


This proves that I'm not good at documenting such things for end users :-)

There is additional confusion since your example has two foo folders and the project is named foo as well. I'll rename to illustrate:

```
/data -- the raid array mount point
    foo
        bar -- the git tree and the project base dir in baz.geany
             src
                 xx.cpp
                 lots more source
        baz.geany -- project name renamed from foo to baz
        dev_build -- out of tree build dir
              foo -- the executable
              test_output -- unit test output file
              lots more stuff the build makes
```

So accordingly, in your next example foo/src becomes bar/src.

If xx.cpp and test_output are open, then it's displayed as follows:

```
baz
  src
    xx.cpp
/data/foo/dev_build
  test_output
```

This is because of the following rules:
- The directory of a filename is folded as much as possible
- if two or more documents have common parents, then a tree is formed at that parent (repeat for any common parent encountered)
- If a project is open, then the project's base path will get a separate tree node at the root (labeled after the project). This happens regardless of whether parts of the project base path has common parents with open documents outside of the project. Folding of subdirectories (below the project base path) is performed if possible.

Compare to the situation when there is no project open:


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/1813#issuecomment-378490609
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20180403/5c1f946f/attachment.html>


More information about the Github-comments mailing list