Writing

New documents

Make a page, folder, map or typed document in any folder, or bring in files you already have.

View as markdown

The New menu

Right-click a folder in the sidebar, or click the ⋯ beside it, and point at New…. The list starts with Page, Folder, Image and Map, plus Session in a campaign. Under Suggested are up to three document types that fit the folder, such as NPC in an NPCs folder. Type in the Find any type… field to find any other type. The New file button on a folder's page shows the same list, without Folder and Session.

  • A document type, such as NPC or Spell, asks for a name in the sidebar.
  • Page opens the New file dialog, which asks for a name and a type together.
  • Folder and Map ask for a name in the sidebar. A map opens in the map editor: see Maps.
  • Image opens the image dialog: see Images.
  • Session adds the campaign's next numbered session and opens it: see Sessions.
The New… list from the menu of the NPCs folder.
The New… list from the menu of the NPCs folder.

Naming a file

When you pick a type, a field appears in the sidebar where the file will go, with a prompt such as "Name your NPC". Type a name and press Enter. Dunjii creates the file and opens it in Edit.

Press Escape to cancel; nothing is written. If you click away from the field without typing, Dunjii creates the file as Untitled (Untitled Folder for a folder). If the name is taken, Dunjii says so and opens the field again with your name in it.

---
type: npcThe type you picked.
---
# Orla FenwickThe name you typed. The file is Orla Fenwick.md.

The file name and the # title are the same name. Rename the file in the sidebar and the title changes with it. Change the title in the editor, and Dunjii renames the file when the caret leaves the title line. This works while the title is the first line of the page and matches the file name.

The name field for a new NPC in the sidebar.
The name field for a new NPC in the sidebar.

The New file dialog

Page opens New file. Type a name, pick a type, and press Create. The button names the type: Create Page, Create Scene.

The types are grouped under Prep, Print and Rules & homebrew. In a folder with a defaultType, that type comes first, under This folder's type. Leave Page selected for a plain page, saved as type: document. Which types appear depends on the game the folder is set to: see Document types.

The New file dialog in the Mistwood campaign.
The New file dialog in the Mistwood campaign.

Folder buttons

Some folders have a button that skips the menu. It sits under the folder's name in the sidebar.

Folder Button Makes
A folder with a defaultType, such as Library/NPCs New NPC A document of that type, named in the sidebar
A folder of pictures, such as Library/Portraits Upload Portrait Uploads pictures you pick on your computer
A campaign New session The campaign's next session
The top of your workspace New campaign… A campaign, after asking for its name

A session's own page has Add a scene, Add an NPC and Add a map, which put the new file in the session folder, and Add something else…, which opens the New list. See Folder settings for defaultType.

What a new document starts with

Most types start with the title and nothing else. In Edit, the sections the type usually has are listed at the end of the page, grayed, until you add them: see Suggested sections. A card sheet or coin sheet starts with no title at all, because its name is the file's.

Three types start with more in the file:

  • A Spell starts with its card properties filled with example values (level 1, Evocation, 60 feet) and a line of example text to replace.
  • An Item starts with example properties (Wondrous Item, Uncommon) and a line of example text.
  • A Shop starts with an empty stock table, with Item, Price and Qty columns, and the caret in its first cell. Under it, Add typical stock… lists what a kind of shop usually sells, and Add specific items… searches the items in your workspace and Sourcebooks.
A new shop, with its stock table and the buttons under it.
A new shop, with its stock table and the buttons under it.

Uploading files

Open a folder and drop files anywhere on the page, or press Upload files. A markdown file becomes a document, an image goes into the folder, a .zip is unpacked, and a .csv becomes one page per row or one page with a table. A markdown file with no type: gets one when its text makes the type clear, and otherwise takes the folder's defaultType. Download and import lists the file types and limits, and covers Obsidian and Notion exports.

When three or more files have a type Dunjii is unsure of, or five or more have no type, Dunjii lists the files before it imports them. Set a type on each row, or select several rows and set them together, then press Import 6 files (the button counts them).

You can also paste onto a folder page. Text of 25 words or more becomes a new page, or several pages when it repeats a structure, such as one heading per NPC. Dunjii asks before it uploads a copied image. An image dropped on a document in View goes into that document's folder; in Edit it goes into the page where you drop it (Images).

With the desktop app, files you add to your synced folder upload on their own: see Desktop app.

The import list for six notes with no type.
The import list for six notes with no type.