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?

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

    Update: this was kinda driving me insane again and I was about to write a bug report, but thankfully I didn’t have to, because I found out while I was writing and doing some digging, that an option for this exists already! (oopsie)

    Go to:

    Settings > Configure Kate > Projects > Session Behavior

    And check the box for “Restore Open Projects” to enable it, now when you reopen a session that had a folder opened in it, the folder will show up once again in the Projects view.

  • Ephera@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    6 months ago

    I haven’t done much with sessions, but yeah, I do think, they only save the opened documents.

    A project would certainly work for this. If you’re using Git, it will auto-detect Git repos as projects, so personally I’ve never actually created such a project file myself (although reading through that documentation, there does seem to be some useful options there). This looks for example like this:

    Alternatively, you can also use the File System Browser plugin. That one might be disabled by default, I’m not entirely sure. It gives you a little file-manager-like side panel, with which you can practically navigate through the entire filesystem:

    The button I’ve highlighted with the red arrow, might also be hidden by default, but is really useful here, as it allows you to jump to the parent directory of the document you’re currently viewing.

    • QuazarOmega@lemy.lolOP
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      6 months ago

      Thanks for the detailed answer! The filesystem browser trick is pretty neat, but still I feel that this is less than ideal as I have to climb up the tree each time I reopen the session.
      I also tried the “project” solution and it seems like it doesn’t work as I expected it, for example I put a .kateproject file in the parent folder containing this:

      {
        "name": "Genshin web cache",
        "files": [
          {
            "directory": "webCaches",
            "recursive": 1
          }
        ]
      }
      

      I thought I’d find this project in Kate’s welcome screen, but it’s not there, am I missing something?


      (very late) EDIT: I had made a mistake there, I placed the file in the wrong directory, it actually works as intended and I can see the file tree without issue in this way


      By the way, I think this is worth opening a feature request for, it’s way too hard to use for no apparent reason imo