Skip to content
Snotra Agent ManualThis manual describes Snotra Agent 1.33.0

Look at a file

Click a file in the tree and the middle column shows it. Each kind of file gets a view of its own; the header above it names the file and offers what that view can do.

An open folder. The preview shows files from that folder only.

Since 1.18 The preview remembers the files it showed, like a browser. ‹ and › in front of the file name go back to the file before and forward again; the tree selects the file along with it.

  • Every way counts that brings a file into the preview: a click in the tree, Filter Files…, a link in a Markdown document, a link in a chat answer, Show changes.
  • Shortcuts: Cmd+[ and Cmd+] on macOS, Alt+← and Alt+→ on Windows and Linux — also in View › Back and View › Forward. The side buttons of a mouse work over the tree and the middle column.
  • The whole list: right-click ‹ or › — or press Shift+F10 on it — for every file on that side; pick one to jump straight there.
  • Where you were: going back lands where you left the file — the same scroll position, and in a Markdown file the same side of Preview | Source.
  • A new step cuts off what lay ahead. Go back twice and open another file, and the files you went back from are no longer ahead of you.
  • The list belongs to the open folder. Switching folders or restarting Snotra starts it empty.

A .md file opens formatted: headings, lists, tables, code. Preview | Source in the header — or Cmd+Shift+M / Ctrl+Shift+M, or View › Preview or Source — switches to the plain text and back. The front matter of a SKILL.md shows as a compact block above the text.

  • Images from the open folder are shown. Images from the web are never loaded: a placeholder, Image from the web, not loaded, says where they point.
  • A link to another file of the folder opens that file and selects it in the tree. ‹ takes you back to where you followed it.
  • Since 1.19 Zoom with − and + in the header, or with Cmd / Ctrl and +, −, 0 while the preview has the focus. The whole document grows — text, images and tables — and every Markdown file opens at the size you chose last, after a restart too. The source is not zoomed.
  • Since 1.33 Edit in the header makes the document editable where it is: type, and format with the toolbar below the header — see Edit Markdown in the preview.
  • Since 1.32 Select a passage and click Comment to comment on it. The comment goes into the file; a passage that carries one shows a light wash and a speech bubble.

Source code and configuration files open with colours — JavaScript and TypeScript, JSON, YAML, Python, shell scripts, HTML and CSS and many more, chosen by the file name. The colours follow the light and dark theme. What you select and copy is the file exactly as it is.

The middle column with src/calendar.js: the code with keywords, strings, comments and function names in their own colours, and in the header the button Edit and the file size.The middle column with src/calendar.js: the code with keywords, strings, comments and function names in their own colours, and in the header the button Edit and the file size.

Plain text and logs stay plain. A file larger than 512 KB is shown without colours, so that it opens at once.

Since 1.24 Edit in the header turns the text into an editor that saves by itself — see Edit a text file.

PNG, JPEG, GIF, WebP and SVG open as images, fitted to the column.

The middle column with garden-plan.png: in the header the zoom with −, 40 % and +, the button Fit, the file size and the size in pixels; below it the image.The middle column with garden-plan.png: in the header the zoom with −, 40 % and +, the button Fit, the file size and the size in pixels; below it the image.

  • Zoom with −, + and Fit in the header, or with Cmd / Ctrl and +, −, 0.
  • An image larger than the column is moved by dragging it, or with the arrow keys.
  • The header gives the size in pixels; a checkerboard behind the image shows where it is transparent.
  • An SVG has Preview | Source, like a Markdown file.

A PDF opens page after page, fitted to the column width. The header shows the page you are on — type a number to jump there — and zooms with −, + and Width. A password-protected PDF asks for its password right there; it is not stored. Scripts inside a PDF never run, and its links do nothing.

Since 1.28.1 Comments. Highlights and notes that someone left in a PDF carry their comment along: click the marking — or reach it with Tab and press Enter — and the comment opens next to it, with its author, its date and any replies underneath. Esc or × closes it. Comments are shown as plain text, without their formatting.

The middle column with review.pdf: a yellow highlight on the line "Bed 1 gets the tomatoes again", and below it the opened comment by Ada Lovelace with two replies, by Grace Hopper and by Ada Lovelace.The middle column with review.pdf: a yellow highlight on the line "Bed 1 gets the tomatoes again", and below it the opened comment by Ada Lovelace with two replies, by Grace Hopper and by Ada Lovelace.

Since 1.32 You can comment on a PDF yourself: select a passage, write a note, and it is saved in the file.

What you need: a PDF with real text in it. A scan has only a picture of the text, and a picture cannot be selected.

Steps

  1. Select the passage with the mouse, as in any document.
  2. Click Comment next to the selection — or press Cmd+Alt+M (Ctrl+Alt+M on Windows and Linux).
  3. Write your comment and click Save, or press Cmd+Enter (Ctrl+Enter). Esc or Cancel drops it.

The middle column with review.pdf: the line "The herb spiral stays where it is" marked yellow, and below it the box "New comment as Ada Lovelace" with a question about watering the spiral, and the buttons Cancel and Save.The middle column with review.pdf: the line "The herb spiral stays where it is" marked yellow, and below it the box "New comment as Ada Lovelace" with a question about watering the spiral, and the buttons Cancel and Save.

What happens: the passage is highlighted in yellow and the comment is written into the PDF itself, signed with the time and the name under Settings › General, Name for comments — or, while that is empty, the full name of your user account. Snotra appends it to the end of the file and changes nothing that was there before. Acrobat, macOS Preview and other PDF readers show it like a comment made there, and Snotra shows it right away, as described above.

A selection that runs over several pages is commented on the page where it starts.

If it doesn’t work

  • This PDF is signed. Snotra adds no comments to a signed PDF, so that nothing can put the signature in doubt.
  • This PDF is protected. A PDF with a password or other protection takes no comments here.
  • The file was changed elsewhere and has been reloaded. Someone — another app, or a sync — saved the PDF while you were writing. Your comment stays in the box: check that the yellow passage is still the right one, then save again.
  • No text can be selected. The page is a scan, or its text was turned into shapes. There is nothing to attach the comment to.

Since 1.32.1 A comment can be answered right where it is, so that question and answer stay together.

What you need: a PDF that is neither signed nor protected, as for adding a comment.

Steps

  1. Click the marking to open its comment.
  2. Click Reply at the bottom left of the comment.
  3. Write your reply and click Reply, or press Cmd+Enter (Ctrl+Enter). Esc or Cancel drops it.

The middle column with review.pdf: the opened comment by Ada Lovelace with two replies, and at its bottom the box "Your reply" with a reply typed in, signed "as Grace Hopper", and the buttons Cancel and Reply.The middle column with review.pdf: the opened comment by Ada Lovelace with two replies, and at its bottom the box "Your reply" with a reply typed in, signed "as Grace Hopper", and the buttons Cancel and Reply.

What happens: the reply is written into the PDF as a reply to that comment, signed with the time and the name under Settings › General, Name for comments — or, while that is empty, the full name of your user account. Snotra appends it to the end of the file and changes nothing that was there before. The comment opens again with the reply under it. It is a standard PDF reply: readers that show comment threads list it under the comment, and macOS Preview, which shows none, lists it as a note of its own.

A single reply cannot be deleted on its own: Delete comment removes the comment together with all its replies.

If it doesn’t work

  • There is no Reply. The PDF is signed or protected, and Snotra leaves it as it is.
  • The file was changed elsewhere and has been reloaded. Your reply is still here … Someone saved the PDF while you were writing. The comment opens again with your text in the box: check the comment, then send it again.
  • The reply could not be saved. The file is unchanged. The file could not be written — for example because it is read-only. Your text stays in the box.

Since 1.32.1 A comment in the wrong place, or one that turned out to be wrong, can be taken out of the PDF again — yours or anyone else’s.

What you need: a PDF that is neither signed nor protected, as for adding a comment.

Steps

  1. Click the marking to open its comment.
  2. Click Delete comment at the bottom right of the comment.
  3. Snotra asks in the same place, and says how many replies go with it. Click Delete. Cancel or Esc keeps the comment.

The middle column with review.pdf: the opened comment by Ada Lovelace with two replies, and at its bottom the question "Delete this comment and 2 replies?" with the buttons Cancel and Delete.The middle column with review.pdf: the opened comment by Ada Lovelace with two replies, and at its bottom the question "Delete this comment and 2 replies?" with the buttons Cancel and Delete.

What happens: the marking disappears together with its comment and all replies to it. Like a new comment, the change is appended to the end of the file; nothing that was there before is rewritten. Other PDF readers no longer show the comment either.

If it doesn’t work

  • There is no Delete comment. The PDF is signed or protected, and Snotra leaves it as it is.
  • The file was changed elsewhere and has been reloaded. Nothing was deleted. Someone saved the PDF in the meantime. The comment opens again with this note: check that it is still the one you meant, and delete it again.
  • The comment could not be deleted. The file is unchanged. The file could not be written — for example because it is read-only. The comment stays, and you can try again.

An .html file opens as the page it is. Scripts run, so an interactive mockup or a report works as in a browser. Preview | Source switches to the text.

The middle column with sowing-calendar.html: in the header Preview and Source, Reload, Open in browser and the size; below it the notice "1 request blocked. The preview stays offline and only loads files from the open folder." with the button Show, and the page — a sowing calendar as a table.The middle column with sowing-calendar.html: in the header Preview and Source, Reload, Open in browser and the size; below it the notice "1 request blocked. The preview stays offline and only loads files from the open folder." with the button Show, and the page — a sowing calendar as a table.

  • It stays offline. The page loads only files from the open folder — a stylesheet or a script next to it works. Anything from the web or from outside the folder is blocked, and a notice above the page says how much; Show lists it.
  • Links need a click. A link to another HTML file of the folder opens it in the preview, a web link opens in your browser — only when you click it, never by itself.
  • It keeps up. The page reloads when it or one of its files changes. Reload and Open in browser are in the header.
  • Keyboard: Tab moves into the page, F6 back out of it.

A link to an HTML file in a chat answer opens it here as well.

  • Too large to preview. The preview shows images up to 10 MB, PDFs up to 50 MB and HTML files up to 1 MB. Open in browser still works for an HTML file; any file opens in its own app from the tree’s context menu.
  • The file points out of the open folder through a link, so it is not shown. The preview shows nothing from outside the folder.
  • Not a readable image or Not a PDF. The content does not match the file name. The view checks what is inside, not the extension.
  • A highlight in a PDF opens nothing. It carries no comment — the marking alone was saved — or the comment sits in a text box, which shows its text on the page anyway.
  • The page is not responding. A script in the page keeps it busy. Snotra stays usable; Reload starts the page again.
  • ‹ skips a file, or the list shows it greyed out. The file was deleted, or moved outside Snotra, since you looked at it. A file you rename or move in the tree stays in the list under its new name.
  • Cmd / Ctrl and + makes the whole window larger, not the document. The keys zoom the document only while the preview has the focus — click into the text first. View › Actual Size puts the window back.