EtherPK (https://app.etherpk.com) can now also work as a general purpose markdown editor. It can now open a folder that doesn't contain EtherPK graph and view and edit markdown, text and code files in place. We call it Plain Folder mode. In Plain Folder mode, EtherPK reverts to plain markdown for .md files (no wikilinks, tasks or indexing). However, many of the features that make EtherPK a great reading, and editing experience are still there, including a rich markdown viewer and editor, a PDF reading with annotations and EBook reading. Text and code files are supported also. This change makes EtherPK not just an app for working with EtherPK graphs, but a general markdown editor and workspace browser. With so many AI developer workflows now maintaining documentation, agent instruction and formal verification reporting in markdown, a great general purpose markdown reader is a useful tool to have. What's changed exactly? Until now, opening a folder in EtherPK only worked with the EtherPK folder structure. That suits your own notes and knowledge base, where you want a journal, wikilinks and backlinks, using the EtherPK folder layout. It doesn't suit a folder that belongs to something other than EtherPK. For example, a repository's docs folder, AI agent instruction files, or a folder you kept in another editor all have their own layout, and may be limited to plain markdown. So Open folder on the Graphs page now checks the structure inside a folder before on open. A folder that already holds a graph opens as before. For any other folder, it gives you the option to open as a Plain Folder. Choose Open as a Plain Folder and EtherPK opens it with a file tree on the left. It adds nothing to the folder by opening it. What you get The editor is the same one a graph uses, so headings, tables, task lists, code blocks and pictures look the same. What changes is the graph's own syntax: in a Plain Folder, [[wikilinks]] are plain text, and files link to each other with ordinary Markdown links. Files. The tree lists the folder's files, with buttons to create a file or a folder, and right-click to rename, move or delete. Hidden folders such as .git are left out. Go to file (Ctrl+P) finds a file by part of its name, and Search (Ctrl+Shift+F) looks through the text of every file. There's no index to build: Search reads the files when you ask. The Outline lists the open file's headings, and a click goes to one. Favourites keep the files you open most at the top of the tree. Type ]( after a link's text and EtherPK suggests the folder's files, written as a path from the file you're in. A link to a heading, such as planting-plan.md#spring, opens the file at that heading. When a rename or a move breaks links, EtherPK offers to rewrite them so each one leads where it did before. Lists keep their own markers. A file written with * bullets or numbered lists gets the outliner's keys as a graph's - bullets do: Tab nests an item, Shift+Tab lifts it, and Enter starts the next one with the same marker. A numbered list counts on, and Tab on a paragraph leaves it alone. Code files and PDFs A folder like this is rarely only Markdown. A script, a .yaml file or a .json file opens in a plain editor, with its language's colours and in the font and size of a code block in a document. Tab indents, and nothing in the file is drawn as Markdown. PDFs, EPUB books, pictures and recordings open in the same readers a graph has, so you can read, highlight and bookmark the PDFs that sit beside your notes. EtherPK Plain Folder mode preserves your file and folder structure The promise a Plain Folder makes is about the files themselves, because other programs work on them too (e.g. your code editor, Git, and your coding agent). A save changes only the lines you edited. Every other line keeps its bytes, line endings included, so a file written on Windows with CRLF endings keeps them, and a byte order mark stays where it was. When you change one word, Git shows one changed line. A save reads the file first. If another program changed the file since EtherPK read it, the save stops and asks whether to keep your text or take the file's. A file you haven't touched simply shows the new text. A deleted file isn't written back. If another program removes a file you have open, the tab keeps your text and offers Restore the file. Nothing reappears unless you ask. A file EtherPK can't read safely isn't written. A file that isn't UTF-8 opens read-only. So does one over 2 MB, with a button to open it anyway. For example, I opened a file with Windows line endings in a Plain Folder, changed "evening" to "morning", and let it save. This is the whole of git diff afterwards: --- a/guide/watering.md +++ b/guide/watering.md @@ -4,6 +4,6 @@ Beds dry out fastest by the fence. ## In a dry spell -- water in the evening +- water in the morning - mulch the beds after watering - grass cuttings on bed C Every line still ends in CRLF, and the file EtherPK saved is byte for byte the one you'd get by changing that word in any other editor. What EtherPK keeps, and where Some things aren't part of any file: a highlight on a PDF, a bookmark, a favourite, a word you add to the spelling dictionary, or where pasted pictures should go. EtherPK keeps these in a hidden .etherpk folder at the top of the Plain Folder, and creates it only the first time you keep one. A notice tells you when it does. Each of them is a small file of its own. That sounds fussy, but it means two people who each bookmark something in a shared repository add two files, and Git merges them without a conflict. Commit .etherpk to share them, or add it to .gitignore to keep them to yourself. Your place in a PDF, your open tabs and folded bullets stay in the browser. Pictures from other websites wait for you to allow them for the folder, because loading one tells that website your IP address. That choice is also kept in the browser, never read from the folder, so a folder someone else wrote can't switch it on. Where to find them Plain Folders are listed on the Graphs page in a section of their own, apart from your graphs, and at the end of the Graphs menu in the header, with the open one ticked. The Graphs page now marks Folder graphs and Plain Folders (not synced). EtherPK doesn't copy either to another device: use Git, Syncthing or whatever you already use for the folder. Two more ways in: Drag a folder from your file manager onto the Graphs page. Open a single .md file from your file manager, once EtherPK is installed as an app. It opens on its own and saves in place, and Open the folder opens the folder around it. If a folder inside your Plain Folder holds an EtherPK graph, such as a project's documentation, the tree marks it graph. Its pages open read-only there, with a button to open it as the graph it is. Opening a folder needs Chrome or Edge on a computer, or Chrome on Android. Safari and Firefox can't open a folder on your device. There's no version history, sharing or sync through EtherPK for a Plain Folder. Git does those jobs well already. Folding, guide lines and the block menu work on - bullets only for now. The keys work on every kind of list. Open EtherPK in Chrome or Edge, select Open folder on the Graphs page, and choose a folder of Markdown you already have. A repository's docs folder is a good first one: change a line, then run git diff. The Plain Folders page in the user docs covers the rest.
AI NEWS JOURNAL
Hacker News Show HNAI NEWS / JOURNAL
Show HN: Markdown reader / editor and PDF annotations, EBooks, Agent Integration
EtherPK (https://app.etherpk.com) can now also work as a general purpose markdown editor. It can now open a folder that doesn't contain EtherPK graph and view and edit markdown, text and code files in place. We call it Plain Folder mode. In Plain Folder mode, EtherPK reverts to plain markdown for .md files (no wikilinks, tasks or indexing). However, many of the features that make EtherPK a great reading, and editing experience are still there, including a rich markdown viewer and editor, a PDF reading with annotations and EBook reading. Text and code files are supported also. Comments URL: https://news.ycombinator.com/item?id=50610374 Points: 1 # Comments: 0
번역 서비스가 일시 중지되어 원문을 표시합니다.