Logseq for code management

@mentaloid there is a wide range of possible integration with the file system:

  1. being able to manage files and folders from Logseq UI similarly to what Obsidian does, including updating ![]() links when moving assets;

  2. reuse the outliner UI to implement (1) i.e.:

    • the file management could be treared like a special page that can be opened in the sidebar too like the others;

    • files and folders would be blocks with limited editing capabilities i.e. the content can be only a text string used as the file name and eventual #tags would be added to files when the file system supports it (for example via xattr);

    • file-blocks have properties based on files metadata, some fixed (for example duration of a video or size of an image) and some editable where it makes sense, modifying file metadata like xattr;

    • file/folder-blocks should have the same capabilities of normal blocks when applicable including focusing the view on a block, open it in the sidebar, referencing or embedding it and being findable with queries; there should also be special queries operators like (ext pdf), (size 1920 1080) etc;

    • the content of some file formats could be used to generate further hierarchy i.e. children blocks for file-blocks, for example:

      • chapters and bookmarks in PDFs, ePub, HTML and other document formats
      • chapters in video and audio files
      • elements in a audio/video playlist like m3u
  3. given content like query results, a page containing block/page embeds or a block and its children, expose it to other applications/tools by mounting virtual read-only Markdown files using FUSE or a local WebDAV server (useful for example to automate publishing using Markdown-based site generators);

  4. given some kind of hierarchical structure (like indented blocks or relations defined by properties) expose it as folders like in (3); for example query results grouped by a given properties could be mounted as Markdown files grouped accordingly in folders;

  5. if possible integrate with other file managers, for example drag and dropping files and folders between a file manager and file/folder-blocks actually moves files and folders.

5 Likes