70 Commits
Author SHA1 Message Date
Nicolas GBandGitHub 15f842fb3d feat(log): Implement squash --interactive from the log buffer (#145) 2026-07-24 19:48:30 +02:00
Nicolas GBandGitHub 3d10ae14be fix(status): Make restoring files available in visual mode (#144) 2026-07-24 17:47:24 +02:00
NicolasGB cf11a4ffec feat(assets): Add jj.nvim logo 2026-07-24 17:41:00 +02:00
Nicolas GBandGitHub b3ac14928c support: Setup bmac (#136) 2026-07-08 15:27:16 +02:00
Nicolas GBandGitHub 7f2786ff16 refactor!: Migrate runners cmd from string to argv (#134)
Migrate command execution to structured argv lists across the plugin, replacing shell-string command construction with `vim.system` argv execution. The runner API now exposes argv-based execution as the default path:

   - `runner.execute_command` -> `runner.execute`
   - `runner.execute_command_async` -> `runner.execute_async`
   - `runner.execute_command_raw` -> `runner.execute_raw`
   - `runner.execute_command_raw_async` -> `runner.execute_raw_async`
   - `runner.execute_command_sync` was removed; use `runner.execute` and handle the result directly

BREAKING CHANGES:
   - `cmd.new({ args = ... })` now requires `args` as `string[]` argv tokens, not a single string.
   - `cmd.log({ ... })` now uses `raw_flags` as `string[]` for raw passthrough flags; `raw = "..."` is no longer supported.
   - Direct users of `jj.core.runner` must migrate from the old `execute_command*` string helpers to the new argv-based `execute*` helpers.
2026-07-07 18:25:30 +02:00
Björn SteinbrinkandGitHub f217b16699 feat(picker): Add picker to navigate conflict sections (#131) 2026-06-23 09:59:42 +02:00
Nicolas GBandGitHub 30d740024d feat(picker): Fallback to vim.ui.select in all pickers (#126) 2026-06-18 20:08:58 +02:00
Nicolas GBandGitHub af14ce8eda feat(picker): Add a conflict picker (#119) 2026-06-18 20:03:27 +02:00
Nicolas GBandGitHub 7fc91fe6d2 feat(resolve): add resolve command and log integration (#125)
Add first-class conflict resolution support to jj.nvim.

   - add `jj.cmd.resolve` to run `jj resolve` in a floating terminal or via an
     external tool
   - add `:J resolve` with support for `-r/--revision`, `--tool`,
     `--external/--ext`, and positional filesets
   - integrate resolve into the log buffer with the `gr` mapping and optional
     `resolve_strategies` picker
   - add `utils.is_change_conflicted()` and avoid opening resolve when the
     selected revision has no conflicts
   - document resolve usage, config, and keymaps in the README
   - add tests for resolve arg parsing and conflict detection helpers
2026-06-16 19:06:33 +02:00
Nicolas GBandGitHub 9f2a76d079 feat(push): Add the possibility to push to arbitrary remotes through the vim command (#124) 2026-06-16 18:46:46 +02:00
Nicolas GBandGitHub 33179e2f15 feat(duplicate): Add a duplication mode (#118) 2026-06-08 09:09:28 +02:00
Nicolas GBandGitHub 5558c22471 feat(editor): Add the possibility to configure a window for the editor like in the terminal allowing for "hsplit"/"vsplit"/"tab"/"floating" (#114) 2026-05-19 18:04:44 +02:00
Björn SteinbrinkandGitHub 5a0b756570 feat(picker): add <C-d> keybinding to open file and run Jdiff (#110)
In the status picker, pressing Ctrl-d opens the selected file in the
current window and immediately runs :Jdiff, so the diff view follows
without a second step.
2026-05-15 06:14:24 -07:00
larpiandGitHub a2d194d49e feat(log): add bookmark deletion command (#106) 2026-05-05 17:25:13 +02:00
NicolasGB 46932e5410 feat(log/summary): Add o keymap from the summary that allows users to
do the equivalent of `Jtabedit` of the file in under the cursor
2026-04-28 17:52:34 +02:00
53a3196210 Feat: Add file module with Jread, Jedit, Jsplit , Jvsplit and Jtabedit similar to fugitive's (#105)
Co-authored-by: NicolasGB <ngou0210@gmail.com>
2026-04-26 09:50:26 -07:00
NicolasGB 2dbe2c73c5 fix(terminal): make cursor_render_delay optional in the typesystem 2026-04-07 10:44:02 +02:00
Jonas ElhsandGitHub 46141a282e feat!(terminal): unify terminal window behavior and centralize sizing config (#102)
- add terminal.window.type support (hsplit, vsplit, floating, tab)
- add terminal.window.split_size for split-based layouts
- rename floating size options to terminal.window.floating_width/floating_height
- validate terminal window ratios during setup
- make terminal.run/run_floating merge default keymaps internally
- remove cmd.split width/height sizing in favor of terminal.window config
- improve floating/log buffer state handling and refresh behavior
- update README examples and configuration docs

BREAKING CHANGE: terminal sizing/config moved to terminal.window.*.
Removed cmd.split.width/cmd.split.height.
Renamed terminal.window.width/height to terminal.window.floating_width/floating_height
2026-04-07 10:31:12 +02:00
Naoki MizunoandGitHub a6e163bcc3 feat(log/keymap): add keymaps to move on revision in log buffer (#100) 2026-03-19 11:06:53 +01:00
Naoki MizunoandGitHub 6580bb93ba docs(readme): update default config section (#99) 2026-03-18 09:41:45 +01:00
NicolasGB d471a03685 docs(readme): Document the bookmark track native usage 2026-03-12 18:10:06 +01:00
NicolasGB 3b6f46b9f6 docs(readme): Document the new editor.auto_insert config option 2026-03-12 18:04:39 +01:00
NicolasGB d357409268 feat(log): Add change_revset keybind to change the current log revset
being displayed in the log command
2026-03-12 18:04:39 +01:00
NicolasGB 80caa923c2 feat(cmd): Implement the bookmark forget as a native function 2026-03-12 18:04:39 +01:00
Nicolas GBandGitHub 1c3d38a626 feat(diff): Add the diff_history command (#97)
This new command is natively implemented by both the `codediff` and `diffview` backends allowing to easily navigate the changes between two revsets while diffing the. 

It also gives a new `:J diff_hisotyr` command that optionally takes a range of revsets formatted `<rev1>..<rev2>` otherwise it prompts the user for the range.
2026-03-12 18:03:23 +01:00
Nicolas GBandGitHub 138044c7e3 feat(browse): add :Jbrowse to open current file on remote (#89) 2026-02-22 09:05:13 -08:00
Nicolas GBandGitHub 19db4e8178 feat(tag): Implement set/delete/push (push only colocated repistories) (#84) 2026-02-22 08:53:51 -08:00
NicolasGB 3d78c28f7e feat(split): add jj split command with interactive floating terminal
Add split command that allows splitting a change into multiple revisions
    from the log buffer or via :J split. Supports --parallel, --message,
    --fileset, and --ignore-immutable flags. Includes immutability checks
    with user confirmation and empty change detection.
2026-02-13 18:44:27 +01:00
NicolasGB 400a3a5263 fix(describe/keymaps): Remove <ESC> from default keymap which may not be a
sensitive default after some users feedback
2026-02-02 17:08:39 +01:00
NicolasGB 470bc244e9 fix(readme): Fix some typos and update outdated info 2026-01-25 19:02:09 +01:00
Nicolas GBandGitHub 335663c3ee Feat: Rewrite diff module to allow for external dependencies as jj.nvim's diff tool (#74)
- Refactor diff into modular architecture (native, diffview, codediff)
- Add the possibility for users to define their own diff backend
- Support external diff tools like diffview.nvim codediff.nvim
- Enable visual mode selection to diff two changes in log buffer
- Add summary tooltip integration with terminal
- Update documentation with new diff workflows
2026-01-25 09:39:31 -08:00
Nicolas GBandGitHub 8ed2aa52aa feat(log): Add summary view (#70)
Display a summary of changed files for any revision in the log buffer
using a floating tooltip. From the tooltip, users can diff or edit
specific files directly.

- Add summary tooltip triggered by <S-k> in log buffer
- Integrate tooltip as stateful component of terminal
- Make summary keymaps configurable
- Add documentation and demo gif
2026-01-25 09:25:06 -08:00
NicolasGB 9a20b24849 feat(cmd): Add jj commit as a native command 2026-01-22 11:00:07 +01:00
NicolasGB 9d9e2379fd feat(log): Implement squash and quick squash from the log buffer.
- Squash: behaves like rebase, the user can select 1 or more
      revisions to squash and then a destination
    - Quick squash: `-r {rev} -u --ignore-immutable` flag from jj allowing
      for quick visuall squashes
2026-01-08 18:29:04 +01:00
NicolasGB ba48ed08b5 feat(log): add immutable-ignoring rebase keymaps
Changes add support for rebasing while ignoring immutability constraints with new keymaps (<S-CR>, <S-o>, <S-a>, <S-b>) and update documentation. Refactors rebase handler to accept optional ignore_immut parameter and includes minor comment improvements in buffer and command modules.
2026-01-06 13:20:19 +01:00
NicolasGB 8c6a656810 fix(readme): Update default config following structure changes 2026-01-02 19:00:45 +01:00
NicolasGB 4b8d4130ff readme: Improve readme with a Table of contents 2026-01-02 18:57:35 +01:00
Nicolas GBandGitHub 12e91e547d feat: Rebase on log buffer (#62)
Now it is possible to rebase interactively from the log buffer with visual feedback. You can rebase one or many visually selected changes.

Supported target modes are: `-o` / `-A` / `-B`.

Limitation:
	- As of now you cannot rebase a whole branch (-b) from the log view.

Bonus from this pr:
	- Now keymaps support different modes
2026-01-02 18:41:59 +01:00
NicolasGB 0dea8bfd5a readme: update it with annotate info 2025-12-29 20:53:05 +01:00
Nicolas GBandGitHub 6eb41f631e Feat: Annotation by file and line (#55) 2025-12-29 11:46:35 -08:00
NicolasGB be8cacae9d fix(readme): Mention correct default keybind for opening a pr 2025-12-19 17:02:49 +10:00
NicolasGB 1fd8faed4b feat(bookmark): add prefix configuration for bookmark creation
- Add `prefix` option to `bookmark_create()` function for setting default bookmark names
- Add `bookmark.prefix` configuration option for global bookmark prefix defaults
- Update README with bookmark prefix usage examples
2025-12-18 19:43:36 +10:00
NicolasGB ddfd6e0b56 fix(readme): Fix broken identation 2025-11-27 22:11:49 +01:00
Nicolas GBandGitHub d63761e1bf feat(bookmark): add bookmark management from log buffer and bookmark_move API (#51) 2025-11-27 22:07:22 +01:00
NicolasGB 8350606dab feat(cmd): add platform-agnostic PR/MR opening functionality 2025-11-27 20:58:34 +01:00
NicolasGB e22bf5ec4e feat: Add fetch/push commands and log keybinds, make long-running operations non-blocking
Convert blocking jj commands to async using vim.fn.jobstart() to prevent UI
freezing during fetch, push, rebase, squash, and other heavy operations.

Changes:
- Implement execute_command_async() in runner with proper error handling
  - Captures stdout from job and passes to success callback
  - Supports stdin input for commands that require it
  - Includes silent flag to suppress error notifications
  - Replicates sync version's error handling behavior

- Convert blocking operations to async:
  - handle_log_fetch, handle_log_push_all, handle_log_new
  - handle_log_edit, handle_log_abandon, handle_log_describe
  - describe.execute_describe, all init.lua commands

- Add push/fetch as public commands with CLI support:
  - M.fetch() - fetch from remote
  - M.push(opts) - push all changes or specific bookmark
  - CLI: :J push, :J push <bookmark>, :J fetch

- Implement handle_log_push_bookmark() for revision under cursor:
  - Retrieves and strips modified bookmark indicator (*)
  - Pushes specific bookmark to remote
  - Keybind: Shift+p in log buffer

- Update README with new keybinds:
  - a: abandon revision under cursor
  - f: fetch from remote
  - p: push all changes
  - Shift+p: push revision's bookmark

- Add Lua API docs for push command options
2025-11-27 20:58:34 +01:00
Nicolas GBandGitHub 10c611eaab feat: add close_on_edit config for log buffer (#48)
- Add close_on_edit option to close log buffer after editing a change (default: false)
- Rename handle_log_enter to handle_log_edit with close_on_exit parameter
- Update log keymaps to pass close_on_edit config to handlers
- Update config types and defaults in init.lua
2025-11-26 15:48:56 +01:00
NicolasGB a9f0ca0031 fix: update readme with correct module initialization for the lua api 2025-11-25 18:10:47 +01:00
NicolasGB 7329e89a85 feat(terminal): add configurable cursor render delay for terminal buffers
Add cursor position restoration with configurable timing to handle terminal
     buffer rendering asynchronously. This fixes cursor column being reset to 0
     when refreshing jj log commands.

     Changes:
     - Add `terminal.cursor_render_delay` configuration option (default: 10ms)
     - Add buffer.get_cursor() and buffer.set_cursor() helpers in core/buffer
       * buffer.set_cursor() uses defer_fn with configurable delay for terminal buffers
       * Automatic position validation with clamping to buffer bounds
       * Line number clamped to [1, line_count]
       * Column clamped to [0, line_length] based on actual line content
       * Validation happens inside deferred callback to check against final rendered content
     - Extract clamp_cursor_position() helper to eliminate code duplication
     - Refactor terminal module to use new buffer cursor helpers
     - Store and restore cursor position when cycling through log commands
     - Update README with terminal configuration section and example usage

     The delay is necessary because nvim_open_term() + nvim_chan_send() have
     asynchronous rendering in the terminal emulator layer. Setting the cursor
     before rendering completes results in the column being reset to 0. Users
     experiencing issues can increase the delay value if needed.
2025-11-25 09:10:12 +01:00
NicolasGB e78c35846a BREAKING: Complete restructuring of plugin architecture and configuration. Please check the new readme to update your config if needed. Lua api remains unchanged 2025-11-23 16:37:35 +01:00