Skip to content
Projets

À propos

Neovim frontend for Jujutsu in the style of vim-fugitive

Développement web et applicatif

Comment ces chiffres sont mesurés

What you can do

  • Fugitive-style workflow — status log window with modified files, inline diffs, split diffs, preview window, and quickfix/location-list history.
  • Complete Jujutsu operations — edit, describe, commit, squash, interactive split/squash in a terminal split, duplicate/cherry-pick, merge, revert, abandon/restore, rebase, bookmarks, tags, git fetch/push, and undo/redo.
  • Visual mode & register workflows — select multiple commits or files in visual mode to yank IDs/filenames, duplicate, rebase, shift, merge, revert, abandon/restore, commit/squash/split, toggle diffs, filter views, or pre-fill :/:! commands. Yanked IDs in a named register can be passed directly to duplicate/cherry-pick mappings (e.g. "ayc then "app).
  • Multi-workspace support — add, switch, rename, forget, and remove workspaces (ga, gw, gR, gF, gX), view workspace names (default@, etc.) in the log, update stale working copies (U), and work across multiple workspaces in one session with per-workspace command locking ('busy' indicator) and repository-scoped auto-reloading.

Progression mesurée des étoiles

in 24h
+2
in 7 days
+2
in 15 days
+3
in 1 month
Historique en cours

Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.

README.md

Original

jiejie.nvim

A Neovim plugin for the Jujutsu (jj) version control system, heavily inspired by vim-fugitive.

jiejie

Features

  • Fugitive-style workflow — status log window with modified files, inline diffs, split diffs, preview window, and quickfix/location-list history.
  • Complete Jujutsu operations — edit, describe, commit, squash, interactive split/squash in a terminal split, duplicate/cherry-pick, merge, revert, abandon/restore, rebase, bookmarks, tags, git fetch/push, and undo/redo.
  • Visual mode & register workflows — select multiple commits or files in visual mode to yank IDs/filenames, duplicate, rebase, shift, merge, revert, abandon/restore, commit/squash/split, toggle diffs, filter views, or pre-fill :/:! commands. Yanked IDs in a named register can be passed directly to duplicate/cherry-pick mappings (e.g. "ayc then "app).
  • Multi-workspace support — add, switch, rename, forget, and remove workspaces (ga, gw, gR, gF, gX), view workspace names (default@, etc.) in the log, update stale working copies (U), and work across multiple workspaces in one session with per-workspace command locking ('busy' indicator) and repository-scoped auto-reloading.
  • Flexible log views — switch between built-in revset views, create dynamic filters (by author, description, file, bookmark, tag, or revset), or define custom views in config.
  • Operation log & evolution log — browse :J oplog to restore past operations and :J evolog to inspect change evolution.
  • Session restore — jiejie:// log, oplog, evolog, and revision buffers restore automatically across :mksession and :restart.
  • CLI wrapper — run any jj command directly via :J, :Jj, or :JJ.

Requirements

Installation

lazy.nvim

{
  "jceb/jiejie.nvim",
}

vim.pack

vim.pack.add({ "https://github.com/jceb/jiejie.nvim" })

Configuration

Configure via opts in lazy.nvim, require("jiejie").setup(opts), or vim.g.jiejie_config (for vim.pack). See lua/jiejie/config.lua for full type annotations.

Option Type Default Description
excluded_revset string "" Revset excluded from log views and bookmark/tag pickers
default_view integer 1 Index of the default log view
dynamic_views LogView[] {} Custom views ({ revset = "...", description = "...", paths = { ... } })
log_revisions integer 10 Number of revisions shown by default in the log
Example configuration (lazy.nvim & vim.pack)

lazy.nvim:

{
  "jceb/jiejie.nvim",
  opts = {
    excluded_revset = 'bookmarks(glob:"renovate/*") | tracked_remote_bookmarks(glob:"renovate/*") | untracked_remote_bookmarks(glob:"renovate/*")',
    default_view = 1,
    dynamic_views = {
      { revset = "merges()" },
    },
    log_revisions = 10,
  },
}

vim.pack:

vim.g.jiejie_config = {
  excluded_revset = 'bookmarks(glob:"renovate/*") | tracked_remote_bookmarks(glob:"renovate/*") | untracked_remote_bookmarks(glob:"renovate/*")',
  default_view = 1,
  dynamic_views = {
    { revset = "merges()" },
  },
  log_revisions = 10,
}

Commands

Command Description
:J / :Jj / :JJ Open or focus the status log buffer
:J [args] Run any jj CLI command (:J! adds --ignore-immutable)
:J log [file...] Open status log, optionally filtered to specific file(s)
:J oplog Open the operation log buffer
:J evolog [rev] Open the evolution log buffer (defaults to @)
:Jedit [object] Edit a file at a given revision (e.g. :Jedit @-:%)
:Jdiffsplit [object] Diff current file against revision or direct ancestors (:Jvdiffsplit / :Jhdiffsplit for vertical/horizontal)
:JcLog [file] Load change history into the quickfix list (:0JcLog for current file)
:JlLog [file] Load change history into the location list (:0JlLog for current file)
:Jblame [rev] Show jj file annotate in a scrollbound left split (also :J blame / :J annotate)
:Jupdate Update stale workspace

Keybindings

Conventions

  • @ is the center — operations like rebase, squash, merge, and duplicate act on the current change (@).
  • Cursor is the target — placing the cursor on another change targets that change (e.g. rebasing @ onto it).
  • ! prefix forces — prepend ! to ignore immutability (--ignore-immutable), move bookmarks backwards (--allow-backwards), overwrite on rename, or track an untracked file.
  • Uppercase prompts — uppercase variants prompt for an arbitrary target (e.g. cbM moves any bookmark here, while cbm picks from the current branch).
  • Jujutsu mnemonics — prefixes mirror jj aliases (e.g. c for change, cb for bookmark, ct for tag, r for rebase, s for views/splits, g for git/workspaces).
  • Visual mode & registers — select multiple commits or files in visual mode (V / v) to batch-operate on them. Yank multiple change/commit IDs into a named register (e.g. "ayc) and pass that register to duplicate/cherry-pick mappings (e.g. "app, "apb, "apP).
  • Safe concurrency — only one jj command runs at a time per workspace (tracked via Neovim's 'busy' buffer option); parallel commands in the same workspace are ignored with a warning while other workspaces remain responsive.

Only primary keybindings are listed below (aliases are omitted for brevity). Press g? in any jiejie buffer or run :help jiejie for the complete reference.

Navigation & Window

Key Action
<CR> Edit change or file
o / gO / O Open file in split / vertical split / tab
K Preview change
<Tab> Next file or hunk (auto-expands inline diff)
( / ) Prev / next change or file
{ / } Prev / next change
[m / ]m Prev / next file
[[ / ]] Prev / next section
<C-a> / <C-x> Show more / fewer revisions
R Reload log
U Update stale working copy
q / gq Close log window / close preview
. / !! Pre-populate : or :! command with file
yy / yc / yC Copy commit message or filename / change ID / commit ID
g? Show help

Diffs

Key Action
= Toggle inline diff
da Annotate (blame) file under cursor
dd / dD Diff file vs @ / vs ancestors
dv / dV Vertical diff vs @ / vs ancestors
dh / dH Horizontal diff vs @ / vs ancestors
dq Close diff
d? Diff help

Changes & Commits

Key Action
cc Commit change or file
ca / cA Absorb change or file / into selected change(s)
ce / cd Edit description / edit first line
cE Update author & timestamp (metaedit)
cf / cF Fix change(s) / all lines
a / A Append change after cursor (A: --no-edit)
i / I Insert change before cursor (I: --no-edit)
cn cN New branch after change / changes
cm / cM / crB Merge @ with change / any change / any bookmark
cs / cS / ci / cI Squash (interactively) into parent or change / into any change
S / gS Split change or file interactively / onto any change
pp / pP Duplicate @ onto change / onto any change
pb / pB / pt Duplicate @ onto branch bookmark / any bookmark / any tag
cR Revert change
X Abandon change or restore file
x Untrack file (!x to track)
u / <C-r> Undo / redo operation
c<Space> / s<Space> Pre-populate :Jj commit / :Jj squash
c? Commit help

Rebasing

Key Action
<< / >> Shift @ after / before change
rr / rR Rebase @+branch onto change / any change
rs / rS Rebase @+descendants onto change / any change
ro / rO Rebase @ onto change / any change
rtb / rts / rto Rebase @+branch / @+descendants / @ onto trunk()
rbb / rbB, rbs / rbS, rbo / rbO Rebase @+branch / @+descendants / @ onto branch bookmark / any bookmark
rTb / rTs / rTo Rebase @+branch / @+descendants / @ onto any tag
r<Space> Pre-populate :Jj rebase
r? Rebase help

Bookmarks & Tags

Key Action
cbc / cba Create bookmark / advance closest bookmark here
cbm / cbM / cbt Move branch bookmark / any bookmark / trunk() here
cbr / cbR Rename bookmark here / any bookmark
cbk / cbK / cbu Track local / remote / untrack bookmark
ctk / ctK / ctu Track local / remote / untrack tag
cbf / cbF Forget bookmark here / any bookmark (locally)
cbx / cbX Delete bookmark here / any bookmark (incl. remote)
ctc / ctm Create tag / move any tag here
ctx / ctX Delete tag here / any tag

Workspaces

Key Action
ga Add workspace after change
gw Switch to another workspace's log buffer
gR Rename current workspace
gF Forget workspace (keeps files on disk)
gX Remove workspace

Git

Key Action
gA Git push everything to all remotes
gu Git fetch all remotes
gp / gP Git push / push to specific remote
gra / grA Git push all bookmarks / to specific remote
grb / grB Git push bookmark here / any bookmark to specific remote
grt / grT Git push tags / to specific remote

Views, Filters & Logs

Key Action
[count]ss / [count]sq Switch log view / close dynamic view
sa / sA Filter by author here / prompt for author
sb / sB View bookmark + direct children / + all children
sd Filter by description
sf Filter by change or file
sr Filter by revset
st / sT View tag + direct children / + all children
so / sO Open operation log (horizontal / vertical)
se / sE Open evolution log (horizontal / vertical)
s? View/filter help

Visual Mode

In the status log buffer, visual selections (v / V) work on:

Mappings Visual selection behavior
yy / yc / yC Copy multiple filenames or descriptions / change IDs / commit IDs
pp, pP, pb, pB, pt Duplicate all selected commits onto @ (pp) or the chosen target
X Abandon selected commits (confirms if >1) or restore selected files in 1 commit
x Untrack (!x: track) all selected files in @
cc Commit all selected files from @
ca, cA Absorb selected files from 1 commit, or (cA) absorb @ into selected commits
cs, cS, ci, cI, S, gS Squash or interactively split selected files within a single commit
cR / cm / cE / cf / cF Revert / merge / metaedit / fix for selected commits
<< / >> Shift all selected commits up / down
rr / rR, rs / rS, ro / rO, rb*, rt* Rebase all selected commits onto @ or the chosen target
= / sf Toggle inline diffs / create dynamic view for all selected files or changes
. / !! Pre-populate : or :! with all selected file paths

Operation Log (:J oplog) & Evolution Log (:J evolog)

Key Operation Log Evolution Log
<CR> Restore operation Edit change
K Preview operation Preview change
so / sO Open status log (horizontal / vertical) —
se / sE — Open status log (horizontal / vertical)
R Reload oplog Reload evolog
<C-a> / <C-x> Show more / fewer revisions Show more / fewer revisions
q Close oplog window Close evolog window
g? Show help Show help

Limitations

Roadmap

See ROADMAP.md.

References

Explorer des projets similaires

Chargement…