Markpad icon indicating copy to clipboard operation
Markpad copied to clipboard

Open Folder Functionality

Open tolgayilmaz86 opened this issue 6 months ago • 6 comments

Adding a folder and being able to navigate between different files is really helpful while working on different kind of topics.

tolgayilmaz86 avatar May 12 '26 17:05 tolgayilmaz86

yes it is very indeed needed.

cyrusyamir avatar May 16 '26 05:05 cyrusyamir

Consider using Tolaria, I think it's more suitable for this need

luanfernandes avatar May 18 '26 14:05 luanfernandes

Actually Tolaria is an overkill for me, i just want to be able read my markdowns and close, at best want to switch between files manually or when referenced to each other.

tolgayilmaz86 avatar May 21 '26 07:05 tolgayilmaz86

Coming back to this with your third comment as the actual spec — not an IDE, just "read my markdowns, switch between files manually, or when they reference each other." Three of those four things work now, and most of it landed after you filed this.

Opening several files at once — the Open dialog takes a multi-selection, so a folder's worth of documents can come in together.

Switching between them — they open as tabs. A tab can also be dragged out into its own window (⇧⌘M), which is what you want when two documents need to be side by side rather than one behind the other.

Following references — clicking a relative .md link in the preview opens that document in Markpad rather than handing it to another app, and you can send it to a new tab instead of replacing the current one. #anchor links inside and across documents work too.

Opening a folder as a tree is the one I'm not planning to add. Two reasons, and the second is the one that actually decides it.

The visible half is that a tree has to stay true to the disk: watching the filesystem, reflecting renames, deletions and edits made outside the app, staying responsive on large directories, deciding what to hide. That is a subsystem to maintain forever, not a one-off piece of UI.

The deciding half is what a folder actually contains. Markpad opens Markdown, and now .txt. A real working folder also holds PDFs, Word documents, images, code and data files. A tree that lists them and then refuses to open them is worse than no tree; a tree that hides them is showing you a fiction of your own folder. So "open a folder" quietly becomes "support the formats a folder contains" — and that is exactly the road that turns Markpad into VS Code or Obsidian, which is the kind of tool you already said was overkill for what you want. I would rather say that plainly than leave it open as a maybe.

If the tab-based flow still leaves a gap for how you actually work, I would like to hear which part — that is a more useful thing to fix than the tree itself.

PathGao avatar Aug 08 '26 07:08 PathGao

#963 (open files as a vertical column) and #964 (Open Folder as a tree in the same sidebar) are going in. The tree is read-only and lists only the files Markpad opens; Show All Files shows the rest dimmed and hands them to the system app, which is what Typora and Obsidian do by default. It reads one level at a time and watches only the folders you have expanded, so it stays cheap on large folders. File operations (create, rename, delete) are out of scope.

PathGao avatar Oct 20 '26 10:10 PathGao

Open Folder ended up being added in 2.9.0: https://github.com/sftwrdotdev/Markpad/releases/tag/v2.9.0. Use Open Folder... in the ≡ menu to show the folder as a tree in a sidebar. It lists the files Markpad opens, and "Show All Files in Folder" shows the rest dimmed.

PathGao avatar Oct 29 '26 03:10 PathGao