Skip to content

Function and Command Index

168 explicitly authored function and command entries.

evil-insert-state
Enter insert state. From Files, Diffs, and Operations
majutsu-abandon
Remove the revision at point from visible history and rebase its descendants onto its parent(s). With an active region selection, Majutsu abandons all selected revisions. The operation remains recoverable through jj's operation history until that history is pruned. From Manipulating
majutsu-abandon
Remove the revision at point from visible history and rebase its descendants onto its parent(s). With an active region selection, Majutsu abandons all selected revisions. The operation remains recoverable through jj's operation history until that history is pruned. From Manipulating
majutsu-absorb
Open the Absorb transient. From Manipulating
majutsu-annotate-addition
Enter annotate from a blob buffer. From an ordinary file buffer, use M-x majutsu-annotate-addition. When invoked again on an annotated chunk, jump to its parent revision (when available) and re-annotate there. From Files, Diffs, and Operations
majutsu-annotate-addition
Start annotate for the current blob. From Files, Diffs, and Operations
majutsu-annotate-copy-hash
Copy the chunk change-id. From Files, Diffs, and Operations
majutsu-annotate-cycle-style
Cycle heading/highlight/line styles (see majutsu-annotate-styles). From Files, Diffs, and Operations
majutsu-annotate-next-chunk
Move to the next or previous chunk. From Files, Diffs, and Operations
majutsu-annotate-next-chunk
Move to the next or previous chunk. From Files, Diffs, and Operations
majutsu-annotate-next-chunk-same-commit
Move to the next or previous chunk from the same commit. From Files, Diffs, and Operations
majutsu-annotate-next-chunk-same-commit
Move to the next or previous chunk from the same commit. From Files, Diffs, and Operations
majutsu-annotate-previous-chunk
Move to the next or previous chunk. From Files, Diffs, and Operations
majutsu-annotate-previous-chunk
Move to the next or previous chunk. From Files, Diffs, and Operations
majutsu-annotate-previous-chunk-same-commit
Move to the next or previous chunk from the same commit. From Files, Diffs, and Operations
majutsu-annotate-previous-chunk-same-commit
Move to the next or previous chunk from the same commit. From Files, Diffs, and Operations
majutsu-annotate-show-commit
Show the chunk's revision diff. From Files, Diffs, and Operations
majutsu-annotate-show-or-scroll-down
Scroll the diff window down if it is already open. From Files, Diffs, and Operations
majutsu-annotate-show-or-scroll-up
Scroll the diff window up if it is already open. From Files, Diffs, and Operations
majutsu-blob-edit-abort
Abort blob edits, restore the original content, and restore the original cursor position. From Files, Diffs, and Operations
majutsu-blob-edit-exit
Leave editable mode. If modified, it prompts to save or abort; if unchanged, it exits immediately. From Files, Diffs, and Operations
majutsu-blob-edit-finish
Apply changes through non-interactive jj diffedit and exit edit mode. Majutsu copies current buffer text into the diffedit right side and finishes automatically, without opening the right-side temp file buffer. From Files, Diffs, and Operations
majutsu-blob-edit-start
Enter editable blob mode (wdired-style). From Files, Diffs, and Operations
majutsu-blob-next
Jump to the previous or next revision that touched this file, while preserving cursor position as much as possible. From Files, Diffs, and Operations
majutsu-blob-previous
Jump to the previous or next revision that touched this file, while preserving cursor position as much as possible. From Files, Diffs, and Operations
majutsu-blob-visit-file
Jump to the workspace version of the same file. From Files, Diffs, and Operations
majutsu-blob-visit-magit
Open the current blob in Magit's blob viewer. From Files, Diffs, and Operations
majutsu-bookmark
Open the bookmark transient. From Bookmarks
majutsu-bookmark-advance
Advance bookmarks using jj's configured default selection and target revset. From Bookmarks
majutsu-bookmark-advance-patterns
Advance specific bookmark name(s)/pattern(s) using jj's configured default target revset. From Bookmarks
majutsu-bookmark-advance-to
Advance bookmarks using jj's default selection to an explicit target revset. From Bookmarks
majutsu-bookmark-create
Create a new bookmark at point. From Bookmarks
majutsu-bookmark-delete
Delete a bookmark locally and record the deletion for propagation on a later push; this command does not contact a remote itself. From Bookmarks
majutsu-bookmark-forget
Forget a bookmark locally without affecting remotes. From Bookmarks
majutsu-bookmark-list
List all bookmarks. From Bookmarks
majutsu-bookmark-move
Move a bookmark. From Bookmarks
majutsu-bookmark-move-allow-backwards
Move bookmark(s) with --allow-backwards. From Bookmarks
majutsu-bookmark-rename
Rename a bookmark. From Bookmarks
majutsu-bookmark-set
Set or move an existing bookmark to the current revision. From Bookmarks
majutsu-bookmark-track
Track a remote bookmark to create a local one. From Bookmarks
majutsu-bookmark-untrack
Untrack a remote bookmark. From Bookmarks
majutsu-commit
Run jj commit through with-editor. This edits the working-copy description, finalizes that change, and lets jj create the next empty working-copy change on top. From Manipulating
majutsu-conflict-ensure-mode
Enable conflict handling in a file with conflict markers. From Conflict Resolution
majutsu-conflict-keep-base
Keep the conflict base (snapshot / rebase destination section). From Conflict Resolution
majutsu-conflict-keep-base
Keep the base. From Conflict Resolution
majutsu-conflict-keep-side
Keep side N (the "after" side in JJ diff blocks). From Conflict Resolution
majutsu-conflict-keep-side
Keep side N's "before" variant. From Conflict Resolution
majutsu-conflict-keep-side
Keep side N (the "after" side). From Conflict Resolution
majutsu-conflict-keep-side
Keep side N's "before" variant. From Conflict Resolution
majutsu-conflict-next
Jump to the next or previous conflict. From Conflict Resolution
majutsu-conflict-next
Jump to the next conflict. From Conflict Resolution
majutsu-conflict-prev
Jump to the next or previous conflict. From Conflict Resolution
majutsu-conflict-prev
Jump to the previous conflict. From Conflict Resolution
majutsu-conflict-refine
Refine conflict regions with word-level highlighting. From Conflict Resolution
majutsu-conflict-refine
Refine the conflict. From Conflict Resolution
majutsu-copy-section-value
Copy the current section value. An active region uses ordinary region copy. From Inspecting
majutsu-describe
Edit the description of the revision at point. Supports --ignore-immutable for immutable revisions. From Manipulating
majutsu-diff
Open the Diff transient. From Files, Diffs, and Operations
majutsu-diff-default-context
Reset the context for diff hunks to the default height. From Files, Diffs, and Operations
majutsu-diff-default-context
Reset the context for diff hunks to the default height. From Files, Diffs, and Operations
majutsu-diff-less-context
Decrease the context for diff hunks by COUNT lines. From Files, Diffs, and Operations
majutsu-diff-less-context
Decrease the context for diff hunks by COUNT lines. From Files, Diffs, and Operations
majutsu-diff-more-context
Increase the context for diff hunks by COUNT lines. From Files, Diffs, and Operations
majutsu-diff-toggle-fontify-hunk
Toggle syntax highlighting within diff hunks. With a prefix argument, cycle between highlighting the current hunk on selection and highlighting all hunks immediately. From Files, Diffs, and Operations
majutsu-diff-toggle-refine-hunk
Toggle word-level refinement. From Files, Diffs, and Operations
majutsu-diff-visit-file
Visit the appropriate version of the file at point. For working copy diffs, added/context lines visit the workspace file while removed lines visit the parent-side blob. For committed changes, it visits the blob at the corresponding side. From Files, Diffs, and Operations
majutsu-diff-visit-workspace-file
Visit the workspace file, regardless of diff type. From Files, Diffs, and Operations
majutsu-diff-visit-workspace-file
Visit the workspace file without conflicting with Evil's C-j section navigation. From Files, Diffs, and Operations
majutsu-duplicate
Open the Duplicate transient. Allows selecting source revisions and destination. From Manipulating
majutsu-ediff
Open the Ediff transient. From Files, Diffs, and Operations
majutsu-ediff
Open the Ediff transient. From Files, Diffs, and Operations
majutsu-ediff-dwim
Compare based on context (hunk, file, commit, or whole buffer). From Files, Diffs, and Operations
majutsu-ediff-edit
Run jj diffedit with Emacs as ui.diff-editor. If no file is at point, Majutsu prompts for a changed file, then launches a two-sided Ediff session for that single file (left/right temp files). Edit the right-side temp file and quit Ediff to return control to jj diffedit. When majutsu-diffedit-finish-on-save is non-nil, saving a diffedit temp file can finish the with-editor session automatically. From Files, Diffs, and Operations
majutsu-ediff-resolve
Use the automatic resolve strategy. From Conflict Resolution
majutsu-ediff-resolve
Resolve conflicted files. In a jj-commit section, it lists conflicted files for that revision; otherwise it uses working copy @. Uses jj resolve with 3-way Ediff (merge tool: $left, $base, $right) for up-to-2-sided conflicts, and falls back to jj diffedit for conflicts with more than 2 sides. In this flow, quitting Ediff without editing leaves jj's output unchanged, so the conflict stays unresolved. If you edited and quit, Majutsu asks whether to save the resolved result; choosing no discards edits and keeps conflicts. When only part of a conflict is resolved, remaining regions are written with git-style conflict markers so jj keeps unresolved regions unresolved. Conflict-file completion preserves exact repository paths and annotates each candidate with its conflict side count. From Files, Diffs, and Operations
majutsu-ediff-resolve
Resolve conflicted files using the default Ediff-based flow. From Files, Diffs, and Operations
majutsu-ediff-resolve-with-conflict
Force the conflict workflow. This opens the working-copy file (or a revision blob buffer for non-working-copy revisions), enables majutsu-conflict-mode, and jumps to the first conflict. From Conflict Resolution
majutsu-ediff-resolve-with-conflict
Open the resolve target buffer (working-copy file or revision blob), enable majutsu-conflict-mode, and jump to the first conflict. From Files, Diffs, and Operations
majutsu-ediff-resolve-with-conflict
Open the conflict target directly and enable majutsu-conflict-mode. From Files, Diffs, and Operations
majutsu-edit-changeset
Move the working copy (@) to the revision at point. Supports --ignore-immutable for immutable revisions. From Manipulating
majutsu-evil-blob-insert-dwim
Enter editable blob mode and stay in normal state. From Files, Diffs, and Operations
majutsu-evolog
Open the evolution log for the revision at point. From Files, Diffs, and Operations
majutsu-evolog
Open the evolution log from the Majutsu dispatcher. Contextual v remains available in operation diff buffers. From Files, Diffs, and Operations
majutsu-evolog
View jj evolog with its graph preserved and each entry parsed through Majutsu's structured row protocol. It is also available as ? v in the dispatcher. Entries mirror jj's compact evolog format; full change, commit, and optional operation IDs are hidden metadata available through ? w. Press RET to open jj's native Git-format inter-diff for the entry (using jj evolog --patch --git); d remains the ordinary Majutsu diff command. From Files, Diffs, and Operations
majutsu-find-file
Prompt for revset + path (defaulting from point when possible) and open that file as a blob. From Files, Diffs, and Operations
majutsu-find-file-other-frame
Like majutsu-find-file, but display the blob in another frame. From Files, Diffs, and Operations
majutsu-find-file-other-window
Like majutsu-find-file, but display the blob in another window. From Files, Diffs, and Operations
majutsu-gerrit-upload-transient
Open the Gerrit upload transient. From Git Integration
majutsu-git-clone-transient
Clone a Git repository into a jj repo. Source may be a URL or path; --branch can be repeated. From Git Integration
majutsu-git-export
Run jj git export. From Git Integration
majutsu-git-fetch-transient
Open the Fetch transient to pull changes from a remote. From Git Integration
majutsu-git-import
Run jj git import. From Git Integration
majutsu-git-init-transient
Initialize a new Git-backed jj repository. From Git Integration
majutsu-git-push-transient
Open the Push transient. You can push bookmarks, tags, revisions, or changes. From Git Integration
majutsu-git-remote-add-transient
Add a new Git remote as jj git remote add [OPTIONS] REMOTE URL. Majutsu prompts for a new remote name, rejects names that already exist, prompts for the URL/path positional, and exposes --fetch-tags and --push-url. From Git Integration
majutsu-git-remote-list
List remotes. From Git Integration
majutsu-git-remote-remove
Remove an existing remote. In the remote list buffer, the remote at point is used as the default. From Git Integration
majutsu-git-remote-rename
Rename a remote. From Git Integration
majutsu-git-remote-set-url-transient
Set remote URLs. With no option, Majutsu prompts for the fetch URL/path positional; use --fetch and/or --push to set them explicitly. In the remote list buffer, the remote at point is used as the default. From Git Integration
majutsu-git-remote-transient
Open the Remote Management transient. From Git Integration
majutsu-git-root
Show the Git directory path (jj git root). From Git Integration
majutsu-git-transient
Open the Git transient. Jujutsu can interact directly with Git remotes. From Git Integration
majutsu-git-transient
Open the Git transient. Jujutsu can interact directly with Git remotes. From Git Integration
majutsu-jjdescription-next-message
Cycle forward through the description ring, after saving the current description to the ring. With a numeric prefix ARG, go forward ARG entries. From Interface Concepts
majutsu-jjdescription-prev-message
Cycle backward through the description ring, after saving the current description to the ring. With a numeric prefix ARG, go back ARG entries. From Interface Concepts
majutsu-jjdescription-save-message
Save the current buffer contents to the description ring. From Interface Concepts
majutsu-jjdescription-search-message-backward
Search backward through the description ring for a substring match. From Interface Concepts
majutsu-jjdescription-search-message-forward
Search forward through the description ring for a substring match. From Interface Concepts
majutsu-jjdescription-show-diff
Show the diff for the described change. If the buffer contains a JJ: Change ID: line, then use that revision; otherwise fall back to @. From Interface Concepts
majutsu-log-transient
Open the log options transient. From Inspecting
majutsu-log-transient
Open the log options transient. From Inspecting
majutsu-metaedit
Open the Metaedit transient. Revisions in the active region are selected initially, followed by the revision at point, then @ as fallbacks. From Manipulating
majutsu-new
Open the New transient to specify options. From Manipulating
majutsu-new-dwim
Create a new change on top of the revision at point (DWIM). From Manipulating
majutsu-new-with-after
Create a new change after the revision at point. From Manipulating
majutsu-new-with-before
Create a new change before the revision at point. From Manipulating
majutsu-new-with-before
Create a new change before the revision at point. From Manipulating
majutsu-op-diff
Compare repository changes by operation, --from, or --to in a sectionized changed commit/ref view. Explicit --from / --to ranges show lightweight metadata for both endpoint operations, including their full ids, user, workspace, end time, and description. Changed lines keep full commit/change IDs internally. Press RET or v on a changed line to open its evolution log; elsewhere RET keeps ordinary Majutsu visit behavior, and d remains the ordinary Majutsu diff command. Operation metadata plus this diff view replace a separate operation-show buffer. From Files, Diffs, and Operations
majutsu-op-diff-transient
Compare repository changes by operation, --from, or --to in a sectionized changed commit/ref view. Explicit --from / --to ranges show lightweight metadata for both endpoint operations, including their full ids, user, workspace, end time, and description. Changed lines keep full commit/change IDs internally. Press RET or v on a changed line to open its evolution log; elsewhere RET keeps ordinary Majutsu visit behavior, and d remains the ordinary Majutsu diff command. Operation metadata plus this diff view replace a separate operation-show buffer. From Files, Diffs, and Operations
majutsu-op-log
View Jujutsu's operation history with its graph preserved by default. Rows mirror jj's compact operation format: normal and snapshot operations show short id, user, workspace, elapsed time, description, and all attributes; the root shows only its short id and root(). Full ids and canonical metadata remain available to actions and the shared ? w copy submenu. Read-only operation views pass --at-op=@ --ignore-working-copy to avoid snapshotting while browsing. Press d to open an operation-diff transient prefilled from point, u to restore, or r to revert; RET keeps the ordinary Majutsu visit behavior. From Files, Diffs, and Operations
majutsu-op-log-transient
Open the operation-log menu. Supports --limit, --reversed, and --no-graph. From Files, Diffs, and Operations
majutsu-op-restore
Restore to an operation or revert an individual operation after confirmation. From Files, Diffs, and Operations
majutsu-op-revert
Restore to an operation or revert an individual operation after confirmation. From Files, Diffs, and Operations
majutsu-op-transient
Open the operation dispatcher with log, diff, restore, revert, undo, and redo actions. From Files, Diffs, and Operations
majutsu-process-buffer
Show the current repository's process buffer. It retains recent synchronous and asynchronous jj commands, including failures and long-running remote operations. From Files, Diffs, and Operations
majutsu-process-buffer
Show the current repository's process buffer. It retains recent synchronous and asynchronous jj commands, including failures and long-running remote operations. From Files, Diffs, and Operations
majutsu-rebase
Open the Rebase transient. This is one of Majutsu's most powerful features, allowing you to visually select sources and destinations. From Manipulating
majutsu-redo
Undo or redo. From Manipulating
majutsu-redo
Undo or redo. From Manipulating
majutsu-restore
Open the Restore transient for undoing changes. From Manipulating
majutsu-revert
Open the Revert transient to apply reverse changes in one or more new revisions. From Manipulating
majutsu-revert
Open the Revert transient to apply reverse changes in one or more new revisions. From Manipulating
majutsu-row-copy-entry-field
Choose any canonical field stored on the current entry, including hidden metadata that is not visible in the current layout. Completion keeps the field name as the candidate and displays a one-line value preview as its annotation. From Inspecting
majutsu-row-copy-field
Copy the rendered field value at point. From Inspecting
majutsu-row-copy-module
Copy the rendered visible module at point (heading, tail, or body), without graph-prefix or tail-spacer decoration. From Inspecting
majutsu-sign
Open the Sign transient. Revisions in the active region are selected initially, followed by the revision at point, then @ as fallbacks. From Manipulating
majutsu-simplify-parents
Open the Simplify Parents transient. From Manipulating
majutsu-sparse
Open the sparse working copy transient (set, add, remove, list, edit). From Manipulating
majutsu-sparse-add
Add or remove patterns incrementally. From Manipulating
majutsu-sparse-edit
Edit patterns via jj sparse edit. From Manipulating
majutsu-sparse-list
List current sparse patterns in *Majutsu Sparse*. From Manipulating
majutsu-sparse-remove
Add or remove patterns incrementally. From Manipulating
majutsu-sparse-reset
Reset to all files (jj sparse reset). From Manipulating
majutsu-sparse-set
Set patterns by appending, or replace the entire set after clearing it first. From Manipulating
majutsu-sparse-set-clear
Set patterns by appending, or replace the entire set after clearing it first. From Manipulating
majutsu-split
Open the Split transient. This allows you to split a revision into multiple parts. From Manipulating
majutsu-squash
Open the Squash transient. You can select multiple source revisions (--from) to squash into a destination (--into). From Manipulating
majutsu-tag
Open the tag transient. From Tags
majutsu-tag-delete
Delete tag(s) by name or pattern. From Tags
majutsu-tag-list
List tags in a dedicated buffer. From Tags
majutsu-tag-move
Move existing tag(s) to another revision (internally --allow-move). From Tags
majutsu-tag-set
Set tag(s). Uses completion and allows new names. From Tags
majutsu-undo
Undo or redo. From Manipulating
majutsu-undo
Undo or redo. From Manipulating
majutsu-unsign
Open the Unsign transient with the same visual revision selection. From Manipulating
majutsu-workspace
Open the workspace transient. From Workspaces
majutsu-workspace
Open the workspace transient. From Workspaces
majutsu-workspace-add
Add a new workspace. From Workspaces
majutsu-workspace-forget
Forget a workspace. With -t enabled, also move its local directory to the system trash after jj workspace forget succeeds; this trash step accepts local roots only, while plain forget can still forget a remotely located workspace. Before moving a directory, Majutsu verifies that the path still identifies the directory the user confirmed and does not own the shared .jj/repo store. It checks all selected workspaces and reports all paths requiring manual cleanup together. From Workspaces
majutsu-workspace-list
List all workspaces. From Workspaces
majutsu-workspace-rename
Rename a workspace. From Workspaces
majutsu-workspace-root
Show and copy the current workspace root. From Workspaces
majutsu-workspace-update-stale
Update a stale workspace. From Workspaces
majutsu-workspace-visit
Visit a workspace by changing default-directory and refreshing Majutsu buffers. From Workspaces
revert-buffer
Revert or reload the current blob content. From Files, Diffs, and Operations
revert-buffer
Revert or reload the current blob content. From Files, Diffs, and Operations
with-editor-cancel
Cancel the current edit session with a non-zero editor status, causing jj to abort the operation. Majutsu saves the current text to its in-session description history before canceling. From Interface Concepts
with-editor-finish
Finish the current edit session successfully. jj then uses the description found in the file. From Interface Concepts