There’s something I don’t understand here: why when I do “Open Folder” and then save the session, closing it and opening it again I’m left with nothing?
Instead, if I open some files in subdirectories, the next time I reopen the session I’m just presented with the parent folders of those files, but I really needed to have the topmost directory to be able to access the whole tree structure whenever I reopen the session.

Is it possible? Or do I have to make a project?

  • Ephera@lemmy.ml
    link
    fedilink
    arrow-up
    2
    ·
    11 months ago

    Well, in the documentation you linked, it says:

    The idea is that you never have to open a project manually, this is even not supported at all.

    So, I’m guessing, you’re supposed to re-open files by using a session, and then because those files are underneath a certain project, the project plugin will show the appropriate file tree from underneath the project file. Presumably, you could also have a session with files from multiple projects, for example.

    And, to be honest, I’m not even sure, if Kate itself has a concept of a directory, or if this just exists in those plugins. I mean, it will have the concept of the “current working directory”, like any process does, but I’m not sure, if you’d want to use that for this. You could, for example, be navigated into a different directory on the Terminal plugin than in the File System Browser plugin.

    I mean, having a discussion with the maintainers is probably not a bad idea. I do feel like there’s some edges that could be rounded with sessions in general, but yeah, all I’m saying is that there is probably a reason why it’s like that…

    • QuazarOmega@lemy.lolOP
      link
      fedilink
      arrow-up
      2
      ·
      11 months ago

      You have a point, I should try again to get it to work first.

      And, to be honest, I’m not even sure, if Kate itself has a concept of a directory

      Is it possible that it doesn’t? When I do “Open Folder” it does exactly that: open the folder and allow me to access all subdirectories and files within it, I feel like there is extra logic implemented to ignore directories as elements to remember and only count the files, but I don’t know tbh, I’ll be asking and see what they say

      • Ephera@lemmy.ml
        link
        fedilink
        arrow-up
        2
        ·
        11 months ago

        Hmm, yeah, interesting. Especially that it opens the directory in the Projects view rather than the file system browser plugin view (even if there is no .kateproject or .git/ in the directory).

        I just had a bit of a play with it and, contrary to my expectation, it actually seems like the directory for the File System Browser plugin is remembered per session. That feels like it would actually be exactly what you’re looking for…? 🙃

        • QuazarOmega@lemy.lolOP
          link
          fedilink
          arrow-up
          2
          ·
          11 months ago

          Tried now, you’re right! But then it navigates to the file I opened rather than keeping the view starting from that directory I chose:

          I have to close the file and climb up the tree to get what I want the next time I open it T-T