Sign in Download

Help · Using Morie

Git review and the file tree

Read what the chat changed before anyone calls it done.

Checked against Morie 0.54.3.

In short
  • Git (⌘⇧G) lists the changed files with a letter each: M modified, A added, D deleted, U untracked.
  • All changes shows every diff in one place; ✕ or Esc closes it. Comment on a line and send it to the chat.
  • Commit, push and open a pull request from the same tab.
For example

Shop’s chat has changed the cart on #12. You read cart.ts, mark it Viewed, and ask the chat to keep the old total before you commit.

  1. Open #12 and press ⌘⇧G. Expand shop-web and select cart.ts.
  2. Click the line number beside the changed total, write “Keep the old total”, and add the comment. Choose the chat and press Send to chat.
  3. When the chat has fixed it, read the change again. Tick Viewed, choose the files to include, write a Commit message, then press Commit and push.

Reading the changes

Open a ticket’s Git tab from the rail on the right, or press ⌘⇧G. Each repository has its own card, with the branch its worktree is on and its changed files. Expand the card and select a file to read its diff.

  • Working tree shows changes that have not been committed.
  • Whole branch since…, also opened by All changes, compares the branch with its base. New untracked files are listed under Working tree.
  • Choose a commit to read that commit’s changes.

Unified puts removed and added lines together; Split puts them side by side. Drag the divider to give the file list or the diff more room. ✕ or Esc closes the branch or commit diff and returns to Working tree.

A third group, Written by chats, lists the new files a chat wrote there for you (each with its folder and the chat's name). Keep in Morie moves them to the ticket's files and out of the worktree, with Undo; Include in the commit treats them as yours. On Base the group is read-only and points to Files chats leave.

The letters tell you what happened: M modified, A added, D deleted, U untracked, ! conflicted and T a change of file type.

Leaving comments

Click a line number in the diff to write a comment. Comments stay beside their lines. Choose a chat below the diff and press Send to chat to send the unsent ones together. The chat must still be open on this ticket.

Tick Viewed when you have read a file. If its changes move on, the tick clears so you know to read it again. Viewed records your reading; the separate box at the start of the row chooses whether the file goes into the commit.

Committing and sharing

Under Working tree, tick the files you want to include, write a Commit message, then press Commit or Commit and push. Only the checked files are committed. The others stay as they are.

The commits below show what is on the branch. Git offers the next step, such as pushing commits or opening a pull request. A linked pull request appears on the repository’s card.

Reviewing someone else’s branch

To review a teammate’s work on a ticket, press ⋯ on the repository’s card, choose Switch branch…, and give their Branch or pull request. Git then follows that branch on origin. Their commits don’t show as yours to push, and Push and Pull go to their branch.

The expanded card says This worktree is on fix-tax-rounding, not the ticket’s branch cart-tax., with Switch back, and Use fix-tax-rounding to make it the ticket’s branch. When the branch belongs to a pull request, the card says so: It is the branch of pull request #48; origin has the same commits.

The strip beside the editor

When you open a file, a thin strip in place of the editor’s scrollbar shows the whole file at once: problems, lines added, changed or deleted since the last commit, the matches of a search, and where the cursor is. Problems show here, not as dots by the line numbers.

Click a mark to go to it, or drag along the strip to scroll. Hover a mark to see what it is, such as Warning, line 88: 'os' imported but unused, 3 lines changed since the last commit or Match 2 of 7 for “total”. Esc hides it.

Wrapping long lines

How it works. The editor's foot has a Wrap lines button, after the line and column and the problem count. Off, a long line scrolls sideways; on (✓ Wrap lines), it wraps at the edge of the editor, so you can read it without scrolling sideways. Line numbers and Ln, Col stay the file's own lines. The choice is kept on this Mac and read by every editor: a file tab, a file tab in a mini window, and the window of a file opened from outside your project. Markdown and text files (.md, .mdx, .markdown, .txt, .rst, .adoc) and code files keep their own choice: Markdown and text start wrapped, code starts unwrapped. A file with a line of more than 300,000 characters, such as a minified bundle, is not wrapped; the button is dimmed and says This file has a line too long to wrap, so it scrolls sideways. Wrapping on or off keeps the line at the top of the view where it was.

How to set it up. Nothing to set up. Click Wrap lines in the foot of any file to flip it for that kind of file. Hover it to see which kind it changes, such as Code files on this Mac wrap long lines at the edge. Click to scroll them sideways. A read-only copy of an attachment has the button too. The file window, which a file opens in only before your project is set up, has it in its foot as well.

From a chat. A chat has no tool for it; the choice is yours, on this Mac only.

The file tree

Open Files from the ticket’s rail to browse its worktrees. Expand folders and click a file to open it. Drag a file onto a chat to attach it. In Base, Files shows your repositories’ own folders.

Search in files (⌘⇧F) has Files to include and Files to exclude behind ⋮: globs separated by commas, in the forms a claim takes (Tickets and ticket info, Claims). A name without a slash, such as *.ts or dist, matches at any depth, and a folder matches what is inside it. [abc] is one of those characters, so to find a folder named [slug], write \[slug\].

Each of the two boxes takes at most 25 patterns, 5 of them with wildcards (*, ?, [ ], { }, \ or a leading !). A wildcard pattern is at most 64 characters, and a plain name or folder 256. A box past one of these limits searches nothing, and the line under the search box says: "Files to include takes at most 25 patterns, 5 of them with wildcards (* ? [ ] { } \ or a leading !), a wildcard pattern at most 64 characters and a plain one 256: use fewer, or name a folder." (or "Files to exclude …"). For example, src/**, *.ts is fine, and so is node_modules, dist, build, *.min.js, coverage.

A search stops after 10 seconds. When it does, the line under the box says so, even when nothing was found, and says how far the search got. For example: "12 results in 3 files. Stopped after 10 seconds, with 4,120 of 11,298 files searched: narrow Files to include." When ripgrep is installed, Morie goes through only the files that contain the text, so the line says "after going through the first 4,120 files that contain the text" instead. When a ticket has several folders and ripgrep refused the search in one of them, the line gives no count: "Stopped after 10 seconds: narrow Files to include." Narrow Files to include and search again.

In a folder that is not searched with ripgrep, a search goes through at most the first 20,000 files the folder lists, before Files to include is applied, so narrowing it does not reach the files after those. The line then says so: "12 results in 3 files, from the first 20,000 files listed; files after those are not searched." or "No results in the first 20,000 files listed; files after those are not searched."

A path longer than macOS can open (over 1,023 bytes in all) is left out of the search, as it cannot be read.

A changed file has M, A or U beside it. An amber dot on a folder means something inside has uncommitted changes, even when the folder is folded. A deleted file has no row, but still counts towards its folder’s dot. Open Git to read the deletion.

Files opened from outside a project

How it works. A Markdown, text or code file you open from outside your project's folders opens as a file tab in the project's window, so you can quote it into a chat or annotate it, as you can with a file of the project.

  • From Finder (Open With → Morie, or a double-click once Morie is the default): the file opens as a Base tab. Its path line names its own folder, such as Downloads / release-notes.md. You can edit and save it. Send to chat quotes into the Morie chat.
  • From a ticket's attachments (Ticket info → Files → Open): the file opens as a tab of that ticket, in the window you opened it from. It is Morie's copy of the attachment, so it is read only. The path line reads Attachment of #42 / release-notes.md · Read only, and ⌘S says This copy is read only. Send to chat quotes into the ticket's chat. Use Open with the default app to work on it elsewhere.
  • Before your project is set up, there is no chat to send to. The file opens in a window of its own, whose path-line menu shows Send to chat, Send to the Morie chat and Annotate dimmed, with Set up a project first: these go to its chats. Only this window offers Open code files with Morie from now on?. Once a project is set up, use Settings → General → Make Morie the default… instead.

Right-click the text (or press the context-menu key) for these actions:

  • Send to chat (⌘⇧R) puts the selection, or the line you are on, in a chat's message box as a quote. It is not sent until you press Send. A quote stays in the message up to 200 lines and 32 KB. A longer one goes with the message as a text file, with its start shown. A message holds at most 20 quotes; a 21st is refused with Nothing was quoted.
  • Send to the Morie chat puts the quote in the Morie chat's message box instead. It shows in the Morie mini window (⌘⇧A) when that is open, and in the Morie chat's tab. The bubble's Show opens the Morie chat.
  • Annotate also sits at the top of the path line's menu. It makes a page of the file as saved: - Markdown is laid out as a page. - Pictures the file links to show as their words. - Only web and mail links are kept. - Any other text shows as it is.

The page goes to the chat that Send to chat would use: the ticket's chat, or the Morie chat, which starts first if it is not running. That chat then opens with the page beside it, ready for you to click a spot and write a note. History says You sent release-notes.md (2 KB) to Payment fixes to annotate. History shows a line up to 240 characters; a longer one, with a very long file or chat name, ends with …. Your notes go to that chat. The chat sees the file's name, not where it is on your Mac. Notes never change the file. Annotate the same file again and its open notes come over to the new page.

How to set it up. Nothing to set up. Open a file from Finder with Morie, or open a ticket attachment from Ticket info → Files. The file shows as a tab with its path line.

From a chat. A note on such a page arrives as for any page a chat sent. Inside its data, it reads Made from the file "release-notes.md"; notes do not change that file. The page's words at the pin are the file's, not your message. The chat answers in the note's thread with files.reply. If the file can't be annotated, the row says why:

  • release-notes.md is empty: nothing to annotate
  • No chat can show a page: the Morie chat works in a terminal
  • That file's name has a character Morie cannot show.
  • a file that looks like a secret (a key, a credentials file or an environment file) is not sent.

When something is off

  • No diff yet? Select a file, or choose a different view above the diff.
  • Send to chat is dimmed? There must be an unsent comment and an open chat on this ticket.
  • A Viewed tick went away? The file changed again. Read the new change before ticking it.

See also: Tickets and Ticket info · Worktrees · Checks and scripts