Sashmark / Help

Sashmark is in development. Nothing has been released yet, and there is no public build. These pages describe the development build. See the roadmap for what is still planned.

Tabs

How tabs show your open files: switch, close and reopen them, the shortcuts, how tabs come back after you quit, and the recent documents list.

Each open file gets one tab. A tab shows the file name; hover over it to see the full path.

Cmd/Ctrl+T opens a temporary New Tab where you can choose a recent file or use Open…. See Open a file in a new tab. These empty tabs do not return after quitting.

  • Opening a new file adds a tab at the end and switches to it. A file opened from a New Tab takes the New Tab's place instead.
  • Opening a file that is already open switches to its tab. You never get two tabs for the same file.
  • Each tab remembers how far you scrolled.
  • The row of tabs stays at the top of the window while you scroll, so you never have to scroll back up to switch.
  • A ~ after the file name means the file changed since you last marked it seen. See Mark as seen.

Switching tabs

Click a tab, or use the keyboard. On Mac use Cmd; on Windows and Linux use Ctrl. These shortcuts work on all three systems.

To Press
Go to tab 1 to 9 Cmd/Ctrl + 1 to 9
Next tab Cmd/Ctrl + Shift + ]
Previous tab Cmd/Ctrl + Shift + [

Next and previous wrap around from the last tab to the first.

Reordering tabs

When more than one tab is open, its label shows a grab cursor; while dragging, the tab lifts and follows your pointer, leaving a dimmed gap that shows in light and dark mode, and a thick accent line shows where it will land. The lifted tab stays on top of that line as it passes over it.

Drag a tab with a mouse, trackpad or pen and drop it where you want it in the row. The tab you were reading stays active. Drop outside the tab row, or press Escape while dragging, to cancel. Releasing outside the row cancels even if the system could not keep tracking the pointer over the tab. Switching away from the window also cancels the drag; releasing it does not select the dragged tab. Your next click or keyboard activation works normally. If the row is wider than the window, hold the pointer near its left or right edge to scroll through the row.

With keyboard focus on the active tab, press Cmd+Shift+Left or Cmd+Shift+Right on Mac. On Windows and Linux, press Ctrl+Shift+Left or Ctrl+Shift+Right. The tab moves one place and keeps focus; at either end nothing moves. You can also right-click a tab, or open its menu with the Menu key or Shift+F10, and choose Move left or Move right. A menu can move a background tab without switching to it. Right-clicking its close button or status badge opens the same menu; choosing Move keeps a file that is still opening eligible to receive focus. On Mac, Control-click opens the same menu and preserves that focus too.

Touch continues to pan the tab row; touch drag does not reorder tabs. Use the tab menu's Move commands instead. New Tabs can be moved for this window, but only file tabs return after quitting. Sashmark remembers the file-tab order automatically and does not change or save any document when you reorder it.

Closing tabs

  • Middle-click a tab to close it. Tabs with unsaved edits ask the same Save, Discard and Cancel question.
  • Click the × on a tab, or press Cmd+W on Mac or Ctrl+W on Windows and Linux.
  • On Mac and Linux you can also choose File > Close Tab. Windows has no File menu.
  • When you close the active tab, the tab to its right opens (or the one to its left if it was last).
  • A tab with unsaved edits shows a dot (●). Closing it asks "Save changes to <file name> before closing?" with Cancel, Discard and Save. Save saves the file and closes the tab once the save worked; Discard closes it and throws the edits away (a save you already started finishes first); Cancel, Escape, or Return keeps the tab and its edits. While a tab has a choice to make from an agent's change, Save is dimmed until you choose. For that tab, and for a tab whose file is gone from disk, Discard first keeps a copy of your edits; if the copy can't be written, Discard does nothing and the tab stays open with your edits. See When an agent changes a file you are editing and Editing and saving a file.
  • Closing the last tab does not close Sashmark. The window shows the Open a file button and "Drop a Markdown file here", ready for the next file.

Reopening closed tabs

Press Shift+Cmd+T on Mac or Ctrl+Shift+T on Windows and Linux to reopen the last tab you closed. On Mac and Linux, File > Reopen Closed Tab does the same. On every system, the command palette offers Reopen Closed Tab when a closed tab is available.

  • Sashmark keeps the last 10 closes, newest first, for this window only. Each press restores one tab at its former position, or at the end if that position is gone. Holding the native shortcut on Mac or Linux may reopen several tabs; Windows ignores held-key repeats.
  • Reopening reads the file from disk. Discarded edits do not come back. A save already started may finish, but Discard cancels later save retries. Reopening does not write the file or mark it seen.
  • The reading location returns when its Block or heading still exists; otherwise the page starts at the top. Changes View reopens in the normal editing view.
  • If the file is gone, its tab shows File moved or deleted. and an empty page. If the file returns to the same path, the tab loads it. Read or render failures keep a tab with their own error message.
  • If the file is already open, reopening switches to that tab without replacing its edits or moving it. Recovery is unavailable during a dialog, close decision or quit decision. Closing the last tab keeps recovery available; quitting or restarting clears this history. It is separate from saved open tabs and Recent documents.

Tabs come back after you quit

A file is open in one tab in one window. Each window has its own tabs and its own closed-tab history; Reopen Closed Tab works in the window you are using. See Multiple windows.

Sashmark remembers your tabs. The next time it starts, the same windows open, each with its own files in the same order, and each window's active tab is active again. Windows you had already closed do not come back.

  • If you start Sashmark by opening a file (from the terminal, a double-click, or a drop), your saved tabs open first, then that file. If the file was already one of your tabs, Sashmark switches to it.
  • If a file was moved or deleted since you quit, its tab still comes back in the same place. The tab shows "File moved or deleted." and an empty page. If the file comes back to the same place, the tab loads it. Close it with the × or Cmd/Ctrl+W.

Recent documents

Sashmark can keep a list of the last 20 files you opened, newest first. The list is off unless you turn it on.

To turn it on, quit Sashmark, open settings.json in the Sashmark app data folder in a text editor, and change "recent_documents": false to "recent_documents": true. Sashmark creates this file the first time it starts. A change to the setting takes effect the next time Sashmark starts.

System App data folder
Mac ~/Library/Application Support/com.sashmark.app
Windows %APPDATA%\com.skimmark.app (the current folder stays in use)
Linux $XDG_DATA_HOME/com.sashmark.app, or ~/.local/share/com.sashmark.app

When the list is on:

  • The empty window shows a Recent list under the drop zone. Click a file, or move to it with Tab and press Enter or Space.
  • On Mac and Linux, File > Open Recent lists the same files by name. Windows has no File menu.
  • If a file in the list was moved or deleted, choosing it shows "File not found:" and the path.

When the list is off, no list appears anywhere and Sashmark does not save one.

View as Markdown