repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

fighting with git config on win32, again...

53cb88a0fb7f24c60f5ab8c20d873b382063b5b6

Oliver Krylow <o.krylow@isp-insoft.de> ·

unsigned

Browse filesCompare with HEAD

Changed files (22)

+1016 / −3563 text lines

Diff layout

NB-00718.symlinks

Modified

+80 / −83 text lines

1wezterm
2~/.config/wezterm
3
4neovim
5~/AppData/Local/nvim
6
7nushell/completions
8~/AppData/Roaming/nushell/completions
9
10nushell/scripts
11~/AppData/Roaming/nushell/scripts
13nushell/config.nu
14~/AppData/Roaming/nushell/config.nu
16nushell/env.nu
17~/AppData/Roaming/nushell/env.nu
19nushell/login.nu
20~/AppData/Roaming/nushell/login.nu
22nushell/gen-aliases.nu
23~/AppData/Roaming/nushell/gen-aliases.nu
25bat/config
26~/AppData/Roaming/bat/config
28bottom
29~/AppData/Roaming/bottom
31git/gitconfig
32~/.config/git/config
34git/gitconfig.isp
35~/.config/git/.gitconfig.include
37neovide
38~/AppData/Roaming/neovide
40ssh
41~/.ssh/config
43starship
44~/.config/starship
46subversion/config
47~/AppData/Roaming/Subversion/config
49subversion/diff.cmd
50X:/bin/diff.cmd
52subversion/merge.cmd
53X:/bin/merge.cmd
55topgrade/topgrade.toml
56~/AppData/Roaming/topgrade.toml
58topgrade/win32.toml
59~/AppData/Roaming/topgrade.d/win32.toml
61topgrade/lnx.toml
62~/AppData/Roaming/topgrade.d/lnx.toml
64yazi/init.lua
65~/.config/yazi/init.lua
67yazi/package.toml
68~/.config/yazi/package.toml
70yazi/keymap.toml
71~/.config/yazi/keymap.toml
73yazi/theme.toml
74~/.config/yazi/theme.toml
76yazi/yazi.toml
77~/.config/yazi/yazi.toml
79zed\keymap.json
80~/AppData/Roaming/zed/keymap.json
82zed\settings.json.json
83~/AppData/Roaming/zed/settings.json
1wezterm
2~/.config/wezterm
3
4neovim
5~/AppData/Local/nvim
6
7mini-nvim
8~/AppData/Local/mini-nvim
9
10nushell/completions
11~/AppData/Roaming/nushell/completions
12
13nushell/scripts
14~/AppData/Roaming/nushell/scripts
15
16nushell/config.nu
17~/AppData/Roaming/nushell/config.nu
18
19nushell/env.nu
20~/AppData/Roaming/nushell/env.nu
21
22nushell/login.nu
23~/AppData/Roaming/nushell/login.nu
24
25nushell/gen-aliases.nu
26~/AppData/Roaming/nushell/gen-aliases.nu
27
28bat/config
29~/AppData/Roaming/bat/config
30
31bottom
32~/AppData/Roaming/bottom
33
34git/gitconfig
35~/.config/git/config
36
37git/gitconfig.isp
38~/.config/git/.gitconfig.include
39
40neovide
41~/AppData/Roaming/neovide
42
43ssh
44~/.ssh/config
45
46starship
47~/.config/starship
48
49subversion/config
50~/AppData/Roaming/Subversion/config
51
52subversion/diff.cmd
53X:/bin/snv.diff.cmd
54
55subversion/merge.cmd
56X:/bin/snv.merge.cmd
57
58topgrade/topgrade.toml
59~/AppData/Roaming/topgrade.toml
60
61topgrade/win32.toml
62~/AppData/Roaming/topgrade.d/win32.toml
63
64yazi/init.lua
65~/AppData/Roaming/yazi/config/init.lua
66
67yazi/package.toml
68~/AppData/Roaming/yazi/config/package.toml
69
70yazi/keymap.toml
71~/AppData/Roaming/yazi/config/keymap.toml
72
73yazi/yazi.toml
74~/AppData/Roaming/yazi/config/yazi.toml
75
76zed\keymap.json
77~/AppData/Roaming/zed/keymap.json
78
79zed\settings.json
80~/AppData/Roaming/zed/settings.json

fedora.symlinks

Modified

+143 / −140 text lines

1git/gitconfig
2~/.config/git/config
3
4git/gitconfig.bugabinga
5~/.config/git/.gitconfig.include
6
7gh
8~/.config/gh
9
10subversion/config
11~/.subversion/config
13subversion/diff
14~/.local/bin/svn.diff
16subversion/merge
17~/.local/bin/svn.merge
19tools/git-info
20~/.local/bin/git-info
22cargo/config.toml
23~/.cargo/config.toml
25bat/config
26~/.config/bat/config
28nushell/config.nu
29~/.config/nushell/config.nu
31nushell/env.nu
32~/.config/nushell/env.nu
34nushell/login.nu
35~/.config/nushell/login.nu
37nushell/gen-aliases.nu
38~/.config/nushell/gen-aliases.nu
40nushell/scripts
41~/.config/nushell/scripts
43nushell/completions
44~/.config/nushell/completions
46topgrade/topgrade.toml
47~/.config/topgrade.toml
49wezterm
50~/.config/wezterm
52wezterm/wezterm.service
53~/.config/systemd/user/wezterm.service
55ssh/config
56~/.ssh/config
58neovim
59~/.config/nvim
61mini-nvim
62~/.config/nvim
64environment.d
65~/.config/environment.d
67fonts
68~/.local/share/fonts
70fontconfig
71~/.config/fontconfig
73neovide
74~/.config/neovide
76zed/keymap.json
77~/.config/zed/keymap.json
79zed/settings.json
80~/.config/zed/settings.json
82rbw
83~/.config/rbw
85broot
86~/.config/broot
88aerc/binds.conf
89~/.config/aerc/binds.conf
91aerc/aerc.conf
92~/.config/aerc/aerc.conf
94unison/common
95~/.unison/common
97unison/fedora.prf
98~/.unison/fedora.prf
100unison/graphical
101~/.unison/graphical
103unison/ignores
104~/.unison/ignores
106unison/service
107~/.unison/service
109unison/sync
110~/.unison/sync
112unison/unison@.service
113~/.config/systemd/user/unison@.service
115pueue
116~/.config/pueue
118pueue/pueued.service
119~/.config/systemd/user/pueued.service
121firefox/profiles.ini
122~/.mozilla/firefox/profiles.ini
124firefox/qrza8u52.default-release/user.js
125~/.mozilla/firefox/qrza8u52.default-release/user.js
127yazi/init.lua
128~/.config/yazi/init.lua
130yazi/package.toml
131~/.config/yazi/package.toml
133yazi/keymap.toml
134~/.config/yazi/keymap.toml
136yazi/theme.toml
137~/.config/yazi/theme.toml
139yazi/yazi.toml
140~/.config/yazi/yazi.toml
1git/gitconfig
2~/.config/git/config
3
4git/gitconfig.bugabinga
5~/.config/git/.gitconfig.include
6
7gh
8~/.config/gh
9
10subversion/config
11~/.subversion/config
12
13subversion/diff
14~/.local/bin/svn.diff
15
16subversion/merge
17~/.local/bin/svn.merge
18
19tools/git-info
20~/.local/bin/git-info
21
22cargo/config.toml
23~/.cargo/config.toml
24
25bat/config
26~/.config/bat/config
27
28nushell/config.nu
29~/.config/nushell/config.nu
30
31nushell/env.nu
32~/.config/nushell/env.nu
33
34nushell/login.nu
35~/.config/nushell/login.nu
36
37nushell/gen-aliases.nu
38~/.config/nushell/gen-aliases.nu
39
40nushell/scripts
41~/.config/nushell/scripts
42
43nushell/completions
44~/.config/nushell/completions
45
46topgrade/topgrade.toml
47~/.config/topgrade.toml
48
49topgrade/lnx.toml
50~/.config/topgrade.d/lnx.toml
51
52wezterm
53~/.config/wezterm
54
55wezterm/wezterm.service
56~/.config/systemd/user/wezterm.service
57
58ssh/config
59~/.ssh/config
60
61neovim
62~/.config/nvim
63
64mini-nvim
65~/.config/nvim
66
67environment.d
68~/.config/environment.d
69
70fonts
71~/.local/share/fonts
72
73fontconfig
74~/.config/fontconfig
75
76neovide
77~/.config/neovide
78
79zed/keymap.json
80~/.config/zed/keymap.json
81
82zed/settings.json
83~/.config/zed/settings.json
84
85rbw
86~/.config/rbw
87
88broot
89~/.config/broot
90
91aerc/binds.conf
92~/.config/aerc/binds.conf
93
94aerc/aerc.conf
95~/.config/aerc/aerc.conf
96
97unison/common
98~/.unison/common
99
100unison/fedora.prf
101~/.unison/fedora.prf
102
103unison/graphical
104~/.unison/graphical
105
106unison/ignores
107~/.unison/ignores
108
109unison/service
110~/.unison/service
111
112unison/sync
113~/.unison/sync
114
115unison/unison@.service
116~/.config/systemd/user/unison@.service
117
118pueue
119~/.config/pueue
120
121pueue/pueued.service
122~/.config/systemd/user/pueued.service
123
124firefox/profiles.ini
125~/.mozilla/firefox/profiles.ini
126
127firefox/qrza8u52.default-release/user.js
128~/.mozilla/firefox/qrza8u52.default-release/user.js
129
130yazi/init.lua
131~/.config/yazi/init.lua
132
133yazi/package.toml
134~/.config/yazi/package.toml
135
136yazi/keymap.toml
137~/.config/yazi/keymap.toml
138
139yazi/theme.toml
140~/.config/yazi/theme.toml
141
142yazi/yazi.toml
143~/.config/yazi/yazi.toml

git/gitconfig

Modified

+116 / −116 text lines

1[alias]
2 # `git log` with patches shown with difftastic.
3 dl = -c diff.external=difft log -p --ext-diff
4
5 # Show the most recent commit with difftastic.
6 ds = -c diff.external=difft show --ext-diff
7
8 # `git diff` with difftastic.
9 dft = -c diff.external=difft diff
11 ci = commit --all
13 st = status
15[core]
16 editor = nvim
17 quotepath = false
18 autocrlf = input
19 pager = delta
20 safecrlf = false
21 symlinks = true
22 fscache = true
23 preloadIndex = true
25[help]
26 format = html
28[color]
29 interactive = true
30 ui = auto
32[rebase]
33 autosquash = true
35[diff]
36 colorMoved = default
37 tool = difftastic
39[difftool]
40 prompt = false
42[difftool "meld"]
43 cmd = "meld \"$LOCAL\" \"$REMOTE\""
45[difftool "difftastic"]
46 cmd = "difft \"$LOCAL\" \"$REMOTE\""
48[pager]
49 difftool = true
51[merge]
52 tool = vim
54[mergetool]
55 keepBackup = false
56 prompt = false
58[mergetool "meld"]
59 cmd = "meld \"$LOCAL\" \"$MERGED\" \"$REMOTE\" "
61[mergetool "vim"]
62 cmd = "nvim -d \"$LOCAL\" \"$MERGED\" \"$REMOTE\" "
64[push]
65 autoSetupRemote = true
66 default = "upstream"
68[pull]
69 rebase = false
71[interactive]
72 diffFilter = delta --color-only
74[delta]
75 side-by-side = true
76 line-numbers = true
77 decorations = true
78 navigate = true
79 syntax-theme = none
81[interactive]
82 diffFilter = delta --color-only
84[init]
85 defaultBranch = trunk
87[commit]
88 verbose = true
90[help]
91 # try to automatically correct mispelled git commands
92 autocorrect = 1
94[difftool "difftastic"]
95 # See `man git-difftool` for a description of MERGED, LOCAL and REMOTE.
96 cmd = difft "$MERGED" "$LOCAL" "abcdef1" "100644" "$REMOTE" "abcdef2" "100644"
98[difftool]
99 # Run the difftool immediately, don't ask 'are you sure' each time.
100 prompt = false
102[pager]
103 # Use a pager if the difftool output is larger than one screenful,
104 # consistent with the behaviour of `git diff`.
105 difftool = true
107[diff]
108 # Set difftastic as the default difftool, so we don't need to specify
109 # `-t difftastic` every time.
110 tool = difftastic
112# In order to have host-specific configuration, I include additional settings here.
113# On each host a different file might be symlinked into '.gitconfig.include'.
114[include]
115 path = .gitconfig.include
1[alias]
2 # `git log` with patches shown with difftastic.
3 dl = -c diff.external=difft log -p --ext-diff
4
5 # Show the most recent commit with difftastic.
6 ds = -c diff.external=difft show --ext-diff
7
8 # `git diff` with difftastic.
9 dft = -c diff.external=difft diff
10
11 ci = commit --all
12
13 st = status
14
15[core]
16 editor = nvim
17 quotepath = false
18 autocrlf = false
19 pager = delta
20 safecrlf = false
21 symlinks = true
22 fscache = true
23 preloadIndex = true
24
25[help]
26 format = html
27
28[color]
29 interactive = true
30 ui = auto
31
32[rebase]
33 autosquash = true
34
35[diff]
36 colorMoved = default
37 tool = difftastic
38
39[difftool]
40 prompt = false
41
42[difftool "meld"]
43 cmd = "meld \"$LOCAL\" \"$REMOTE\""
44
45[difftool "difftastic"]
46 cmd = "difft \"$LOCAL\" \"$REMOTE\""
47
48[pager]
49 difftool = true
50
51[merge]
52 tool = vim
53
54[mergetool]
55 keepBackup = false
56 prompt = false
57
58[mergetool "meld"]
59 cmd = "meld \"$LOCAL\" \"$MERGED\" \"$REMOTE\" "
60
61[mergetool "vim"]
62 cmd = "nvim -d \"$LOCAL\" \"$MERGED\" \"$REMOTE\" "
63
64[push]
65 autoSetupRemote = true
66 default = "upstream"
67
68[pull]
69 rebase = false
70
71[interactive]
72 diffFilter = delta --color-only
73
74[delta]
75 side-by-side = true
76 line-numbers = true
77 decorations = true
78 navigate = true
79 syntax-theme = none
80
81[interactive]
82 diffFilter = delta --color-only
83
84[init]
85 defaultBranch = trunk
86
87[commit]
88 verbose = true
89
90[help]
91 # try to automatically correct mispelled git commands
92 autocorrect = 1
93
94[difftool "difftastic"]
95 # See `man git-difftool` for a description of MERGED, LOCAL and REMOTE.
96 cmd = difft "$MERGED" "$LOCAL" "abcdef1" "100644" "$REMOTE" "abcdef2" "100644"
97
98[difftool]
99 # Run the difftool immediately, don't ask 'are you sure' each time.
100 prompt = false
101
102[pager]
103 # Use a pager if the difftool output is larger than one screenful,
104 # consistent with the behaviour of `git diff`.
105 difftool = true
106
107[diff]
108 # Set difftastic as the default difftool, so we don't need to specify
109 # `-t difftastic` every time.
110 tool = difftastic
111
112# In order to have host-specific configuration, I include additional settings here.
113# On each host a different file might be symlinked into '.gitconfig.include'.
114[include]
115 path = .gitconfig.include
116

git/gitconfig.isp

Modified

+14 / −10 text lines

1[user]
2 name = Oliver Krylow
3 email = o.krylow@isp-insoft.de
4
5[sendemail]
6 smtpserver = sslout.df.eu
7 smtpuser = o.krylow@isp-insoft.de
8 smtpencryption = ssl
9 smtpserverport = 465
10 annotate = yes
1[user]
2 name = Oliver Krylow
3 email = o.krylow@isp-insoft.de
4
5[gui]
6 fontui = -family \"PT Mono\" -size 12 -weight normal -slant roman -underline 0 -overstrike 0
7 fontdiff = -family Cousine -size 12 -weight normal -slant roman -underline 0 -overstrike 0
8
9[sendemail]
10 smtpserver = sslout.df.eu
11 smtpuser = o.krylow@isp-insoft.de
12 smtpencryption = ssl
13 smtpserverport = 465
14 annotate = yes

justfile

Modified

+30 / −50 text lines

1set shell := ["nu", "--commands"]
2
3default:
4 @just --list
5
6# validate config files
7# TODO: shell files
8# TODO: nushell files
9# TODO: json files
11# TODO: markdown files
12lint:
13 taplo lint
14 javac -Werror -Xlint:all bootstripper.java
15 rm bootstripper.class
16 lychee .
18# format config files
19# TODO: java files
20# TODO: nushell files
22# TODO: markdown files
23fmt:
24 just --fmt --unstable
25 taplo fmt
27# link dorkfiles into HOME
28link:
29 java bootstripper.java
31# remove links to dorkfiles in HOME
32unlink:
33 java bootstripper.java clean
35# Decrypts all my secrets in tresor, using password manager, if available.
36decrypt:
37 java bootstripper.java decrypt
39# install rust user land
40tools:
41 cd tools;java install.java
43# typically the initial git remote for the dotfiles repo is https
44# this command changes the remote to ssh
45ssh-remote:
46 git remote rm origin
47 git remote add origin git@github.com:bugabinga/dotfiles.git
49import_winget:
50 winget import X:/winget_installed_apps.json
1set shell := ["nu", "--commands"]
2
3default:
4 @just --list
5
6# link dorkfiles into HOME
7link:
8 java bootstripper.java
9
10# remove links to dorkfiles in HOME
11unlink:
12 java bootstripper.java clean
13
14# Decrypts all my secrets in tresor, using password manager, if available.
15decrypt:
16 java bootstripper.java decrypt
17
18# install rust user land
19tools:
20 cd tools;java install.java
21
22# typically the initial git remote for the dotfiles repo is https
23# this command changes the remote to ssh
24ssh-remote:
25 git remote rm origin
26 git remote add origin git@github.com:bugabinga/dotfiles.git
27
28# install previously exported winget apps. see topgrade config for exports.
29import_winget:
30 winget import X:/winget_installed_apps.json

mini-nvim/init.mini.win32.lua

Added
new file mode 100644

+295 / −0 text lines

1-- check out the mini.nvim suite
2-- stuff i already miss:
3-- - oil --> use MiniFiles for now
4-- - text-objects --> TODO: setup and combine with MiniAi
5-- - substitute --> cope. learn vim better.
6-- - nugu
7-- - lua treesitter conceals
8-- - save actions
9
10vim.opt.background = 'light'
11vim.opt.tabstop = 2
12vim.opt.softtabstop = 2
13vim.opt.shiftwidth = 2
14vim.opt.expandtab = true
15vim.opt.list = true
16vim.opt.listchars = 'tab:» ,lead:·,trail:·'
17
18local path_package = vim.fn.stdpath('data') .. '/site'
19local mini_path = path_package .. '/pack/deps/start/mini.nvim'
20if not vim.loop.fs_stat(mini_path) then
21 vim.cmd('echo "Installing `mini.nvim`" | redraw')
22 local clone_cmd = {
23 'git', 'clone', '--filter=blob:none',
24 '--branch', 'stable',
25 'https://github.com/echasnovski/mini.nvim', mini_path
26 }
27 vim.fn.system(clone_cmd)
28 vim.cmd('packadd mini.nvim | helptags ALL')
29end
30
31require('mini.basics').setup()
32require 'mini.icons' .setup{}
33vim.keymap.set('n', '<Esc><Esc>', vim.cmd.nohlsearch )
34vim.keymap.set('n', 'U', vim.cmd.redo )
35
36require 'mini.deps'.setup { path = { package = path_package } }
37-- TODO lazy loading and stuff
38local add, now, later = MiniDeps.add, MiniDeps.now, MiniDeps.later
39
40add {
41 source = 'neovim/nvim-lspconfig',
42 depends = { 'williamboman/mason.nvim' },
43}
44
45add {
46 source = 'nvim-treesitter/nvim-treesitter',
47 checkout = 'master',
48 monitor = 'main',
49 hooks = { post_checkout = function() vim.cmd('TSUpdate') end },
50}
51
52add { source = 'nushell/tree-sitter-nu' }
53
54add { source = 'RRethy/nvim-treesitter-endwise' }
55
56require('nvim-treesitter.configs').setup({
57 ensure_installed = { 'lua', 'vimdoc' },
58 endwise = { enable = true },
59 highlight = {
60 enable = true,
61 additional_vim_regex_highlighting = false,
62 },
63 indent = { enable = true },
64})
65
66add {
67 source = 'nvim-treesitter/nvim-treesitter-textobjects',
68}
69
70local spec_treesitter = require('mini.ai').gen_spec.treesitter
71require('mini.ai').setup({
72 custom_textobjects = {
73 f = spec_treesitter({ a = '@call.outer', i = '@call.inner' }),
74 m = spec_treesitter({ a = '@function.outer', i = '@function.inner' }),
75 c = spec_treesitter({ a = '@comment.outer', i = '@comment.inner' }),
76 a = spec_treesitter({ a = '@parameter.outer', i = '@parameter.inner' }),
77 o = spec_treesitter({
78 a = { '@conditional.outer', '@loop.outer' },
79 i = { '@conditional.inner', '@loop.inner' },
80 })
81 }
82})
83
84local palette = {
85 debug = '#ff00ff',
86 error = '#d6638b',
87 info = '#c7d0db',
88 warning = '#d9cbbb',
89
90 content_normal = '#2b2b2b',
91 content_backdrop = '#ededed',
92 content_accent = '#750b75',
93 content_minor = '#787878',
94 content_focus = '#267b8e',
95 content_unfocus = '#929292',
96 content_important_global = '#553d98',
97 content_important_local = '#8169c3',
98
99 ui_normal = '#1a1a1a',
100 ui_backdrop = '#ffffff',
101 ui_accent = '#5a265a',
102 ui_minor = '#a3a3a3',
103 ui_focus = '#53a5b7',
104 ui_unfocus = '#bdbdbd',
105 ui_important_global = '#897bb1',
106 ui_important_local = '#bab1d1',
107}
108
109require('mini.base16').setup({
110 palette = {
111 base00 = palette.content_backdrop,
112 base01 = palette.ui_backdrop,
113 base02 = palette.ui_minor,
114 base03 = palette.content_important_global,
115 base04 = palette.ui_normal,
116 base05 = palette.content_normal,
117 base06 = palette.content_normal,
118 base07 = palette.content_backdrop,
119 base08 = palette.content_normal,
120 base09 = palette.content_important_local,
121 base0A = palette.content_normal,
122 base0B = palette.content_important_local,
123 base0C = palette.content_important_local,
124 base0D = palette.content_focus,
125 base0E = palette.content_minor,
126 base0F = palette.content_minor,
127 },
128 use_cterm = true,
129 plugins = {
130 default = false,
131 ['echasnovski/mini.nvim'] = true,
132 },
133})
134vim.api.nvim_set_hl(0, 'Whitespace', {
135 fg = palette.ui_unfocus,
136})
137
138require('mini.hipatterns').setup({
139 highlighters = {
140 fixme = { pattern = 'FIXME:', group = 'MiniHipatternsFixme' },
141 hack = { pattern = 'HACK:', group = 'MiniHipatternsHack' },
142 todo = { pattern = 'TODO:', group = 'MiniHipatternsTodo' },
143 note = { pattern = 'NOTE:', group = 'MiniHipatternsNote' },
144 }
145})
146
147-- Set `<Leader>` before making any mappings and configuring 'mini.clue'
148vim.g.mapleader = ' '
149
150local nmap_leader = function(suffix, rhs, desc)
151 vim.keymap.set('n', '<Leader>' .. suffix, rhs, { desc = desc })
152end
153local xmap_leader = function(suffix, rhs, desc)
154 vim.keymap.set('x', '<Leader>' .. suffix, rhs, { desc = desc })
155end
156
157nmap_leader('bd', '<Cmd>lua MiniBufremove.delete()<CR>', 'Delete')
158nmap_leader('bw', '<Cmd>lua MiniBufremove.wipeout()<CR>', 'Wipeout')
159
160nmap_leader('lf', '<Cmd>lua vim.lsp.buf.format()<CR>', 'Format')
161xmap_leader('lf', '<Cmd>lua vim.lsp.buf.format()<CR>', 'Format')
162nmap_leader('lr', '<Cmd>lua vim.lsp.buf.rename()<CR>', 'Rename')
163nmap_leader('lR', '<Cmd>lua vim.lsp.buf.references()<CR>', 'References')
164local miniclue = require('mini.clue')
165miniclue.setup({
166 triggers = {
167 -- Leader triggers
168 { mode = 'n', keys = '<Leader>' },
169 { mode = 'x', keys = '<Leader>' },
170
171 -- Built-in completion
172 { mode = 'i', keys = '<C-x>' },
173
174 -- `g` key
175 { mode = 'n', keys = 'g' },
176 { mode = 'x', keys = 'g' },
177
178 -- Marks
179 { mode = 'n', keys = "'" },
180 { mode = 'n', keys = '`' },
181 { mode = 'x', keys = "'" },
182 { mode = 'x', keys = '`' },
183
184 -- Registers
185 { mode = 'n', keys = '"' },
186 { mode = 'x', keys = '"' },
187 { mode = 'i', keys = '<C-r>' },
188 { mode = 'c', keys = '<C-r>' },
189
190 -- Window commands
191 { mode = 'n', keys = '<C-w>' },
192
193 -- `z` key
194 { mode = 'n', keys = 'z' },
195 { mode = 'x', keys = 'z' },
196 },
197
198 clues = {
199 -- Enhance this by adding descriptions for <Leader> mapping groups
200 { mode = 'n', keys = '<Leader>b', desc = '+Buffers' },
201 { mode = 'n', keys = '<Leader>l', desc = '+LSP' },
202 { mode = 'i', keys = '<C-x><C-f>', desc = 'File names' },
203 { mode = 'i', keys = '<C-x><C-l>', desc = 'Whole lines' },
204 { mode = 'i', keys = '<C-x><C-o>', desc = 'Omni completion' },
205 { mode = 'i', keys = '<C-x><C-s>', desc = 'Spelling suggestions' },
206 { mode = 'i', keys = '<C-x><C-u>', desc = "With 'completefunc'" },
207 miniclue.gen_clues.builtin_completion(),
208 miniclue.gen_clues.g(),
209 miniclue.gen_clues.marks(),
210 miniclue.gen_clues.registers(),
211 miniclue.gen_clues.windows(),
212 miniclue.gen_clues.z(),
213 },
214})
215
216require 'mini.splitjoin' .setup{
217 mappings = {
218 toggle = 'gj',
219 join = '',
220 split = '',
221 },
222}
223
224require 'mini.bracketed' .setup()
225require 'mini.bufremove' .setup()
226require 'mini.completion' .setup {}
227require 'mini.diff' .setup{}
228require 'mini.git' .setup{}
229require 'mini.pick' .setup{}
230require 'mini.extra' .setup{}
231require 'mini.fuzzy' .setup{}
232require 'mini.operators'. setup {}
233require 'mini.jump2d' .setup{}
234require 'mini.move' .setup{}
235require 'mini.notify' .setup{}
236require 'mini.pairs' .setup{}
237require 'mini.sessions' .setup{}
238require 'mini.starter' .setup{}
239require 'mini.statusline' .setup{}
240require 'mini.tabline' .setup{}
241require 'mini.visits' .setup{}
242require 'mini.trailspace' .setup{}
243require 'mini.cursorword'.setup()
244
245require 'mini.surround'.setup{}
246
247require 'mini.misc'.setup()
248MiniMisc.setup_restore_cursor()
249
250require 'mini.files' .setup{
251 options = {
252 permanent_delete = false,
253 },
254}
255MiniFiles.toggle = function(...)
256 if not MiniFiles.close() then MiniFiles.open(...) end
257end
258vim.keymap.set('n', '-', MiniFiles.toggle)
259local map_split = function(buf_id, lhs, direction)
260 local rhs = function()
261 -- Make new window and set it as target
262 local cur_target = MiniFiles.get_explorer_state().target_window
263 local new_target = vim.api.nvim_win_call(cur_target, function()
264 vim.cmd(direction .. ' split')
265 return vim.api.nvim_get_current_win()
266 end)
267 MiniFiles.set_target_window(new_target)
268 end
269 -- Adding `desc` will result into `show_help` entries
270 local desc = 'Split ' .. direction
271 vim.keymap.set('n', lhs, rhs, { buffer = buf_id, desc = desc })
272end
273vim.api.nvim_create_autocmd('User', {
274 pattern = 'MiniFilesBufferCreate',
275 callback = function(args)
276 local buf_id = args.data.buf_id
277 -- Tweak keys to your liking
278 map_split(buf_id, '<C-s>', 'belowright horizontal')
279 map_split(buf_id, '<C-v>', 'belowright vertical')
280 end,
281})
282local set_mark = function(id, path, desc)
283 MiniFiles.set_bookmark(id, path, { desc = desc })
284end
285vim.api.nvim_create_autocmd('User', {
286 pattern = 'MiniFilesExplorerOpen',
287 callback = function()
288 set_mark('c', vim.fn.stdpath('config'), 'Config') -- path
289 set_mark('w', vim.fn.getcwd, 'Working directory') -- callable
290 set_mark('~', '~', 'Home directory')
291 end,
292})
293
294
295

neovide/config.toml

Modified

+38 / −39 text lines

1fork = true
2frame = "none"
3maximized = true
4tabs = true
5theme = "auto"
6wsl = true
7
8[font]
9size = 15.0
10edging = "supixelantialias"
11hinting = "none"
13[[font.normal]]
14family = "Cousine"
15style = "Regular"
16[[font.normal]]
17family = "Symbols Nerd Font Mono"
18style = "Regular"
20[[font.bold]]
21family = "Fantasque Sans Mono"
22style = "Bold"
23[[font.bold]]
24family = "Symbols Nerd Font Mono"
25style = "Bold"
27[[font.italic]]
28family = "Victor Mono"
29style = "Oblique"
30[[font.italic]]
31family = "Symbols Nerd Font Mono"
32style = "Oblique"
34[[font.bold_italic]]
35family = "Victor Mono"
36style = "Bold Italic"
37[[font.bold_italic]]
38family = "Symbols Nerd Font Mono"
39style = "Bold Italic"
1fork = true
2frame = "none"
3maximized = true
4tabs = true
5theme = "auto"
6
7[font]
8size = 15.0
9edging = "supixelantialias"
10hinting = "none"
11
12[[font.normal]]
13family = "Cousine"
14style = "Regular"
15[[font.normal]]
16family = "Symbols Nerd Font Mono"
17style = "Regular"
18
19[[font.bold]]
20family = "Fantasque Sans Mono"
21style = "Bold"
22[[font.bold]]
23family = "Symbols Nerd Font Mono"
24style = "Bold"
25
26[[font.italic]]
27family = "Victor Mono"
28style = "Oblique"
29[[font.italic]]
30family = "Symbols Nerd Font Mono"
31style = "Oblique"
32
33[[font.bold_italic]]
34family = "Victor Mono"
35style = "Bold Italic"
36[[font.bold_italic]]
37family = "Symbols Nerd Font Mono"
38style = "Bold Italic"

neovim/lazy-lock.json

Modified

+14 / −6 text lines

11{
22 "Comment.nvim": { "branch": "master", "commit": "e51f2b142d88bb666dcaa77d93a07f4b419aca70" },
3 "CopilotChat.nvim": { "branch": "canary", "commit": "6b24e85210008569fcbc889c525cbc7828deafc2" },
34 "blink.cmp": { "branch": "main", "commit": "75cadbcd2657ed01326ca2b0e5e4d78a77127ca3" },
5 "cmd-parser.nvim": { "branch": "master", "commit": "6363b8bddef968c3ec51a38172af44f675f01ef3" },
46 "conform.nvim": { "branch": "master", "commit": "6239d9986f51ca93ded99ecdb1af0e287eabb651" },
7 "copilot-cmp": { "branch": "master", "commit": "b6e5286b3d74b04256d0a7e3bd2908eabec34b44" },
8 "copilot.lua": { "branch": "master", "commit": "f8d8d872bb319f640d5177dad5fbf01f7a16d7d0" },
59 "decisive.nvim": { "branch": "main", "commit": "a7251adebccbc9c899cff39a524b20d06e2b78b5" },
610 "glance.nvim": { "branch": "master", "commit": "cdf1ec8136cfbdf73edbe1163097223c763a84b7" },
711 "heirline.nvim": { "branch": "master", "commit": "cc359b628266cb9a84b2d71c883f2b99e16473a0" },
812 "in-and-out.nvim": { "branch": "master", "commit": "ab24cafadc3418dffb0c7e9b0621cff60b9ac551" },
913 "iswap.nvim": { "branch": "master", "commit": "e02cc91f2a8feb5c5a595767d208c54b6e3258ec" },
10 "lazy.nvim": { "branch": "main", "commit": "7967abe55752aa90532e6bb4bd4663fe27a264cb" },
14 "lazy.nvim": { "branch": "main", "commit": "56ead98e05bb37a4ec28930a54d836d033cf00f2" },
1115 "lazydev.nvim": { "branch": "main", "commit": "d5800897d9180cea800023f2429bce0a94ed6064" },
1216 "mason.nvim": { "branch": "main", "commit": "c43eeb5614a09dc17c03a7fb49de2e05de203924" },
1317 "mini.bracketed": { "branch": "main", "commit": "833d66df6e0588222312a963780c6ec42ed7437d" },
2024 "nvim-highlight-colors": { "branch": "main", "commit": "a411550ef85cae467b889ba7d1a96bd78332d90e" },
2125 "nvim-lastplace": { "branch": "main", "commit": "0bb6103c506315044872e0f84b1f736c4172bb20" },
2226 "nvim-lint": { "branch": "master", "commit": "968a35d54b3a4c1ce66609cf80b14d4ae44fe77f" },
27 "nvim-luapad": { "branch": "master", "commit": "176686eb616a5ada5dfc748f2b5109194bbe8a71" },
2328 "nvim-neoclip.lua": { "branch": "main", "commit": "32e05f2d23dc5b6a284a688c0535a83d1bfc633f" },
24 "nvim-rulebook": { "branch": "main", "commit": "bc5e3874a9870709ec91152f9efce6dad49ca862" },
29 "nvim-rulebook": { "branch": "main", "commit": "ddaa7de42e1863845c1c7dda040f39a76b14d125" },
2530 "nvim-surround": { "branch": "main", "commit": "ec2dc7671067e0086cdf29c2f5df2dd909d5f71f" },
26 "nvim-treesitter": { "branch": "master", "commit": "13c7caf8a602488b37cdefe8543c4cfdd5947d9d" },
31 "nvim-treesitter": { "branch": "master", "commit": "fcd2a5fea91deac818f26a6412a624798af45033" },
2732 "nvim-treesitter-endwise": { "branch": "master", "commit": "8b34305ffc28bd75a22f5a0a9928ee726a85c9a6" },
28 "nvim-treesitter-textobjects": { "branch": "master", "commit": "3e450cd85243da99dc23ebbf14f9c70e9a0c26a4" },
33 "nvim-treesitter-textobjects": { "branch": "master", "commit": "ad8f0a472148c3e0ae9851e26a722ee4e29b1595" },
2934 "nvim-ts-autotag": { "branch": "main", "commit": "e239a560f338be31337e7abc3ee42515daf23f5e" },
30 "nvim-web-devicons": { "branch": "master", "commit": "19d257cf889f79f4022163c3fbb5e08639077bd8" },
35 "nvim-web-devicons": { "branch": "master", "commit": "f09be61d05bebcba85bb47be1931322d51b95644" },
3136 "oil.nvim": { "branch": "master", "commit": "50c4bd4ee216f08907f64d0295c0663a69e58ffb" },
3237 "plenary.nvim": { "branch": "master", "commit": "2d9b06177a975543726ce5c73fca176cedbffe9d" },
38 "range-highlight.nvim": { "branch": "master", "commit": "8b5e8ccb3460b2c3675f4639b9f54e64eaab36d9" },
3339 "refjump.nvim": { "branch": "main", "commit": "92ec869724b949c40efbea54a560a835680d3de2" },
3440 "specs.nvim": { "branch": "main", "commit": "8a108c8b37dec1b184a1d3d76c6cf867bfbe9636" },
3541 "symbol-usage.nvim": { "branch": "main", "commit": "0f9b3da014b7e41559b643e7461fcabb2a7dc83a" },
42 "telescope-frecency.nvim": { "branch": "master", "commit": "8622ef42f73cf0eb76bbe049220a812ffe32354d" },
3643 "telescope-fzf-native.nvim": { "branch": "main", "commit": "cf48d4dfce44e0b9a2e19a008d6ec6ea6f01a83b" },
3744 "telescope-symbols.nvim": { "branch": "master", "commit": "a6d0127a53d39b9fc2af75bd169d288166118aec" },
3845 "telescope-undo.nvim": { "branch": "main", "commit": "2971cc9f193ec09e0c5de3563f99cbea16b63f10" },
3946 "telescope-zoxide": { "branch": "main", "commit": "54bfe630bad08dc9891ec78c7cf8db38dd725c97" },
4047 "telescope.nvim": { "branch": "master", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" },
41 "tree-sitter-nu": { "branch": "main", "commit": "86aabeeaf4d3fc544d132904ef9981a888314ec0" },
48 "toggle.nvim": { "branch": "main", "commit": "50769ba8982d3d3a8fbd1d1a2e5cad63c73df662" },
49 "tree-sitter-nu": { "branch": "main", "commit": "c926660414e62accb40da19ec25f0cb063c35be7" },
4250 "treesj": { "branch": "main", "commit": "0d81326b5afd36babe7dd480aabbb0b05f33e688" },
4351 "virt-column.nvim": { "branch": "master", "commit": "b87e3e0864211a32724a2ebf3be37e24e9e2fa99" },
4452 "wezterm-types": { "branch": "main", "commit": "1518752906ba3fac0060d9efab6e4d3ec15d4b5a" },

neovim/lua/bugabinga/plugins/incubator.lua

Modified

+1 / −0 text lines

77local FUCK_STABILITY = true
99local icon = require 'std.icon'
10local const = require 'std.const'
1011local dbg = require 'std.dbg'
1112local ignored = require 'std.ignored'

neovim/lua/bugabinga/plugins/treesitter.lua

Modified

+43 / −43 text lines

1require 'bugabinga.health'.add_dependency
2{ name = 'CMake', name_of_executable = 'cmake' }
3 { name_of_executable = 'make' }
4 { name_of_executable = 'zig' }
5 { name = 'TreeSitter CLI', name_of_executable = 'tree-sitter' }
6 { name_of_executable = 'tar' }
7
8return {
9 'nvim-treesitter/nvim-treesitter',
10 branch = 'master',
11 lazy = false,
12 build = function ()
13 require 'nvim-treesitter.install'.update { with_sync = true }
14 end,
15 dependencies = {
16 -- FIXME: move nvim-treesitter modules out into normal config to prepare for main branch
17 'RRethy/nvim-treesitter-endwise',
18 'nushell/tree-sitter-nu',
19 },
20 config = function ()
21 local install = require 'nvim-treesitter.install'
22 local configs = require 'nvim-treesitter.configs'
24 install.prefer_git = false
25 install.compilers = { 'zig cc', 'clang', 'gcc', 'cl', 'cc', vim.fn.getenv 'CC' }
27 ---@diagnostic disable-next-line: missing-fields
28 configs.setup {
29 sync_install = false,
30 ignore_install = { 'oil' },
31 auto_install = true,
33 endwise = { enable = true },
35 highlight = {
36 enable = true,
37 additional_vim_regex_highlighting = false,
38 },
40 indent = { enable = true },
41 }
42 end,
43}
1require 'bugabinga.health'.add_dependency
2{ name = 'CMake', name_of_executable = 'cmake' }
3 { name_of_executable = 'make' }
4 { name_of_executable = 'zig' }
5 { name = 'TreeSitter CLI', name_of_executable = 'tree-sitter' }
6 { name_of_executable = 'tar' }
7
8return {
9 'nvim-treesitter/nvim-treesitter',
10 branch = 'master',
11 lazy = false,
12 build = function ()
13 require 'nvim-treesitter.install'.update { with_sync = true }
14 end,
15 dependencies = {
16 -- FIXME: move nvim-treesitter modules out into normal config to prepare for main branch
17 'RRethy/nvim-treesitter-endwise',
18 'nushell/tree-sitter-nu',
19 },
20 config = function ()
21 local install = require 'nvim-treesitter.install'
22 local configs = require 'nvim-treesitter.configs'
23
24 install.prefer_git = false
25 -- install.compilers = { 'zig cc', 'clang', 'gcc', 'cl', 'cc', vim.fn.getenv 'CC' }
26
27 ---@diagnostic disable-next-line: missing-fields
28 configs.setup {
29 sync_install = false,
30 ignore_install = { 'oil' },
31 auto_install = true,
32
33 endwise = { enable = true },
34
35 highlight = {
36 enable = true,
37 additional_vim_regex_highlighting = false,
38 },
39
40 indent = { enable = true },
41 }
42 end,
43}

nushell/completions/jj-completions.nu

Modified

+0 / −2416 text lines

1module completions {
2
3 # Jujutsu (An experimental VCS)
4 export extern jj [
5 --repository(-R): string # Path to repository to operate on
6 --ignore-working-copy # Don't snapshot the working copy, and don't update it
7 --ignore-immutable # Allow rewriting immutable commits
8 --at-operation: string # Operation to load the repo at
9 --at-op: string # Operation to load the repo at
10 --debug # Enable debug logging
11 --color: string # When to colorize output (always, never, debug, auto)
12 --quiet # Silence non-primary command output
13 --no-pager # Disable the pager
14 --config-toml: string # Additional configuration options (can be repeated)
15 --help(-h) # Print help (see more with '--help')
16 --version(-V) # Print version
17 ]
19 # Abandon a revision
20 export extern "jj abandon" [
21 ...revisions: string # The revision(s) to abandon
22 --summary(-s) # Do not print every abandoned commit on a separate line
23 -r # Ignored (but lets you pass `-r` for consistency with other commands)
24 --restore-descendants # Do not modify the content of the children of the abandoned commits
25 --repository(-R): string # Path to repository to operate on
26 --ignore-working-copy # Don't snapshot the working copy, and don't update it
27 --ignore-immutable # Allow rewriting immutable commits
28 --at-operation: string # Operation to load the repo at
29 --at-op: string # Operation to load the repo at
30 --debug # Enable debug logging
31 --color: string # When to colorize output (always, never, debug, auto)
32 --quiet # Silence non-primary command output
33 --no-pager # Disable the pager
34 --config-toml: string # Additional configuration options (can be repeated)
35 --help(-h) # Print help (see more with '--help')
36 ]
38 # Apply the reverse of a revision on top of another revision
39 export extern "jj backout" [
40 --revisions(-r): string # The revision(s) to apply the reverse of
41 --destination(-d): string # The revision to apply the reverse changes on top of
42 --repository(-R): string # Path to repository to operate on
43 --ignore-working-copy # Don't snapshot the working copy, and don't update it
44 --ignore-immutable # Allow rewriting immutable commits
45 --at-operation: string # Operation to load the repo at
46 --at-op: string # Operation to load the repo at
47 --debug # Enable debug logging
48 --color: string # When to colorize output (always, never, debug, auto)
49 --quiet # Silence non-primary command output
50 --no-pager # Disable the pager
51 --config-toml: string # Additional configuration options (can be repeated)
52 --help(-h) # Print help (see more with '--help')
53 ]
55 # Manage bookmarks
56 export extern "jj bookmark" [
57 --repository(-R): string # Path to repository to operate on
58 --ignore-working-copy # Don't snapshot the working copy, and don't update it
59 --ignore-immutable # Allow rewriting immutable commits
60 --at-operation: string # Operation to load the repo at
61 --at-op: string # Operation to load the repo at
62 --debug # Enable debug logging
63 --color: string # When to colorize output (always, never, debug, auto)
64 --quiet # Silence non-primary command output
65 --no-pager # Disable the pager
66 --config-toml: string # Additional configuration options (can be repeated)
67 --help(-h) # Print help (see more with '--help')
68 ]
70 # Create a new bookmark
71 export extern "jj bookmark create" [
72 --revision(-r): string # The bookmark's target revision
73 --to: string # The bookmark's target revision
74 ...names: string # The bookmarks to create
75 --repository(-R): string # Path to repository to operate on
76 --ignore-working-copy # Don't snapshot the working copy, and don't update it
77 --ignore-immutable # Allow rewriting immutable commits
78 --at-operation: string # Operation to load the repo at
79 --at-op: string # Operation to load the repo at
80 --debug # Enable debug logging
81 --color: string # When to colorize output (always, never, debug, auto)
82 --quiet # Silence non-primary command output
83 --no-pager # Disable the pager
84 --config-toml: string # Additional configuration options (can be repeated)
85 --help(-h) # Print help (see more with '--help')
86 ]
88 # Delete an existing bookmark and propagate the deletion to remotes on the next push
89 export extern "jj bookmark delete" [
90 ...names: string # The bookmarks to delete
91 --repository(-R): string # Path to repository to operate on
92 --ignore-working-copy # Don't snapshot the working copy, and don't update it
93 --ignore-immutable # Allow rewriting immutable commits
94 --at-operation: string # Operation to load the repo at
95 --at-op: string # Operation to load the repo at
96 --debug # Enable debug logging
97 --color: string # When to colorize output (always, never, debug, auto)
98 --quiet # Silence non-primary command output
99 --no-pager # Disable the pager
100 --config-toml: string # Additional configuration options (can be repeated)
101 --help(-h) # Print help (see more with '--help')
102 ]
104 # Forget everything about a bookmark, including its local and remote targets
105 export extern "jj bookmark forget" [
106 ...names: string # The bookmarks to forget
107 --repository(-R): string # Path to repository to operate on
108 --ignore-working-copy # Don't snapshot the working copy, and don't update it
109 --ignore-immutable # Allow rewriting immutable commits
110 --at-operation: string # Operation to load the repo at
111 --at-op: string # Operation to load the repo at
112 --debug # Enable debug logging
113 --color: string # When to colorize output (always, never, debug, auto)
114 --quiet # Silence non-primary command output
115 --no-pager # Disable the pager
116 --config-toml: string # Additional configuration options (can be repeated)
117 --help(-h) # Print help (see more with '--help')
118 ]
120 # List bookmarks and their targets
121 export extern "jj bookmark list" [
122 --all-remotes(-a) # Show all tracking and non-tracking remote bookmarks including the ones whose targets are synchronized with the local bookmarks
123 --remote: string # Show all tracking and non-tracking remote bookmarks belonging to this remote
124 --tracked(-t) # Show remote tracked bookmarks only. Omits local Git-tracking bookmarks by default
125 --conflicted(-c) # Show conflicted bookmarks only
126 ...names: string # Show bookmarks whose local name matches
127 --revisions(-r): string # Show bookmarks whose local targets are in the given revisions
128 --template(-T): string # Render each bookmark using the given template
129 --repository(-R): string # Path to repository to operate on
130 --ignore-working-copy # Don't snapshot the working copy, and don't update it
131 --ignore-immutable # Allow rewriting immutable commits
132 --at-operation: string # Operation to load the repo at
133 --at-op: string # Operation to load the repo at
134 --debug # Enable debug logging
135 --color: string # When to colorize output (always, never, debug, auto)
136 --quiet # Silence non-primary command output
137 --no-pager # Disable the pager
138 --config-toml: string # Additional configuration options (can be repeated)
139 --help(-h) # Print help (see more with '--help')
140 ]
142 # Move existing bookmarks to target revision
143 export extern "jj bookmark move" [
144 --from: string # Move bookmarks from the given revisions
145 --to: string # Move bookmarks to this revision
146 --allow-backwards(-B) # Allow moving bookmarks backwards or sideways
147 ...names: string # Move bookmarks matching the given name patterns
148 --repository(-R): string # Path to repository to operate on
149 --ignore-working-copy # Don't snapshot the working copy, and don't update it
150 --ignore-immutable # Allow rewriting immutable commits
151 --at-operation: string # Operation to load the repo at
152 --at-op: string # Operation to load the repo at
153 --debug # Enable debug logging
154 --color: string # When to colorize output (always, never, debug, auto)
155 --quiet # Silence non-primary command output
156 --no-pager # Disable the pager
157 --config-toml: string # Additional configuration options (can be repeated)
158 --help(-h) # Print help (see more with '--help')
159 ]
161 # Rename `old` bookmark name to `new` bookmark name
162 export extern "jj bookmark rename" [
163 old: string # The old name of the bookmark
164 new: string # The new name of the bookmark
165 --repository(-R): string # Path to repository to operate on
166 --ignore-working-copy # Don't snapshot the working copy, and don't update it
167 --ignore-immutable # Allow rewriting immutable commits
168 --at-operation: string # Operation to load the repo at
169 --at-op: string # Operation to load the repo at
170 --debug # Enable debug logging
171 --color: string # When to colorize output (always, never, debug, auto)
172 --quiet # Silence non-primary command output
173 --no-pager # Disable the pager
174 --config-toml: string # Additional configuration options (can be repeated)
175 --help(-h) # Print help (see more with '--help')
176 ]
178 # Create or update a bookmark to point to a certain commit
179 export extern "jj bookmark set" [
180 --revision(-r): string # The bookmark's target revision
181 --to: string # The bookmark's target revision
182 --allow-backwards(-B) # Allow moving the bookmark backwards or sideways
183 ...names: string # The bookmarks to update
184 --repository(-R): string # Path to repository to operate on
185 --ignore-working-copy # Don't snapshot the working copy, and don't update it
186 --ignore-immutable # Allow rewriting immutable commits
187 --at-operation: string # Operation to load the repo at
188 --at-op: string # Operation to load the repo at
189 --debug # Enable debug logging
190 --color: string # When to colorize output (always, never, debug, auto)
191 --quiet # Silence non-primary command output
192 --no-pager # Disable the pager
193 --config-toml: string # Additional configuration options (can be repeated)
194 --help(-h) # Print help (see more with '--help')
195 ]
197 # Start tracking given remote bookmarks
198 export extern "jj bookmark track" [
199 ...names: string # Remote bookmarks to track
200 --repository(-R): string # Path to repository to operate on
201 --ignore-working-copy # Don't snapshot the working copy, and don't update it
202 --ignore-immutable # Allow rewriting immutable commits
203 --at-operation: string # Operation to load the repo at
204 --at-op: string # Operation to load the repo at
205 --debug # Enable debug logging
206 --color: string # When to colorize output (always, never, debug, auto)
207 --quiet # Silence non-primary command output
208 --no-pager # Disable the pager
209 --config-toml: string # Additional configuration options (can be repeated)
210 --help(-h) # Print help (see more with '--help')
211 ]
213 # Stop tracking given remote bookmarks
214 export extern "jj bookmark untrack" [
215 ...names: string # Remote bookmarks to untrack
216 --repository(-R): string # Path to repository to operate on
217 --ignore-working-copy # Don't snapshot the working copy, and don't update it
218 --ignore-immutable # Allow rewriting immutable commits
219 --at-operation: string # Operation to load the repo at
220 --at-op: string # Operation to load the repo at
221 --debug # Enable debug logging
222 --color: string # When to colorize output (always, never, debug, auto)
223 --quiet # Silence non-primary command output
224 --no-pager # Disable the pager
225 --config-toml: string # Additional configuration options (can be repeated)
226 --help(-h) # Print help (see more with '--help')
227 ]
229 # Manage bookmarks
230 export extern "jj branch" [
231 --repository(-R): string # Path to repository to operate on
232 --ignore-working-copy # Don't snapshot the working copy, and don't update it
233 --ignore-immutable # Allow rewriting immutable commits
234 --at-operation: string # Operation to load the repo at
235 --at-op: string # Operation to load the repo at
236 --debug # Enable debug logging
237 --color: string # When to colorize output (always, never, debug, auto)
238 --quiet # Silence non-primary command output
239 --no-pager # Disable the pager
240 --config-toml: string # Additional configuration options (can be repeated)
241 --help(-h) # Print help (see more with '--help')
242 ]
244 # Create a new bookmark
245 export extern "jj branch create" [
246 --revision(-r): string # The bookmark's target revision
247 --to: string # The bookmark's target revision
248 ...names: string # The bookmarks to create
249 --repository(-R): string # Path to repository to operate on
250 --ignore-working-copy # Don't snapshot the working copy, and don't update it
251 --ignore-immutable # Allow rewriting immutable commits
252 --at-operation: string # Operation to load the repo at
253 --at-op: string # Operation to load the repo at
254 --debug # Enable debug logging
255 --color: string # When to colorize output (always, never, debug, auto)
256 --quiet # Silence non-primary command output
257 --no-pager # Disable the pager
258 --config-toml: string # Additional configuration options (can be repeated)
259 --help(-h) # Print help (see more with '--help')
260 ]
262 # Delete an existing bookmark and propagate the deletion to remotes on the next push
263 export extern "jj branch delete" [
264 ...names: string # The bookmarks to delete
265 --repository(-R): string # Path to repository to operate on
266 --ignore-working-copy # Don't snapshot the working copy, and don't update it
267 --ignore-immutable # Allow rewriting immutable commits
268 --at-operation: string # Operation to load the repo at
269 --at-op: string # Operation to load the repo at
270 --debug # Enable debug logging
271 --color: string # When to colorize output (always, never, debug, auto)
272 --quiet # Silence non-primary command output
273 --no-pager # Disable the pager
274 --config-toml: string # Additional configuration options (can be repeated)
275 --help(-h) # Print help (see more with '--help')
276 ]
278 # Forget everything about a bookmark, including its local and remote targets
279 export extern "jj branch forget" [
280 ...names: string # The bookmarks to forget
281 --repository(-R): string # Path to repository to operate on
282 --ignore-working-copy # Don't snapshot the working copy, and don't update it
283 --ignore-immutable # Allow rewriting immutable commits
284 --at-operation: string # Operation to load the repo at
285 --at-op: string # Operation to load the repo at
286 --debug # Enable debug logging
287 --color: string # When to colorize output (always, never, debug, auto)
288 --quiet # Silence non-primary command output
289 --no-pager # Disable the pager
290 --config-toml: string # Additional configuration options (can be repeated)
291 --help(-h) # Print help (see more with '--help')
292 ]
294 # List bookmarks and their targets
295 export extern "jj branch list" [
296 --all-remotes(-a) # Show all tracking and non-tracking remote bookmarks including the ones whose targets are synchronized with the local bookmarks
297 --remote: string # Show all tracking and non-tracking remote bookmarks belonging to this remote
298 --tracked(-t) # Show remote tracked bookmarks only. Omits local Git-tracking bookmarks by default
299 --conflicted(-c) # Show conflicted bookmarks only
300 ...names: string # Show bookmarks whose local name matches
301 --revisions(-r): string # Show bookmarks whose local targets are in the given revisions
302 --template(-T): string # Render each bookmark using the given template
303 --repository(-R): string # Path to repository to operate on
304 --ignore-working-copy # Don't snapshot the working copy, and don't update it
305 --ignore-immutable # Allow rewriting immutable commits
306 --at-operation: string # Operation to load the repo at
307 --at-op: string # Operation to load the repo at
308 --debug # Enable debug logging
309 --color: string # When to colorize output (always, never, debug, auto)
310 --quiet # Silence non-primary command output
311 --no-pager # Disable the pager
312 --config-toml: string # Additional configuration options (can be repeated)
313 --help(-h) # Print help (see more with '--help')
314 ]
316 # Move existing bookmarks to target revision
317 export extern "jj branch move" [
318 --from: string # Move bookmarks from the given revisions
319 --to: string # Move bookmarks to this revision
320 --allow-backwards(-B) # Allow moving bookmarks backwards or sideways
321 ...names: string # Move bookmarks matching the given name patterns
322 --repository(-R): string # Path to repository to operate on
323 --ignore-working-copy # Don't snapshot the working copy, and don't update it
324 --ignore-immutable # Allow rewriting immutable commits
325 --at-operation: string # Operation to load the repo at
326 --at-op: string # Operation to load the repo at
327 --debug # Enable debug logging
328 --color: string # When to colorize output (always, never, debug, auto)
329 --quiet # Silence non-primary command output
330 --no-pager # Disable the pager
331 --config-toml: string # Additional configuration options (can be repeated)
332 --help(-h) # Print help (see more with '--help')
333 ]
335 # Rename `old` bookmark name to `new` bookmark name
336 export extern "jj branch rename" [
337 old: string # The old name of the bookmark
338 new: string # The new name of the bookmark
339 --repository(-R): string # Path to repository to operate on
340 --ignore-working-copy # Don't snapshot the working copy, and don't update it
341 --ignore-immutable # Allow rewriting immutable commits
342 --at-operation: string # Operation to load the repo at
343 --at-op: string # Operation to load the repo at
344 --debug # Enable debug logging
345 --color: string # When to colorize output (always, never, debug, auto)
346 --quiet # Silence non-primary command output
347 --no-pager # Disable the pager
348 --config-toml: string # Additional configuration options (can be repeated)
349 --help(-h) # Print help (see more with '--help')
350 ]
352 # Create or update a bookmark to point to a certain commit
353 export extern "jj branch set" [
354 --revision(-r): string # The bookmark's target revision
355 --to: string # The bookmark's target revision
356 --allow-backwards(-B) # Allow moving the bookmark backwards or sideways
357 ...names: string # The bookmarks to update
358 --repository(-R): string # Path to repository to operate on
359 --ignore-working-copy # Don't snapshot the working copy, and don't update it
360 --ignore-immutable # Allow rewriting immutable commits
361 --at-operation: string # Operation to load the repo at
362 --at-op: string # Operation to load the repo at
363 --debug # Enable debug logging
364 --color: string # When to colorize output (always, never, debug, auto)
365 --quiet # Silence non-primary command output
366 --no-pager # Disable the pager
367 --config-toml: string # Additional configuration options (can be repeated)
368 --help(-h) # Print help (see more with '--help')
369 ]
371 # Start tracking given remote bookmarks
372 export extern "jj branch track" [
373 ...names: string # Remote bookmarks to track
374 --repository(-R): string # Path to repository to operate on
375 --ignore-working-copy # Don't snapshot the working copy, and don't update it
376 --ignore-immutable # Allow rewriting immutable commits
377 --at-operation: string # Operation to load the repo at
378 --at-op: string # Operation to load the repo at
379 --debug # Enable debug logging
380 --color: string # When to colorize output (always, never, debug, auto)
381 --quiet # Silence non-primary command output
382 --no-pager # Disable the pager
383 --config-toml: string # Additional configuration options (can be repeated)
384 --help(-h) # Print help (see more with '--help')
385 ]
387 # Stop tracking given remote bookmarks
388 export extern "jj branch untrack" [
389 ...names: string # Remote bookmarks to untrack
390 --repository(-R): string # Path to repository to operate on
391 --ignore-working-copy # Don't snapshot the working copy, and don't update it
392 --ignore-immutable # Allow rewriting immutable commits
393 --at-operation: string # Operation to load the repo at
394 --at-op: string # Operation to load the repo at
395 --debug # Enable debug logging
396 --color: string # When to colorize output (always, never, debug, auto)
397 --quiet # Silence non-primary command output
398 --no-pager # Disable the pager
399 --config-toml: string # Additional configuration options (can be repeated)
400 --help(-h) # Print help (see more with '--help')
401 ]
403 # Print contents of files in a revision
404 export extern "jj cat" [
405 --revision(-r): string # The revision to get the file contents from
406 ...paths: string # Paths to print
407 --repository(-R): string # Path to repository to operate on
408 --ignore-working-copy # Don't snapshot the working copy, and don't update it
409 --ignore-immutable # Allow rewriting immutable commits
410 --at-operation: string # Operation to load the repo at
411 --at-op: string # Operation to load the repo at
412 --debug # Enable debug logging
413 --color: string # When to colorize output (always, never, debug, auto)
414 --quiet # Silence non-primary command output
415 --no-pager # Disable the pager
416 --config-toml: string # Additional configuration options (can be repeated)
417 --help(-h) # Print help (see more with '--help')
418 ]
420 # Create a new, empty change and edit it in the working copy (DEPRECATED, use `jj new`)
421 export extern "jj checkout" [
422 revision: string # The revision to update to
423 -r # Ignored (but lets you pass `-r` for consistency with other commands)
424 --message(-m): string # The change description to use
425 --repository(-R): string # Path to repository to operate on
426 --ignore-working-copy # Don't snapshot the working copy, and don't update it
427 --ignore-immutable # Allow rewriting immutable commits
428 --at-operation: string # Operation to load the repo at
429 --at-op: string # Operation to load the repo at
430 --debug # Enable debug logging
431 --color: string # When to colorize output (always, never, debug, auto)
432 --quiet # Silence non-primary command output
433 --no-pager # Disable the pager
434 --config-toml: string # Additional configuration options (can be repeated)
435 --help(-h) # Print help (see more with '--help')
436 ]
438 def "nu-complete jj chmod mode" [] {
439 [ "n" "x" ]
440 }
442 # Sets or removes the executable bit for paths in the repo
443 export extern "jj chmod" [
444 mode: string@"nu-complete jj chmod mode"
445 --revision(-r): string # The revision to update
446 ...paths: string # Paths to change the executable bit for
447 --repository(-R): string # Path to repository to operate on
448 --ignore-working-copy # Don't snapshot the working copy, and don't update it
449 --ignore-immutable # Allow rewriting immutable commits
450 --at-operation: string # Operation to load the repo at
451 --at-op: string # Operation to load the repo at
452 --debug # Enable debug logging
453 --color: string # When to colorize output (always, never, debug, auto)
454 --quiet # Silence non-primary command output
455 --no-pager # Disable the pager
456 --config-toml: string # Additional configuration options (can be repeated)
457 --help(-h) # Print help (see more with '--help')
458 ]
460 # Update the description and create a new change on top
461 export extern "jj commit" [
462 --interactive(-i) # Interactively choose which changes to include in the first commit
463 --tool: string # Specify diff editor to be used (implies --interactive)
464 --message(-m): string # The change description to use (don't open editor)
465 ...paths: string # Put these paths in the first commit
466 --reset-author # Reset the author to the configured user
467 --author: string # Set author to the provided string
468 --repository(-R): string # Path to repository to operate on
469 --ignore-working-copy # Don't snapshot the working copy, and don't update it
470 --ignore-immutable # Allow rewriting immutable commits
471 --at-operation: string # Operation to load the repo at
472 --at-op: string # Operation to load the repo at
473 --debug # Enable debug logging
474 --color: string # When to colorize output (always, never, debug, auto)
475 --quiet # Silence non-primary command output
476 --no-pager # Disable the pager
477 --config-toml: string # Additional configuration options (can be repeated)
478 --help(-h) # Print help (see more with '--help')
479 ]
481 # Manage config options
482 export extern "jj config" [
483 --repository(-R): string # Path to repository to operate on
484 --ignore-working-copy # Don't snapshot the working copy, and don't update it
485 --ignore-immutable # Allow rewriting immutable commits
486 --at-operation: string # Operation to load the repo at
487 --at-op: string # Operation to load the repo at
488 --debug # Enable debug logging
489 --color: string # When to colorize output (always, never, debug, auto)
490 --quiet # Silence non-primary command output
491 --no-pager # Disable the pager
492 --config-toml: string # Additional configuration options (can be repeated)
493 --help(-h) # Print help (see more with '--help')
494 ]
496 # Start an editor on a jj config file
497 export extern "jj config edit" [
498 --user # Target the user-level config
499 --repo # Target the repo-level config
500 --repository(-R): string # Path to repository to operate on
501 --ignore-working-copy # Don't snapshot the working copy, and don't update it
502 --ignore-immutable # Allow rewriting immutable commits
503 --at-operation: string # Operation to load the repo at
504 --at-op: string # Operation to load the repo at
505 --debug # Enable debug logging
506 --color: string # When to colorize output (always, never, debug, auto)
507 --quiet # Silence non-primary command output
508 --no-pager # Disable the pager
509 --config-toml: string # Additional configuration options (can be repeated)
510 --help(-h) # Print help (see more with '--help')
511 ]
513 # Get the value of a given config option.
514 export extern "jj config get" [
515 name: string
516 --repository(-R): string # Path to repository to operate on
517 --ignore-working-copy # Don't snapshot the working copy, and don't update it
518 --ignore-immutable # Allow rewriting immutable commits
519 --at-operation: string # Operation to load the repo at
520 --at-op: string # Operation to load the repo at
521 --debug # Enable debug logging
522 --color: string # When to colorize output (always, never, debug, auto)
523 --quiet # Silence non-primary command output
524 --no-pager # Disable the pager
525 --config-toml: string # Additional configuration options (can be repeated)
526 --help(-h) # Print help (see more with '--help')
527 ]
529 # List variables set in config file, along with their values
530 export extern "jj config list" [
531 name?: string # An optional name of a specific config option to look up
532 --include-defaults # Whether to explicitly include built-in default values in the list
533 --include-overridden # Allow printing overridden values
534 --user # Target the user-level config
535 --repo # Target the repo-level config
536 --template(-T): string # Render each variable using the given template
537 --repository(-R): string # Path to repository to operate on
538 --ignore-working-copy # Don't snapshot the working copy, and don't update it
539 --ignore-immutable # Allow rewriting immutable commits
540 --at-operation: string # Operation to load the repo at
541 --at-op: string # Operation to load the repo at
542 --debug # Enable debug logging
543 --color: string # When to colorize output (always, never, debug, auto)
544 --quiet # Silence non-primary command output
545 --no-pager # Disable the pager
546 --config-toml: string # Additional configuration options (can be repeated)
547 --help(-h) # Print help (see more with '--help')
548 ]
550 # Print the path to the config file
551 export extern "jj config path" [
552 --user # Target the user-level config
553 --repo # Target the repo-level config
554 --repository(-R): string # Path to repository to operate on
555 --ignore-working-copy # Don't snapshot the working copy, and don't update it
556 --ignore-immutable # Allow rewriting immutable commits
557 --at-operation: string # Operation to load the repo at
558 --at-op: string # Operation to load the repo at
559 --debug # Enable debug logging
560 --color: string # When to colorize output (always, never, debug, auto)
561 --quiet # Silence non-primary command output
562 --no-pager # Disable the pager
563 --config-toml: string # Additional configuration options (can be repeated)
564 --help(-h) # Print help (see more with '--help')
565 ]
567 # Update config file to set the given option to a given value
568 export extern "jj config set" [
569 name: string
570 value: string
571 --user # Target the user-level config
572 --repo # Target the repo-level config
573 --repository(-R): string # Path to repository to operate on
574 --ignore-working-copy # Don't snapshot the working copy, and don't update it
575 --ignore-immutable # Allow rewriting immutable commits
576 --at-operation: string # Operation to load the repo at
577 --at-op: string # Operation to load the repo at
578 --debug # Enable debug logging
579 --color: string # When to colorize output (always, never, debug, auto)
580 --quiet # Silence non-primary command output
581 --no-pager # Disable the pager
582 --config-toml: string # Additional configuration options (can be repeated)
583 --help(-h) # Print help (see more with '--help')
584 ]
586 # Update config file to unset the given option
587 export extern "jj config unset" [
588 name: string
589 --user # Target the user-level config
590 --repo # Target the repo-level config
591 --repository(-R): string # Path to repository to operate on
592 --ignore-working-copy # Don't snapshot the working copy, and don't update it
593 --ignore-immutable # Allow rewriting immutable commits
594 --at-operation: string # Operation to load the repo at
595 --at-op: string # Operation to load the repo at
596 --debug # Enable debug logging
597 --color: string # When to colorize output (always, never, debug, auto)
598 --quiet # Silence non-primary command output
599 --no-pager # Disable the pager
600 --config-toml: string # Additional configuration options (can be repeated)
601 --help(-h) # Print help (see more with '--help')
602 ]
604 # Low-level commands not intended for users
605 export extern "jj debug" [
606 --repository(-R): string # Path to repository to operate on
607 --ignore-working-copy # Don't snapshot the working copy, and don't update it
608 --ignore-immutable # Allow rewriting immutable commits
609 --at-operation: string # Operation to load the repo at
610 --at-op: string # Operation to load the repo at
611 --debug # Enable debug logging
612 --color: string # When to colorize output (always, never, debug, auto)
613 --quiet # Silence non-primary command output
614 --no-pager # Disable the pager
615 --config-toml: string # Additional configuration options (can be repeated)
616 --help(-h) # Print help (see more with '--help')
617 ]
619 # Rebuild commit index
620 export extern "jj debug copy-detection" [
621 revision?: string # Show changes in this revision, compared to its parent(s)
622 --repository(-R): string # Path to repository to operate on
623 --ignore-working-copy # Don't snapshot the working copy, and don't update it
624 --ignore-immutable # Allow rewriting immutable commits
625 --at-operation: string # Operation to load the repo at
626 --at-op: string # Operation to load the repo at
627 --debug # Enable debug logging
628 --color: string # When to colorize output (always, never, debug, auto)
629 --quiet # Silence non-primary command output
630 --no-pager # Disable the pager
631 --config-toml: string # Additional configuration options (can be repeated)
632 --help(-h) # Print help (see more with '--help')
633 ]
635 # Parse fileset expression
636 export extern "jj debug fileset" [
637 path: string
638 --repository(-R): string # Path to repository to operate on
639 --ignore-working-copy # Don't snapshot the working copy, and don't update it
640 --ignore-immutable # Allow rewriting immutable commits
641 --at-operation: string # Operation to load the repo at
642 --at-op: string # Operation to load the repo at
643 --debug # Enable debug logging
644 --color: string # When to colorize output (always, never, debug, auto)
645 --quiet # Silence non-primary command output
646 --no-pager # Disable the pager
647 --config-toml: string # Additional configuration options (can be repeated)
648 --help(-h) # Print help (see more with '--help')
649 ]
651 # Show commit index stats
652 export extern "jj debug index" [
653 --repository(-R): string # Path to repository to operate on
654 --ignore-working-copy # Don't snapshot the working copy, and don't update it
655 --ignore-immutable # Allow rewriting immutable commits
656 --at-operation: string # Operation to load the repo at
657 --at-op: string # Operation to load the repo at
658 --debug # Enable debug logging
659 --color: string # When to colorize output (always, never, debug, auto)
660 --quiet # Silence non-primary command output
661 --no-pager # Disable the pager
662 --config-toml: string # Additional configuration options (can be repeated)
663 --help(-h) # Print help (see more with '--help')
664 ]
666 # Show information about the local working copy state
667 export extern "jj debug local-working-copy" [
668 --repository(-R): string # Path to repository to operate on
669 --ignore-working-copy # Don't snapshot the working copy, and don't update it
670 --ignore-immutable # Allow rewriting immutable commits
671 --at-operation: string # Operation to load the repo at
672 --at-op: string # Operation to load the repo at
673 --debug # Enable debug logging
674 --color: string # When to colorize output (always, never, debug, auto)
675 --quiet # Silence non-primary command output
676 --no-pager # Disable the pager
677 --config-toml: string # Additional configuration options (can be repeated)
678 --help(-h) # Print help (see more with '--help')
679 ]
681 def "nu-complete jj debug operation display" [] {
682 [ "operation" "id" "view" "all" ]
683 }
685 # Show information about an operation and its view
686 export extern "jj debug operation" [
687 operation?: string
688 --display: string@"nu-complete jj debug operation display"
689 --repository(-R): string # Path to repository to operate on
690 --ignore-working-copy # Don't snapshot the working copy, and don't update it
691 --ignore-immutable # Allow rewriting immutable commits
692 --at-operation: string # Operation to load the repo at
693 --at-op: string # Operation to load the repo at
694 --debug # Enable debug logging
695 --color: string # When to colorize output (always, never, debug, auto)
696 --quiet # Silence non-primary command output
697 --no-pager # Disable the pager
698 --config-toml: string # Additional configuration options (can be repeated)
699 --help(-h) # Print help (see more with '--help')
700 ]
702 # Rebuild commit index
703 export extern "jj debug reindex" [
704 --repository(-R): string # Path to repository to operate on
705 --ignore-working-copy # Don't snapshot the working copy, and don't update it
706 --ignore-immutable # Allow rewriting immutable commits
707 --at-operation: string # Operation to load the repo at
708 --at-op: string # Operation to load the repo at
709 --debug # Enable debug logging
710 --color: string # When to colorize output (always, never, debug, auto)
711 --quiet # Silence non-primary command output
712 --no-pager # Disable the pager
713 --config-toml: string # Additional configuration options (can be repeated)
714 --help(-h) # Print help (see more with '--help')
715 ]
717 # Evaluate revset to full commit IDs
718 export extern "jj debug revset" [
719 revision: string
720 --repository(-R): string # Path to repository to operate on
721 --ignore-working-copy # Don't snapshot the working copy, and don't update it
722 --ignore-immutable # Allow rewriting immutable commits
723 --at-operation: string # Operation to load the repo at
724 --at-op: string # Operation to load the repo at
725 --debug # Enable debug logging
726 --color: string # When to colorize output (always, never, debug, auto)
727 --quiet # Silence non-primary command output
728 --no-pager # Disable the pager
729 --config-toml: string # Additional configuration options (can be repeated)
730 --help(-h) # Print help (see more with '--help')
731 ]
733 # Trigger a snapshot in the op log
734 export extern "jj debug snapshot" [
735 --repository(-R): string # Path to repository to operate on
736 --ignore-working-copy # Don't snapshot the working copy, and don't update it
737 --ignore-immutable # Allow rewriting immutable commits
738 --at-operation: string # Operation to load the repo at
739 --at-op: string # Operation to load the repo at
740 --debug # Enable debug logging
741 --color: string # When to colorize output (always, never, debug, auto)
742 --quiet # Silence non-primary command output
743 --no-pager # Disable the pager
744 --config-toml: string # Additional configuration options (can be repeated)
745 --help(-h) # Print help (see more with '--help')
746 ]
748 # Parse a template
749 export extern "jj debug template" [
750 template: string
751 --repository(-R): string # Path to repository to operate on
752 --ignore-working-copy # Don't snapshot the working copy, and don't update it
753 --ignore-immutable # Allow rewriting immutable commits
754 --at-operation: string # Operation to load the repo at
755 --at-op: string # Operation to load the repo at
756 --debug # Enable debug logging
757 --color: string # When to colorize output (always, never, debug, auto)
758 --quiet # Silence non-primary command output
759 --no-pager # Disable the pager
760 --config-toml: string # Additional configuration options (can be repeated)
761 --help(-h) # Print help (see more with '--help')
762 ]
764 # List the recursive entries of a tree
765 export extern "jj debug tree" [
766 --revision(-r): string
767 --id: string
768 --dir: string
769 ...paths: string
770 --repository(-R): string # Path to repository to operate on
771 --ignore-working-copy # Don't snapshot the working copy, and don't update it
772 --ignore-immutable # Allow rewriting immutable commits
773 --at-operation: string # Operation to load the repo at
774 --at-op: string # Operation to load the repo at
775 --debug # Enable debug logging
776 --color: string # When to colorize output (always, never, debug, auto)
777 --quiet # Silence non-primary command output
778 --no-pager # Disable the pager
779 --config-toml: string # Additional configuration options (can be repeated)
780 --help(-h) # Print help (see more with '--help')
781 ]
783 export extern "jj debug watchman" [
784 --repository(-R): string # Path to repository to operate on
785 --ignore-working-copy # Don't snapshot the working copy, and don't update it
786 --ignore-immutable # Allow rewriting immutable commits
787 --at-operation: string # Operation to load the repo at
788 --at-op: string # Operation to load the repo at
789 --debug # Enable debug logging
790 --color: string # When to colorize output (always, never, debug, auto)
791 --quiet # Silence non-primary command output
792 --no-pager # Disable the pager
793 --config-toml: string # Additional configuration options (can be repeated)
794 --help(-h) # Print help (see more with '--help')
795 ]
797 # Check whether `watchman` is enabled and whether it's correctly installed
798 export extern "jj debug watchman status" [
799 --repository(-R): string # Path to repository to operate on
800 --ignore-working-copy # Don't snapshot the working copy, and don't update it
801 --ignore-immutable # Allow rewriting immutable commits
802 --at-operation: string # Operation to load the repo at
803 --at-op: string # Operation to load the repo at
804 --debug # Enable debug logging
805 --color: string # When to colorize output (always, never, debug, auto)
806 --quiet # Silence non-primary command output
807 --no-pager # Disable the pager
808 --config-toml: string # Additional configuration options (can be repeated)
809 --help(-h) # Print help (see more with '--help')
810 ]
812 export extern "jj debug watchman query-clock" [
813 --repository(-R): string # Path to repository to operate on
814 --ignore-working-copy # Don't snapshot the working copy, and don't update it
815 --ignore-immutable # Allow rewriting immutable commits
816 --at-operation: string # Operation to load the repo at
817 --at-op: string # Operation to load the repo at
818 --debug # Enable debug logging
819 --color: string # When to colorize output (always, never, debug, auto)
820 --quiet # Silence non-primary command output
821 --no-pager # Disable the pager
822 --config-toml: string # Additional configuration options (can be repeated)
823 --help(-h) # Print help (see more with '--help')
824 ]
826 export extern "jj debug watchman query-changed-files" [
827 --repository(-R): string # Path to repository to operate on
828 --ignore-working-copy # Don't snapshot the working copy, and don't update it
829 --ignore-immutable # Allow rewriting immutable commits
830 --at-operation: string # Operation to load the repo at
831 --at-op: string # Operation to load the repo at
832 --debug # Enable debug logging
833 --color: string # When to colorize output (always, never, debug, auto)
834 --quiet # Silence non-primary command output
835 --no-pager # Disable the pager
836 --config-toml: string # Additional configuration options (can be repeated)
837 --help(-h) # Print help (see more with '--help')
838 ]
840 export extern "jj debug watchman reset-clock" [
841 --repository(-R): string # Path to repository to operate on
842 --ignore-working-copy # Don't snapshot the working copy, and don't update it
843 --ignore-immutable # Allow rewriting immutable commits
844 --at-operation: string # Operation to load the repo at
845 --at-op: string # Operation to load the repo at
846 --debug # Enable debug logging
847 --color: string # When to colorize output (always, never, debug, auto)
848 --quiet # Silence non-primary command output
849 --no-pager # Disable the pager
850 --config-toml: string # Additional configuration options (can be repeated)
851 --help(-h) # Print help (see more with '--help')
852 ]
854 # Show information about the working copy state
855 export extern "jj debug working-copy" [
856 --repository(-R): string # Path to repository to operate on
857 --ignore-working-copy # Don't snapshot the working copy, and don't update it
858 --ignore-immutable # Allow rewriting immutable commits
859 --at-operation: string # Operation to load the repo at
860 --at-op: string # Operation to load the repo at
861 --debug # Enable debug logging
862 --color: string # When to colorize output (always, never, debug, auto)
863 --quiet # Silence non-primary command output
864 --no-pager # Disable the pager
865 --config-toml: string # Additional configuration options (can be repeated)
866 --help(-h) # Print help (see more with '--help')
867 ]
869 # Update the change description or other metadata
870 export extern "jj describe" [
871 ...revisions: string # The revision(s) whose description to edit
872 -r # Ignored (but lets you pass `-r` for consistency with other commands)
873 --message(-m): string # The change description to use (don't open editor)
874 --stdin # Read the change description from stdin
875 --no-edit # Don't open an editor
876 --reset-author # Reset the author to the configured user
877 --author: string # Set author to the provided string
878 --repository(-R): string # Path to repository to operate on
879 --ignore-working-copy # Don't snapshot the working copy, and don't update it
880 --ignore-immutable # Allow rewriting immutable commits
881 --at-operation: string # Operation to load the repo at
882 --at-op: string # Operation to load the repo at
883 --debug # Enable debug logging
884 --color: string # When to colorize output (always, never, debug, auto)
885 --quiet # Silence non-primary command output
886 --no-pager # Disable the pager
887 --config-toml: string # Additional configuration options (can be repeated)
888 --help(-h) # Print help (see more with '--help')
889 ]
891 # Compare file contents between two revisions
892 export extern "jj diff" [
893 --revision(-r): string # Show changes in this revision, compared to its parent(s)
894 --from: string # Show changes from this revision
895 --to: string # Show changes to this revision
896 ...paths: string # Restrict the diff to these paths
897 --summary(-s) # For each path, show only whether it was modified, added, or deleted
898 --stat # Show a histogram of the changes
899 --types # For each path, show only its type before and after
900 --name-only # For each path, show only its path
901 --git # Show a Git-format diff
902 --color-words # Show a word-level diff with changes indicated only by color
903 --tool: string # Generate diff by external command
904 --context: string # Number of lines of context to show
905 --ignore-all-space(-w) # Ignore whitespace when comparing lines
906 --ignore-space-change(-b) # Ignore changes in amount of whitespace when comparing lines
907 --repository(-R): string # Path to repository to operate on
908 --ignore-working-copy # Don't snapshot the working copy, and don't update it
909 --ignore-immutable # Allow rewriting immutable commits
910 --at-operation: string # Operation to load the repo at
911 --at-op: string # Operation to load the repo at
912 --debug # Enable debug logging
913 --color: string # When to colorize output (always, never, debug, auto)
914 --quiet # Silence non-primary command output
915 --no-pager # Disable the pager
916 --config-toml: string # Additional configuration options (can be repeated)
917 --help(-h) # Print help (see more with '--help')
918 ]
920 # Touch up the content changes in a revision with a diff editor
921 export extern "jj diffedit" [
922 --revision(-r): string # The revision to touch up
923 --from: string # Show changes from this revision
924 --to: string # Edit changes in this revision
925 --tool: string # Specify diff editor to be used
926 --restore-descendants # Preserve the content (not the diff) when rebasing descendants
927 --repository(-R): string # Path to repository to operate on
928 --ignore-working-copy # Don't snapshot the working copy, and don't update it
929 --ignore-immutable # Allow rewriting immutable commits
930 --at-operation: string # Operation to load the repo at
931 --at-op: string # Operation to load the repo at
932 --debug # Enable debug logging
933 --color: string # When to colorize output (always, never, debug, auto)
934 --quiet # Silence non-primary command output
935 --no-pager # Disable the pager
936 --config-toml: string # Additional configuration options (can be repeated)
937 --help(-h) # Print help (see more with '--help')
938 ]
940 # Create a new change with the same content as an existing one
941 export extern "jj duplicate" [
942 ...revisions: string # The revision(s) to duplicate
943 -r # Ignored (but lets you pass `-r` for consistency with other commands)
944 --repository(-R): string # Path to repository to operate on
945 --ignore-working-copy # Don't snapshot the working copy, and don't update it
946 --ignore-immutable # Allow rewriting immutable commits
947 --at-operation: string # Operation to load the repo at
948 --at-op: string # Operation to load the repo at
949 --debug # Enable debug logging
950 --color: string # When to colorize output (always, never, debug, auto)
951 --quiet # Silence non-primary command output
952 --no-pager # Disable the pager
953 --config-toml: string # Additional configuration options (can be repeated)
954 --help(-h) # Print help (see more with '--help')
955 ]
957 # Sets the specified revision as the working-copy revision
958 export extern "jj edit" [
959 revision: string # The commit to edit
960 -r # Ignored (but lets you pass `-r` for consistency with other commands)
961 --repository(-R): string # Path to repository to operate on
962 --ignore-working-copy # Don't snapshot the working copy, and don't update it
963 --ignore-immutable # Allow rewriting immutable commits
964 --at-operation: string # Operation to load the repo at
965 --at-op: string # Operation to load the repo at
966 --debug # Enable debug logging
967 --color: string # When to colorize output (always, never, debug, auto)
968 --quiet # Silence non-primary command output
969 --no-pager # Disable the pager
970 --config-toml: string # Additional configuration options (can be repeated)
971 --help(-h) # Print help (see more with '--help')
972 ]
974 # Show how a change has evolved over time
975 export extern "jj evolog" [
976 --revision(-r): string
977 --limit(-n): string # Limit number of revisions to show
978 -l: string
979 --no-graph # Don't show the graph, show a flat list of revisions
980 --template(-T): string # Render each revision using the given template
981 --patch(-p) # Show patch compared to the previous version of this change
982 --summary(-s) # For each path, show only whether it was modified, added, or deleted
983 --stat # Show a histogram of the changes
984 --types # For each path, show only its type before and after
985 --name-only # For each path, show only its path
986 --git # Show a Git-format diff
987 --color-words # Show a word-level diff with changes indicated only by color
988 --tool: string # Generate diff by external command
989 --context: string # Number of lines of context to show
990 --ignore-all-space # Ignore whitespace when comparing lines
991 --ignore-space-change # Ignore changes in amount of whitespace when comparing lines
992 --repository(-R): string # Path to repository to operate on
993 --ignore-working-copy # Don't snapshot the working copy, and don't update it
994 --ignore-immutable # Allow rewriting immutable commits
995 --at-operation: string # Operation to load the repo at
996 --at-op: string # Operation to load the repo at
997 --debug # Enable debug logging
998 --color: string # When to colorize output (always, never, debug, auto)
999 --quiet # Silence non-primary command output
1000 --no-pager # Disable the pager
1001 --config-toml: string # Additional configuration options (can be repeated)
1002 --help(-h) # Print help (see more with '--help')
1003 ]
1005 # File operations
1006 export extern "jj file" [
1007 --repository(-R): string # Path to repository to operate on
1008 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1009 --ignore-immutable # Allow rewriting immutable commits
1010 --at-operation: string # Operation to load the repo at
1011 --at-op: string # Operation to load the repo at
1012 --debug # Enable debug logging
1013 --color: string # When to colorize output (always, never, debug, auto)
1014 --quiet # Silence non-primary command output
1015 --no-pager # Disable the pager
1016 --config-toml: string # Additional configuration options (can be repeated)
1017 --help(-h) # Print help (see more with '--help')
1018 ]
1020 # Show the source change for each line of the target file
1021 export extern "jj file annotate" [
1022 path: string # the file to annotate
1023 --revision(-r): string # an optional revision to start at
1024 --repository(-R): string # Path to repository to operate on
1025 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1026 --ignore-immutable # Allow rewriting immutable commits
1027 --at-operation: string # Operation to load the repo at
1028 --at-op: string # Operation to load the repo at
1029 --debug # Enable debug logging
1030 --color: string # When to colorize output (always, never, debug, auto)
1031 --quiet # Silence non-primary command output
1032 --no-pager # Disable the pager
1033 --config-toml: string # Additional configuration options (can be repeated)
1034 --help(-h) # Print help (see more with '--help')
1035 ]
1037 def "nu-complete jj file chmod mode" [] {
1038 [ "n" "x" ]
1039 }
1041 # Sets or removes the executable bit for paths in the repo
1042 export extern "jj file chmod" [
1043 mode: string@"nu-complete jj file chmod mode"
1044 --revision(-r): string # The revision to update
1045 ...paths: string # Paths to change the executable bit for
1046 --repository(-R): string # Path to repository to operate on
1047 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1048 --ignore-immutable # Allow rewriting immutable commits
1049 --at-operation: string # Operation to load the repo at
1050 --at-op: string # Operation to load the repo at
1051 --debug # Enable debug logging
1052 --color: string # When to colorize output (always, never, debug, auto)
1053 --quiet # Silence non-primary command output
1054 --no-pager # Disable the pager
1055 --config-toml: string # Additional configuration options (can be repeated)
1056 --help(-h) # Print help (see more with '--help')
1057 ]
1059 # List files in a revision
1060 export extern "jj file list" [
1061 --revision(-r): string # The revision to list files in
1062 ...paths: string # Only list files matching these prefixes (instead of all files)
1063 --repository(-R): string # Path to repository to operate on
1064 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1065 --ignore-immutable # Allow rewriting immutable commits
1066 --at-operation: string # Operation to load the repo at
1067 --at-op: string # Operation to load the repo at
1068 --debug # Enable debug logging
1069 --color: string # When to colorize output (always, never, debug, auto)
1070 --quiet # Silence non-primary command output
1071 --no-pager # Disable the pager
1072 --config-toml: string # Additional configuration options (can be repeated)
1073 --help(-h) # Print help (see more with '--help')
1074 ]
1076 # Print contents of files in a revision
1077 export extern "jj file show" [
1078 --revision(-r): string # The revision to get the file contents from
1079 ...paths: string # Paths to print
1080 --repository(-R): string # Path to repository to operate on
1081 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1082 --ignore-immutable # Allow rewriting immutable commits
1083 --at-operation: string # Operation to load the repo at
1084 --at-op: string # Operation to load the repo at
1085 --debug # Enable debug logging
1086 --color: string # When to colorize output (always, never, debug, auto)
1087 --quiet # Silence non-primary command output
1088 --no-pager # Disable the pager
1089 --config-toml: string # Additional configuration options (can be repeated)
1090 --help(-h) # Print help (see more with '--help')
1091 ]
1093 # Start tracking specified paths in the working copy
1094 export extern "jj file track" [
1095 ...paths: string # Paths to track
1096 --repository(-R): string # Path to repository to operate on
1097 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1098 --ignore-immutable # Allow rewriting immutable commits
1099 --at-operation: string # Operation to load the repo at
1100 --at-op: string # Operation to load the repo at
1101 --debug # Enable debug logging
1102 --color: string # When to colorize output (always, never, debug, auto)
1103 --quiet # Silence non-primary command output
1104 --no-pager # Disable the pager
1105 --config-toml: string # Additional configuration options (can be repeated)
1106 --help(-h) # Print help (see more with '--help')
1107 ]
1109 # Stop tracking specified paths in the working copy
1110 export extern "jj file untrack" [
1111 ...paths: string # Paths to untrack. They must already be ignored
1112 --repository(-R): string # Path to repository to operate on
1113 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1114 --ignore-immutable # Allow rewriting immutable commits
1115 --at-operation: string # Operation to load the repo at
1116 --at-op: string # Operation to load the repo at
1117 --debug # Enable debug logging
1118 --color: string # When to colorize output (always, never, debug, auto)
1119 --quiet # Silence non-primary command output
1120 --no-pager # Disable the pager
1121 --config-toml: string # Additional configuration options (can be repeated)
1122 --help(-h) # Print help (see more with '--help')
1123 ]
1125 # List files in a revision (DEPRECATED use `jj file list`)
1126 export extern "jj files" [
1127 --revision(-r): string # The revision to list files in
1128 ...paths: string # Only list files matching these prefixes (instead of all files)
1129 --repository(-R): string # Path to repository to operate on
1130 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1131 --ignore-immutable # Allow rewriting immutable commits
1132 --at-operation: string # Operation to load the repo at
1133 --at-op: string # Operation to load the repo at
1134 --debug # Enable debug logging
1135 --color: string # When to colorize output (always, never, debug, auto)
1136 --quiet # Silence non-primary command output
1137 --no-pager # Disable the pager
1138 --config-toml: string # Additional configuration options (can be repeated)
1139 --help(-h) # Print help (see more with '--help')
1140 ]
1142 # Update files with formatting fixes or other changes
1143 export extern "jj fix" [
1144 --source(-s): string # Fix files in the specified revision(s) and their descendants. If no revisions are specified, this defaults to the `revsets.fix` setting, or `reachable(@, mutable())` if it is not set
1145 ...paths: string # Fix only these paths
1146 --include-unchanged-files # Fix unchanged files in addition to changed ones. If no paths are specified, all files in the repo will be fixed
1147 --repository(-R): string # Path to repository to operate on
1148 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1149 --ignore-immutable # Allow rewriting immutable commits
1150 --at-operation: string # Operation to load the repo at
1151 --at-op: string # Operation to load the repo at
1152 --debug # Enable debug logging
1153 --color: string # When to colorize output (always, never, debug, auto)
1154 --quiet # Silence non-primary command output
1155 --no-pager # Disable the pager
1156 --config-toml: string # Additional configuration options (can be repeated)
1157 --help(-h) # Print help (see more with '--help')
1158 ]
1160 # Commands for working with Git remotes and the underlying Git repo
1161 export extern "jj git" [
1162 --repository(-R): string # Path to repository to operate on
1163 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1164 --ignore-immutable # Allow rewriting immutable commits
1165 --at-operation: string # Operation to load the repo at
1166 --at-op: string # Operation to load the repo at
1167 --debug # Enable debug logging
1168 --color: string # When to colorize output (always, never, debug, auto)
1169 --quiet # Silence non-primary command output
1170 --no-pager # Disable the pager
1171 --config-toml: string # Additional configuration options (can be repeated)
1172 --help(-h) # Print help (see more with '--help')
1173 ]
1175 # Create a new repo backed by a clone of a Git repo
1176 export extern "jj git clone" [
1177 source: string # URL or path of the Git repo to clone
1178 destination?: string # Specifies the target directory for the Jujutsu repository clone. If not provided, defaults to a directory named after the last component of the source URL. The full directory path will be created if it doesn't exist
1179 --remote: string # Name of the newly created remote
1180 --colocate # Whether or not to colocate the Jujutsu repo with the git repo
1181 --depth: string # Create a shallow clone of the given depth
1182 --repository(-R): string # Path to repository to operate on
1183 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1184 --ignore-immutable # Allow rewriting immutable commits
1185 --at-operation: string # Operation to load the repo at
1186 --at-op: string # Operation to load the repo at
1187 --debug # Enable debug logging
1188 --color: string # When to colorize output (always, never, debug, auto)
1189 --quiet # Silence non-primary command output
1190 --no-pager # Disable the pager
1191 --config-toml: string # Additional configuration options (can be repeated)
1192 --help(-h) # Print help (see more with '--help')
1193 ]
1195 # Update the underlying Git repo with changes made in the repo
1196 export extern "jj git export" [
1197 --repository(-R): string # Path to repository to operate on
1198 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1199 --ignore-immutable # Allow rewriting immutable commits
1200 --at-operation: string # Operation to load the repo at
1201 --at-op: string # Operation to load the repo at
1202 --debug # Enable debug logging
1203 --color: string # When to colorize output (always, never, debug, auto)
1204 --quiet # Silence non-primary command output
1205 --no-pager # Disable the pager
1206 --config-toml: string # Additional configuration options (can be repeated)
1207 --help(-h) # Print help (see more with '--help')
1208 ]
1210 # Fetch from a Git remote
1211 export extern "jj git fetch" [
1212 --branch(-b): string # Fetch only some of the branches
1213 --remote: string # The remote to fetch from (only named remotes are supported, can be repeated)
1214 --all-remotes # Fetch from all remotes
1215 --repository(-R): string # Path to repository to operate on
1216 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1217 --ignore-immutable # Allow rewriting immutable commits
1218 --at-operation: string # Operation to load the repo at
1219 --at-op: string # Operation to load the repo at
1220 --debug # Enable debug logging
1221 --color: string # When to colorize output (always, never, debug, auto)
1222 --quiet # Silence non-primary command output
1223 --no-pager # Disable the pager
1224 --config-toml: string # Additional configuration options (can be repeated)
1225 --help(-h) # Print help (see more with '--help')
1226 ]
1228 # Update repo with changes made in the underlying Git repo
1229 export extern "jj git import" [
1230 --repository(-R): string # Path to repository to operate on
1231 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1232 --ignore-immutable # Allow rewriting immutable commits
1233 --at-operation: string # Operation to load the repo at
1234 --at-op: string # Operation to load the repo at
1235 --debug # Enable debug logging
1236 --color: string # When to colorize output (always, never, debug, auto)
1237 --quiet # Silence non-primary command output
1238 --no-pager # Disable the pager
1239 --config-toml: string # Additional configuration options (can be repeated)
1240 --help(-h) # Print help (see more with '--help')
1241 ]
1243 # Create a new Git backed repo
1244 export extern "jj git init" [
1245 destination?: string # The destination directory where the `jj` repo will be created. If the directory does not exist, it will be created. If no directory is given, the current directory is used
1246 --colocate # Specifies that the `jj` repo should also be a valid `git` repo, allowing the use of both `jj` and `git` commands in the same directory
1247 --git-repo: string # Specifies a path to an **existing** git repository to be used as the backing git repo for the newly created `jj` repo
1248 --repository(-R): string # Path to repository to operate on
1249 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1250 --ignore-immutable # Allow rewriting immutable commits
1251 --at-operation: string # Operation to load the repo at
1252 --at-op: string # Operation to load the repo at
1253 --debug # Enable debug logging
1254 --color: string # When to colorize output (always, never, debug, auto)
1255 --quiet # Silence non-primary command output
1256 --no-pager # Disable the pager
1257 --config-toml: string # Additional configuration options (can be repeated)
1258 --help(-h) # Print help (see more with '--help')
1259 ]
1261 # Push to a Git remote
1262 export extern "jj git push" [
1263 --remote: string # The remote to push to (only named remotes are supported)
1264 --bookmark(-b): string # Push only this bookmark, or bookmarks matching a pattern (can be repeated)
1265 --all # Push all bookmarks (including deleted bookmarks)
1266 --tracked # Push all tracked bookmarks (including deleted bookmarks)
1267 --deleted # Push all deleted bookmarks
1268 --allow-empty-description # Allow pushing commits with empty descriptions
1269 --allow-private # Allow pushing commits that are private
1270 --revisions(-r): string # Push bookmarks pointing to these commits (can be repeated)
1271 --change(-c): string # Push this commit by creating a bookmark based on its change ID (can be repeated)
1272 --dry-run # Only display what will change on the remote
1273 --repository(-R): string # Path to repository to operate on
1274 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1275 --ignore-immutable # Allow rewriting immutable commits
1276 --at-operation: string # Operation to load the repo at
1277 --at-op: string # Operation to load the repo at
1278 --debug # Enable debug logging
1279 --color: string # When to colorize output (always, never, debug, auto)
1280 --quiet # Silence non-primary command output
1281 --no-pager # Disable the pager
1282 --config-toml: string # Additional configuration options (can be repeated)
1283 --help(-h) # Print help (see more with '--help')
1284 ]
1286 # Manage Git remotes
1287 export extern "jj git remote" [
1288 --repository(-R): string # Path to repository to operate on
1289 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1290 --ignore-immutable # Allow rewriting immutable commits
1291 --at-operation: string # Operation to load the repo at
1292 --at-op: string # Operation to load the repo at
1293 --debug # Enable debug logging
1294 --color: string # When to colorize output (always, never, debug, auto)
1295 --quiet # Silence non-primary command output
1296 --no-pager # Disable the pager
1297 --config-toml: string # Additional configuration options (can be repeated)
1298 --help(-h) # Print help (see more with '--help')
1299 ]
1301 # Add a Git remote
1302 export extern "jj git remote add" [
1303 remote: string # The remote's name
1304 url: string # The remote's URL
1305 --repository(-R): string # Path to repository to operate on
1306 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1307 --ignore-immutable # Allow rewriting immutable commits
1308 --at-operation: string # Operation to load the repo at
1309 --at-op: string # Operation to load the repo at
1310 --debug # Enable debug logging
1311 --color: string # When to colorize output (always, never, debug, auto)
1312 --quiet # Silence non-primary command output
1313 --no-pager # Disable the pager
1314 --config-toml: string # Additional configuration options (can be repeated)
1315 --help(-h) # Print help (see more with '--help')
1316 ]
1318 # List Git remotes
1319 export extern "jj git remote list" [
1320 --repository(-R): string # Path to repository to operate on
1321 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1322 --ignore-immutable # Allow rewriting immutable commits
1323 --at-operation: string # Operation to load the repo at
1324 --at-op: string # Operation to load the repo at
1325 --debug # Enable debug logging
1326 --color: string # When to colorize output (always, never, debug, auto)
1327 --quiet # Silence non-primary command output
1328 --no-pager # Disable the pager
1329 --config-toml: string # Additional configuration options (can be repeated)
1330 --help(-h) # Print help (see more with '--help')
1331 ]
1333 # Remove a Git remote and forget its bookmarks
1334 export extern "jj git remote remove" [
1335 remote: string # The remote's name
1336 --repository(-R): string # Path to repository to operate on
1337 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1338 --ignore-immutable # Allow rewriting immutable commits
1339 --at-operation: string # Operation to load the repo at
1340 --at-op: string # Operation to load the repo at
1341 --debug # Enable debug logging
1342 --color: string # When to colorize output (always, never, debug, auto)
1343 --quiet # Silence non-primary command output
1344 --no-pager # Disable the pager
1345 --config-toml: string # Additional configuration options (can be repeated)
1346 --help(-h) # Print help (see more with '--help')
1347 ]
1349 # Rename a Git remote
1350 export extern "jj git remote rename" [
1351 old: string # The name of an existing remote
1352 new: string # The desired name for `old`
1353 --repository(-R): string # Path to repository to operate on
1354 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1355 --ignore-immutable # Allow rewriting immutable commits
1356 --at-operation: string # Operation to load the repo at
1357 --at-op: string # Operation to load the repo at
1358 --debug # Enable debug logging
1359 --color: string # When to colorize output (always, never, debug, auto)
1360 --quiet # Silence non-primary command output
1361 --no-pager # Disable the pager
1362 --config-toml: string # Additional configuration options (can be repeated)
1363 --help(-h) # Print help (see more with '--help')
1364 ]
1366 # Set the URL of a Git remote
1367 export extern "jj git remote set-url" [
1368 remote: string # The remote's name
1369 url: string # The desired url for `remote`
1370 --repository(-R): string # Path to repository to operate on
1371 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1372 --ignore-immutable # Allow rewriting immutable commits
1373 --at-operation: string # Operation to load the repo at
1374 --at-op: string # Operation to load the repo at
1375 --debug # Enable debug logging
1376 --color: string # When to colorize output (always, never, debug, auto)
1377 --quiet # Silence non-primary command output
1378 --no-pager # Disable the pager
1379 --config-toml: string # Additional configuration options (can be repeated)
1380 --help(-h) # Print help (see more with '--help')
1381 ]
1383 # FOR INTERNAL USE ONLY Interact with git submodules
1384 export extern "jj git submodule" [
1385 --repository(-R): string # Path to repository to operate on
1386 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1387 --ignore-immutable # Allow rewriting immutable commits
1388 --at-operation: string # Operation to load the repo at
1389 --at-op: string # Operation to load the repo at
1390 --debug # Enable debug logging
1391 --color: string # When to colorize output (always, never, debug, auto)
1392 --quiet # Silence non-primary command output
1393 --no-pager # Disable the pager
1394 --config-toml: string # Additional configuration options (can be repeated)
1395 --help(-h) # Print help (see more with '--help')
1396 ]
1398 # Print the relevant contents from .gitmodules. For debugging purposes only
1399 export extern "jj git submodule print-gitmodules" [
1400 --revisions(-r): string # Read .gitmodules from the given revision
1401 --repository(-R): string # Path to repository to operate on
1402 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1403 --ignore-immutable # Allow rewriting immutable commits
1404 --at-operation: string # Operation to load the repo at
1405 --at-op: string # Operation to load the repo at
1406 --debug # Enable debug logging
1407 --color: string # When to colorize output (always, never, debug, auto)
1408 --quiet # Silence non-primary command output
1409 --no-pager # Disable the pager
1410 --config-toml: string # Additional configuration options (can be repeated)
1411 --help(-h) # Print help (see more with '--help')
1412 ]
1414 def "nu-complete jj help keyword" [] {
1415 [ "revsets" "tutorial" ]
1416 }
1418 # Print this message or the help of the given subcommand(s)
1419 export extern "jj help" [
1420 ...command: string # Print help for the subcommand(s)
1421 --keyword(-k): string@"nu-complete jj help keyword" # Show help for keywords instead of commands
1422 --repository(-R): string # Path to repository to operate on
1423 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1424 --ignore-immutable # Allow rewriting immutable commits
1425 --at-operation: string # Operation to load the repo at
1426 --at-op: string # Operation to load the repo at
1427 --debug # Enable debug logging
1428 --color: string # When to colorize output (always, never, debug, auto)
1429 --quiet # Silence non-primary command output
1430 --no-pager # Disable the pager
1431 --config-toml: string # Additional configuration options (can be repeated)
1432 --help(-h) # Print help (see more with '--help')
1433 ]
1435 # Create a new repo in the given directory
1436 export extern "jj init" [
1437 destination?: string # The destination directory
1438 --git # DEPRECATED: Use `jj git init` Use the Git backend, creating a jj repo backed by a Git repo
1439 --git-repo: string # DEPRECATED: Use `jj git init` Path to a git repo the jj repo will be backed by
1440 --repository(-R): string # Path to repository to operate on
1441 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1442 --ignore-immutable # Allow rewriting immutable commits
1443 --at-operation: string # Operation to load the repo at
1444 --at-op: string # Operation to load the repo at
1445 --debug # Enable debug logging
1446 --color: string # When to colorize output (always, never, debug, auto)
1447 --quiet # Silence non-primary command output
1448 --no-pager # Disable the pager
1449 --config-toml: string # Additional configuration options (can be repeated)
1450 --help(-h) # Print help (see more with '--help')
1451 ]
1453 # Compare the changes of two commits
1454 export extern "jj interdiff" [
1455 --from: string # Show changes from this revision
1456 --to: string # Show changes to this revision
1457 ...paths: string # Restrict the diff to these paths
1458 --summary(-s) # For each path, show only whether it was modified, added, or deleted
1459 --stat # Show a histogram of the changes
1460 --types # For each path, show only its type before and after
1461 --name-only # For each path, show only its path
1462 --git # Show a Git-format diff
1463 --color-words # Show a word-level diff with changes indicated only by color
1464 --tool: string # Generate diff by external command
1465 --context: string # Number of lines of context to show
1466 --ignore-all-space(-w) # Ignore whitespace when comparing lines
1467 --ignore-space-change(-b) # Ignore changes in amount of whitespace when comparing lines
1468 --repository(-R): string # Path to repository to operate on
1469 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1470 --ignore-immutable # Allow rewriting immutable commits
1471 --at-operation: string # Operation to load the repo at
1472 --at-op: string # Operation to load the repo at
1473 --debug # Enable debug logging
1474 --color: string # When to colorize output (always, never, debug, auto)
1475 --quiet # Silence non-primary command output
1476 --no-pager # Disable the pager
1477 --config-toml: string # Additional configuration options (can be repeated)
1478 --help(-h) # Print help (see more with '--help')
1479 ]
1481 # Show revision history
1482 export extern "jj log" [
1483 --revisions(-r): string # Which revisions to show
1484 ...paths: string # Show revisions modifying the given paths
1485 --reversed # Show revisions in the opposite order (older revisions first)
1486 --limit(-n): string # Limit number of revisions to show
1487 -l: string
1488 --no-graph # Don't show the graph, show a flat list of revisions
1489 --template(-T): string # Render each revision using the given template
1490 --patch(-p) # Show patch
1491 --summary(-s) # For each path, show only whether it was modified, added, or deleted
1492 --stat # Show a histogram of the changes
1493 --types # For each path, show only its type before and after
1494 --name-only # For each path, show only its path
1495 --git # Show a Git-format diff
1496 --color-words # Show a word-level diff with changes indicated only by color
1497 --tool: string # Generate diff by external command
1498 --context: string # Number of lines of context to show
1499 --ignore-all-space # Ignore whitespace when comparing lines
1500 --ignore-space-change # Ignore changes in amount of whitespace when comparing lines
1501 --repository(-R): string # Path to repository to operate on
1502 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1503 --ignore-immutable # Allow rewriting immutable commits
1504 --at-operation: string # Operation to load the repo at
1505 --at-op: string # Operation to load the repo at
1506 --debug # Enable debug logging
1507 --color: string # When to colorize output (always, never, debug, auto)
1508 --quiet # Silence non-primary command output
1509 --no-pager # Disable the pager
1510 --config-toml: string # Additional configuration options (can be repeated)
1511 --help(-h) # Print help (see more with '--help')
1512 ]
1514 # Merge work from multiple bookmarks (DEPRECATED, use `jj new`)
1515 export extern "jj merge" [
1516 ...revisions: string # Parent(s) of the new change
1517 -d # Ignored (but lets you pass `-d`/`-r` for consistency with other commands)
1518 --message(-m): string # The change description to use
1519 --no-edit # Do not edit the newly created change
1520 --edit # No-op flag to pair with --no-edit
1521 --insert-after(-A): string # Insert the new change after the given commit(s)
1522 --after: string # Insert the new change after the given commit(s)
1523 --insert-before(-B): string # Insert the new change before the given commit(s)
1524 --before: string # Insert the new change before the given commit(s)
1525 --repository(-R): string # Path to repository to operate on
1526 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1527 --ignore-immutable # Allow rewriting immutable commits
1528 --at-operation: string # Operation to load the repo at
1529 --at-op: string # Operation to load the repo at
1530 --debug # Enable debug logging
1531 --color: string # When to colorize output (always, never, debug, auto)
1532 --quiet # Silence non-primary command output
1533 --no-pager # Disable the pager
1534 --config-toml: string # Additional configuration options (can be repeated)
1535 --help(-h) # Print help (see more with '--help')
1536 ]
1538 # Move changes from one revision into another (DEPRECATED, use `jj squash`)
1539 export extern "jj move" [
1540 --from(-f): string # Move part of this change into the destination
1541 --to(-t): string # Move part of the source into this change
1542 --interactive(-i) # Interactively choose which parts to move
1543 --tool: string # Specify diff editor to be used (implies --interactive)
1544 ...paths: string # Move only changes to these paths (instead of all paths)
1545 --repository(-R): string # Path to repository to operate on
1546 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1547 --ignore-immutable # Allow rewriting immutable commits
1548 --at-operation: string # Operation to load the repo at
1549 --at-op: string # Operation to load the repo at
1550 --debug # Enable debug logging
1551 --color: string # When to colorize output (always, never, debug, auto)
1552 --quiet # Silence non-primary command output
1553 --no-pager # Disable the pager
1554 --config-toml: string # Additional configuration options (can be repeated)
1555 --help(-h) # Print help (see more with '--help')
1556 ]
1558 # Create a new, empty change and (by default) edit it in the working copy
1559 export extern "jj new" [
1560 ...revisions: string # Parent(s) of the new change
1561 -d # Ignored (but lets you pass `-d`/`-r` for consistency with other commands)
1562 --message(-m): string # The change description to use
1563 --no-edit # Do not edit the newly created change
1564 --edit # No-op flag to pair with --no-edit
1565 --insert-after(-A): string # Insert the new change after the given commit(s)
1566 --after: string # Insert the new change after the given commit(s)
1567 --insert-before(-B): string # Insert the new change before the given commit(s)
1568 --before: string # Insert the new change before the given commit(s)
1569 --repository(-R): string # Path to repository to operate on
1570 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1571 --ignore-immutable # Allow rewriting immutable commits
1572 --at-operation: string # Operation to load the repo at
1573 --at-op: string # Operation to load the repo at
1574 --debug # Enable debug logging
1575 --color: string # When to colorize output (always, never, debug, auto)
1576 --quiet # Silence non-primary command output
1577 --no-pager # Disable the pager
1578 --config-toml: string # Additional configuration options (can be repeated)
1579 --help(-h) # Print help (see more with '--help')
1580 ]
1582 # Move the working-copy commit to the child revision
1583 export extern "jj next" [
1584 offset?: string # How many revisions to move forward. Advances to the next child by default
1585 --edit(-e) # Instead of creating a new working-copy commit on top of the target commit (like `jj new`), edit the target commit directly (like `jj edit`)
1586 --no-edit(-n) # The inverse of `--edit`
1587 --conflict # Jump to the next conflicted descendant
1588 --repository(-R): string # Path to repository to operate on
1589 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1590 --ignore-immutable # Allow rewriting immutable commits
1591 --at-operation: string # Operation to load the repo at
1592 --at-op: string # Operation to load the repo at
1593 --debug # Enable debug logging
1594 --color: string # When to colorize output (always, never, debug, auto)
1595 --quiet # Silence non-primary command output
1596 --no-pager # Disable the pager
1597 --config-toml: string # Additional configuration options (can be repeated)
1598 --help(-h) # Print help (see more with '--help')
1599 ]
1601 # Commands for working with the operation log
1602 export extern "jj operation" [
1603 --repository(-R): string # Path to repository to operate on
1604 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1605 --ignore-immutable # Allow rewriting immutable commits
1606 --at-operation: string # Operation to load the repo at
1607 --at-op: string # Operation to load the repo at
1608 --debug # Enable debug logging
1609 --color: string # When to colorize output (always, never, debug, auto)
1610 --quiet # Silence non-primary command output
1611 --no-pager # Disable the pager
1612 --config-toml: string # Additional configuration options (can be repeated)
1613 --help(-h) # Print help (see more with '--help')
1614 ]
1616 # Abandon operation history
1617 export extern "jj operation abandon" [
1618 operation: string # The operation or operation range to abandon
1619 --repository(-R): string # Path to repository to operate on
1620 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1621 --ignore-immutable # Allow rewriting immutable commits
1622 --at-operation: string # Operation to load the repo at
1623 --at-op: string # Operation to load the repo at
1624 --debug # Enable debug logging
1625 --color: string # When to colorize output (always, never, debug, auto)
1626 --quiet # Silence non-primary command output
1627 --no-pager # Disable the pager
1628 --config-toml: string # Additional configuration options (can be repeated)
1629 --help(-h) # Print help (see more with '--help')
1630 ]
1632 # Compare changes to the repository between two operations
1633 export extern "jj operation diff" [
1634 --operation: string # Show repository changes in this operation, compared to its parent
1635 --op: string # Show repository changes in this operation, compared to its parent
1636 --from: string # Show repository changes from this operation
1637 --to: string # Show repository changes to this operation
1638 --no-graph # Don't show the graph, show a flat list of modified changes
1639 --patch(-p) # Show patch of modifications to changes
1640 --summary(-s) # For each path, show only whether it was modified, added, or deleted
1641 --stat # Show a histogram of the changes
1642 --types # For each path, show only its type before and after
1643 --name-only # For each path, show only its path
1644 --git # Show a Git-format diff
1645 --color-words # Show a word-level diff with changes indicated only by color
1646 --tool: string # Generate diff by external command
1647 --context: string # Number of lines of context to show
1648 --ignore-all-space # Ignore whitespace when comparing lines
1649 --ignore-space-change # Ignore changes in amount of whitespace when comparing lines
1650 --repository(-R): string # Path to repository to operate on
1651 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1652 --ignore-immutable # Allow rewriting immutable commits
1653 --at-operation: string # Operation to load the repo at
1654 --at-op: string # Operation to load the repo at
1655 --debug # Enable debug logging
1656 --color: string # When to colorize output (always, never, debug, auto)
1657 --quiet # Silence non-primary command output
1658 --no-pager # Disable the pager
1659 --config-toml: string # Additional configuration options (can be repeated)
1660 --help(-h) # Print help (see more with '--help')
1661 ]
1663 # Show the operation log
1664 export extern "jj operation log" [
1665 --limit(-n): string # Limit number of operations to show
1666 -l: string
1667 --no-graph # Don't show the graph, show a flat list of operations
1668 --template(-T): string # Render each operation using the given template
1669 --op-diff # Show changes to the repository at each operation
1670 --patch(-p) # Show patch of modifications to changes (implies --op-diff)
1671 --summary(-s) # For each path, show only whether it was modified, added, or deleted
1672 --stat # Show a histogram of the changes
1673 --types # For each path, show only its type before and after
1674 --name-only # For each path, show only its path
1675 --git # Show a Git-format diff
1676 --color-words # Show a word-level diff with changes indicated only by color
1677 --tool: string # Generate diff by external command
1678 --context: string # Number of lines of context to show
1679 --ignore-all-space # Ignore whitespace when comparing lines
1680 --ignore-space-change # Ignore changes in amount of whitespace when comparing lines
1681 --repository(-R): string # Path to repository to operate on
1682 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1683 --ignore-immutable # Allow rewriting immutable commits
1684 --at-operation: string # Operation to load the repo at
1685 --at-op: string # Operation to load the repo at
1686 --debug # Enable debug logging
1687 --color: string # When to colorize output (always, never, debug, auto)
1688 --quiet # Silence non-primary command output
1689 --no-pager # Disable the pager
1690 --config-toml: string # Additional configuration options (can be repeated)
1691 --help(-h) # Print help (see more with '--help')
1692 ]
1694 def "nu-complete jj operation restore what" [] {
1695 [ "repo" "remote-tracking" ]
1696 }
1698 # Create a new operation that restores the repo to an earlier state
1699 export extern "jj operation restore" [
1700 operation: string # The operation to restore to
1701 --what: string@"nu-complete jj operation restore what" # What portions of the local state to restore (can be repeated)
1702 --repository(-R): string # Path to repository to operate on
1703 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1704 --ignore-immutable # Allow rewriting immutable commits
1705 --at-operation: string # Operation to load the repo at
1706 --at-op: string # Operation to load the repo at
1707 --debug # Enable debug logging
1708 --color: string # When to colorize output (always, never, debug, auto)
1709 --quiet # Silence non-primary command output
1710 --no-pager # Disable the pager
1711 --config-toml: string # Additional configuration options (can be repeated)
1712 --help(-h) # Print help (see more with '--help')
1713 ]
1715 # Show changes to the repository in an operation
1716 export extern "jj operation show" [
1717 operation?: string # Show repository changes in this operation, compared to its parent(s)
1718 --no-graph # Don't show the graph, show a flat list of modified changes
1719 --patch(-p) # Show patch of modifications to changes
1720 --summary(-s) # For each path, show only whether it was modified, added, or deleted
1721 --stat # Show a histogram of the changes
1722 --types # For each path, show only its type before and after
1723 --name-only # For each path, show only its path
1724 --git # Show a Git-format diff
1725 --color-words # Show a word-level diff with changes indicated only by color
1726 --tool: string # Generate diff by external command
1727 --context: string # Number of lines of context to show
1728 --ignore-all-space # Ignore whitespace when comparing lines
1729 --ignore-space-change # Ignore changes in amount of whitespace when comparing lines
1730 --repository(-R): string # Path to repository to operate on
1731 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1732 --ignore-immutable # Allow rewriting immutable commits
1733 --at-operation: string # Operation to load the repo at
1734 --at-op: string # Operation to load the repo at
1735 --debug # Enable debug logging
1736 --color: string # When to colorize output (always, never, debug, auto)
1737 --quiet # Silence non-primary command output
1738 --no-pager # Disable the pager
1739 --config-toml: string # Additional configuration options (can be repeated)
1740 --help(-h) # Print help (see more with '--help')
1741 ]
1743 def "nu-complete jj operation undo what" [] {
1744 [ "repo" "remote-tracking" ]
1745 }
1747 # Create a new operation that undoes an earlier operation
1748 export extern "jj operation undo" [
1749 operation?: string # The operation to undo
1750 --what: string@"nu-complete jj operation undo what" # What portions of the local state to restore (can be repeated)
1751 --repository(-R): string # Path to repository to operate on
1752 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1753 --ignore-immutable # Allow rewriting immutable commits
1754 --at-operation: string # Operation to load the repo at
1755 --at-op: string # Operation to load the repo at
1756 --debug # Enable debug logging
1757 --color: string # When to colorize output (always, never, debug, auto)
1758 --quiet # Silence non-primary command output
1759 --no-pager # Disable the pager
1760 --config-toml: string # Additional configuration options (can be repeated)
1761 --help(-h) # Print help (see more with '--help')
1762 ]
1764 # Parallelize revisions by making them siblings
1765 export extern "jj parallelize" [
1766 ...revisions: string # Revisions to parallelize
1767 --repository(-R): string # Path to repository to operate on
1768 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1769 --ignore-immutable # Allow rewriting immutable commits
1770 --at-operation: string # Operation to load the repo at
1771 --at-op: string # Operation to load the repo at
1772 --debug # Enable debug logging
1773 --color: string # When to colorize output (always, never, debug, auto)
1774 --quiet # Silence non-primary command output
1775 --no-pager # Disable the pager
1776 --config-toml: string # Additional configuration options (can be repeated)
1777 --help(-h) # Print help (see more with '--help')
1778 ]
1780 # Change the working copy revision relative to the parent revision
1781 export extern "jj prev" [
1782 offset?: string # How many revisions to move backward. Moves to the parent by default
1783 --edit(-e) # Edit the parent directly, instead of moving the working-copy commit
1784 --no-edit(-n) # The inverse of `--edit`
1785 --conflict # Jump to the previous conflicted ancestor
1786 --repository(-R): string # Path to repository to operate on
1787 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1788 --ignore-immutable # Allow rewriting immutable commits
1789 --at-operation: string # Operation to load the repo at
1790 --at-op: string # Operation to load the repo at
1791 --debug # Enable debug logging
1792 --color: string # When to colorize output (always, never, debug, auto)
1793 --quiet # Silence non-primary command output
1794 --no-pager # Disable the pager
1795 --config-toml: string # Additional configuration options (can be repeated)
1796 --help(-h) # Print help (see more with '--help')
1797 ]
1799 # Move revisions to different parent(s)
1800 export extern "jj rebase" [
1801 --branch(-b): string # Rebase the whole branch relative to destination's ancestors (can be repeated)
1802 --source(-s): string # Rebase specified revision(s) together with their trees of descendants (can be repeated)
1803 --revisions(-r): string # Rebase the given revisions, rebasing descendants onto this revision's parent(s)
1804 --destination(-d): string # The revision(s) to rebase onto (can be repeated to create a merge commit)
1805 --insert-after(-A): string # The revision(s) to insert after (can be repeated to create a merge commit)
1806 --after: string # The revision(s) to insert after (can be repeated to create a merge commit)
1807 --insert-before(-B): string # The revision(s) to insert before (can be repeated to create a merge commit)
1808 --before: string # The revision(s) to insert before (can be repeated to create a merge commit)
1809 --skip-empty # Deprecated. Use --skip-emptied instead
1810 --skip-emptied # If true, when rebasing would produce an empty commit, the commit is abandoned. It will not be abandoned if it was already empty before the rebase. Will never skip merge commits with multiple non-empty parents
1811 --repository(-R): string # Path to repository to operate on
1812 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1813 --ignore-immutable # Allow rewriting immutable commits
1814 --at-operation: string # Operation to load the repo at
1815 --at-op: string # Operation to load the repo at
1816 --debug # Enable debug logging
1817 --color: string # When to colorize output (always, never, debug, auto)
1818 --quiet # Silence non-primary command output
1819 --no-pager # Disable the pager
1820 --config-toml: string # Additional configuration options (can be repeated)
1821 --help(-h) # Print help (see more with '--help')
1822 ]
1824 # Resolve a conflicted file with an external merge tool
1825 export extern "jj resolve" [
1826 --revision(-r): string
1827 --list(-l) # Instead of resolving one conflict, list all the conflicts
1828 --tool: string # Specify 3-way merge tool to be used
1829 ...paths: string # Restrict to these paths when searching for a conflict to resolve. We will attempt to resolve the first conflict we can find. You can use the `--list` argument to find paths to use here
1830 --repository(-R): string # Path to repository to operate on
1831 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1832 --ignore-immutable # Allow rewriting immutable commits
1833 --at-operation: string # Operation to load the repo at
1834 --at-op: string # Operation to load the repo at
1835 --debug # Enable debug logging
1836 --color: string # When to colorize output (always, never, debug, auto)
1837 --quiet # Silence non-primary command output
1838 --no-pager # Disable the pager
1839 --config-toml: string # Additional configuration options (can be repeated)
1840 --help(-h) # Print help (see more with '--help')
1841 ]
1843 # Restore paths from another revision
1844 export extern "jj restore" [
1845 ...paths: string # Restore only these paths (instead of all paths)
1846 --from: string # Revision to restore from (source)
1847 --to: string # Revision to restore into (destination)
1848 --changes-in(-c): string # Undo the changes in a revision as compared to the merge of its parents
1849 --revision(-r): string # Prints an error. DO NOT USE
1850 --restore-descendants # Preserve the content (not the diff) when rebasing descendants
1851 --repository(-R): string # Path to repository to operate on
1852 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1853 --ignore-immutable # Allow rewriting immutable commits
1854 --at-operation: string # Operation to load the repo at
1855 --at-op: string # Operation to load the repo at
1856 --debug # Enable debug logging
1857 --color: string # When to colorize output (always, never, debug, auto)
1858 --quiet # Silence non-primary command output
1859 --no-pager # Disable the pager
1860 --config-toml: string # Additional configuration options (can be repeated)
1861 --help(-h) # Print help (see more with '--help')
1862 ]
1864 # A dummy command that accepts any arguments
1865 export extern "jj revert" [
1866 ..._args: string
1867 --repository(-R): string # Path to repository to operate on
1868 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1869 --ignore-immutable # Allow rewriting immutable commits
1870 --at-operation: string # Operation to load the repo at
1871 --at-op: string # Operation to load the repo at
1872 --debug # Enable debug logging
1873 --color: string # When to colorize output (always, never, debug, auto)
1874 --quiet # Silence non-primary command output
1875 --no-pager # Disable the pager
1876 --config-toml: string # Additional configuration options (can be repeated)
1877 --help(-h) # Print help (see more with '--help')
1878 ]
1880 # Show the current workspace root directory
1881 export extern "jj root" [
1882 --repository(-R): string # Path to repository to operate on
1883 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1884 --ignore-immutable # Allow rewriting immutable commits
1885 --at-operation: string # Operation to load the repo at
1886 --at-op: string # Operation to load the repo at
1887 --debug # Enable debug logging
1888 --color: string # When to colorize output (always, never, debug, auto)
1889 --quiet # Silence non-primary command output
1890 --no-pager # Disable the pager
1891 --config-toml: string # Additional configuration options (can be repeated)
1892 --help(-h) # Print help (see more with '--help')
1893 ]
1895 # (**Stub**, does not work yet) Run a command across a set of revisions.
1896 export extern "jj run" [
1897 shell_command: string # The command to run across all selected revisions
1898 --revisions(-r): string # The revisions to change
1899 -x # A no-op option to match the interface of `git rebase -x`
1900 --jobs(-j): string # How many processes should run in parallel, uses by default all cores
1901 --repository(-R): string # Path to repository to operate on
1902 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1903 --ignore-immutable # Allow rewriting immutable commits
1904 --at-operation: string # Operation to load the repo at
1905 --at-op: string # Operation to load the repo at
1906 --debug # Enable debug logging
1907 --color: string # When to colorize output (always, never, debug, auto)
1908 --quiet # Silence non-primary command output
1909 --no-pager # Disable the pager
1910 --config-toml: string # Additional configuration options (can be repeated)
1911 --help(-h) # Print help (see more with '--help')
1912 ]
1914 # Show commit description and changes in a revision
1915 export extern "jj show" [
1916 revision?: string # Show changes in this revision, compared to its parent(s)
1917 -r # Ignored (but lets you pass `-r` for consistency with other commands)
1918 --template(-T): string # Render a revision using the given template
1919 --summary(-s) # For each path, show only whether it was modified, added, or deleted
1920 --stat # Show a histogram of the changes
1921 --types # For each path, show only its type before and after
1922 --name-only # For each path, show only its path
1923 --git # Show a Git-format diff
1924 --color-words # Show a word-level diff with changes indicated only by color
1925 --tool: string # Generate diff by external command
1926 --context: string # Number of lines of context to show
1927 --ignore-all-space # Ignore whitespace when comparing lines
1928 --ignore-space-change # Ignore changes in amount of whitespace when comparing lines
1929 --repository(-R): string # Path to repository to operate on
1930 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1931 --ignore-immutable # Allow rewriting immutable commits
1932 --at-operation: string # Operation to load the repo at
1933 --at-op: string # Operation to load the repo at
1934 --debug # Enable debug logging
1935 --color: string # When to colorize output (always, never, debug, auto)
1936 --quiet # Silence non-primary command output
1937 --no-pager # Disable the pager
1938 --config-toml: string # Additional configuration options (can be repeated)
1939 --help(-h) # Print help (see more with '--help')
1940 ]
1942 # Simplify parent edges for the specified revision(s)
1943 export extern "jj simplify-parents" [
1944 --source(-s): string # Simplify specified revision(s) together with their trees of descendants (can be repeated)
1945 --revisions(-r): string # Simplify specified revision(s) (can be repeated)
1946 --repository(-R): string # Path to repository to operate on
1947 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1948 --ignore-immutable # Allow rewriting immutable commits
1949 --at-operation: string # Operation to load the repo at
1950 --at-op: string # Operation to load the repo at
1951 --debug # Enable debug logging
1952 --color: string # When to colorize output (always, never, debug, auto)
1953 --quiet # Silence non-primary command output
1954 --no-pager # Disable the pager
1955 --config-toml: string # Additional configuration options (can be repeated)
1956 --help(-h) # Print help (see more with '--help')
1957 ]
1959 # Manage which paths from the working-copy commit are present in the working copy
1960 export extern "jj sparse" [
1961 --repository(-R): string # Path to repository to operate on
1962 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1963 --ignore-immutable # Allow rewriting immutable commits
1964 --at-operation: string # Operation to load the repo at
1965 --at-op: string # Operation to load the repo at
1966 --debug # Enable debug logging
1967 --color: string # When to colorize output (always, never, debug, auto)
1968 --quiet # Silence non-primary command output
1969 --no-pager # Disable the pager
1970 --config-toml: string # Additional configuration options (can be repeated)
1971 --help(-h) # Print help (see more with '--help')
1972 ]
1974 # Start an editor to update the patterns that are present in the working copy
1975 export extern "jj sparse edit" [
1976 --repository(-R): string # Path to repository to operate on
1977 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1978 --ignore-immutable # Allow rewriting immutable commits
1979 --at-operation: string # Operation to load the repo at
1980 --at-op: string # Operation to load the repo at
1981 --debug # Enable debug logging
1982 --color: string # When to colorize output (always, never, debug, auto)
1983 --quiet # Silence non-primary command output
1984 --no-pager # Disable the pager
1985 --config-toml: string # Additional configuration options (can be repeated)
1986 --help(-h) # Print help (see more with '--help')
1987 ]
1989 # List the patterns that are currently present in the working copy
1990 export extern "jj sparse list" [
1991 --repository(-R): string # Path to repository to operate on
1992 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1993 --ignore-immutable # Allow rewriting immutable commits
1994 --at-operation: string # Operation to load the repo at
1995 --at-op: string # Operation to load the repo at
1996 --debug # Enable debug logging
1997 --color: string # When to colorize output (always, never, debug, auto)
1998 --quiet # Silence non-primary command output
1999 --no-pager # Disable the pager
2000 --config-toml: string # Additional configuration options (can be repeated)
2001 --help(-h) # Print help (see more with '--help')
2002 ]
2004 # Reset the patterns to include all files in the working copy
2005 export extern "jj sparse reset" [
2006 --repository(-R): string # Path to repository to operate on
2007 --ignore-working-copy # Don't snapshot the working copy, and don't update it
2008 --ignore-immutable # Allow rewriting immutable commits
2009 --at-operation: string # Operation to load the repo at
2010 --at-op: string # Operation to load the repo at
2011 --debug # Enable debug logging
2012 --color: string # When to colorize output (always, never, debug, auto)
2013 --quiet # Silence non-primary command output
2014 --no-pager # Disable the pager
2015 --config-toml: string # Additional configuration options (can be repeated)
2016 --help(-h) # Print help (see more with '--help')
2017 ]
2019 # Update the patterns that are present in the working copy
2020 export extern "jj sparse set" [
2021 --add: string # Patterns to add to the working copy
2022 --remove: string # Patterns to remove from the working copy
2023 --clear # Include no files in the working copy (combine with --add)
2024 --repository(-R): string # Path to repository to operate on
2025 --ignore-working-copy # Don't snapshot the working copy, and don't update it
2026 --ignore-immutable # Allow rewriting immutable commits
2027 --at-operation: string # Operation to load the repo at
2028 --at-op: string # Operation to load the repo at
2029 --debug # Enable debug logging
2030 --color: string # When to colorize output (always, never, debug, auto)
2031 --quiet # Silence non-primary command output
2032 --no-pager # Disable the pager
2033 --config-toml: string # Additional configuration options (can be repeated)
2034 --help(-h) # Print help (see more with '--help')
2035 ]
2037 # Split a revision in two
2038 export extern "jj split" [
2039 --interactive(-i) # Interactively choose which parts to split. This is the default if no paths are provided
2040 --tool: string # Specify diff editor to be used (implies --interactive)
2041 --revision(-r): string # The revision to split
2042 --parallel(-p) # Split the revision into two parallel revisions instead of a parent and child
2043 ...paths: string # Put these paths in the first commit
2044 --repository(-R): string # Path to repository to operate on
2045 --ignore-working-copy # Don't snapshot the working copy, and don't update it
2046 --ignore-immutable # Allow rewriting immutable commits
2047 --at-operation: string # Operation to load the repo at
2048 --at-op: string # Operation to load the repo at
2049 --debug # Enable debug logging
2050 --color: string # When to colorize output (always, never, debug, auto)
2051 --quiet # Silence non-primary command output
2052 --no-pager # Disable the pager
2053 --config-toml: string # Additional configuration options (can be repeated)
2054 --help(-h) # Print help (see more with '--help')
2055 ]
2057 # Move changes from a revision into another revision
2058 export extern "jj squash" [
2059 --revision(-r): string # Revision to squash into its parent (default: @)
2060 --from(-f): string # Revision(s) to squash from (default: @)
2061 --into(-t): string # Revision to squash into (default: @)
2062 --to: string # Revision to squash into (default: @)
2063 --message(-m): string # The description to use for squashed revision (don't open editor)
2064 --use-destination-message(-u) # Use the description of the destination revision and discard the description(s) of the source revision(s)
2065 --interactive(-i) # Interactively choose which parts to squash
2066 --tool: string # Specify diff editor to be used (implies --interactive)
2067 ...paths: string # Move only changes to these paths (instead of all paths)
2068 --keep-emptied(-k) # The source revision will not be abandoned
2069 --repository(-R): string # Path to repository to operate on
2070 --ignore-working-copy # Don't snapshot the working copy, and don't update it
2071 --ignore-immutable # Allow rewriting immutable commits
2072 --at-operation: string # Operation to load the repo at
2073 --at-op: string # Operation to load the repo at
2074 --debug # Enable debug logging
2075 --color: string # When to colorize output (always, never, debug, auto)
2076 --quiet # Silence non-primary command output
2077 --no-pager # Disable the pager
2078 --config-toml: string # Additional configuration options (can be repeated)
2079 --help(-h) # Print help (see more with '--help')
2080 ]
2082 # Show high-level repo status
2083 export extern "jj status" [
2084 ...paths: string # Restrict the status display to these paths
2085 --repository(-R): string # Path to repository to operate on
2086 --ignore-working-copy # Don't snapshot the working copy, and don't update it
2087 --ignore-immutable # Allow rewriting immutable commits
2088 --at-operation: string # Operation to load the repo at
2089 --at-op: string # Operation to load the repo at
2090 --debug # Enable debug logging
2091 --color: string # When to colorize output (always, never, debug, auto)
2092 --quiet # Silence non-primary command output
2093 --no-pager # Disable the pager
2094 --config-toml: string # Additional configuration options (can be repeated)
2095 --help(-h) # Print help (see more with '--help')
2096 ]
2098 # Manage tags
2099 export extern "jj tag" [
2100 --repository(-R): string # Path to repository to operate on
2101 --ignore-working-copy # Don't snapshot the working copy, and don't update it
2102 --ignore-immutable # Allow rewriting immutable commits
2103 --at-operation: string # Operation to load the repo at
2104 --at-op: string # Operation to load the repo at
2105 --debug # Enable debug logging
2106 --color: string # When to colorize output (always, never, debug, auto)
2107 --quiet # Silence non-primary command output
2108 --no-pager # Disable the pager
2109 --config-toml: string # Additional configuration options (can be repeated)
2110 --help(-h) # Print help (see more with '--help')
2111 ]
2113 # List tags
2114 export extern "jj tag list" [
2115 ...names: string # Show tags whose local name matches
2116 --template(-T): string # Render each tag using the given template
2117 --repository(-R): string # Path to repository to operate on
2118 --ignore-working-copy # Don't snapshot the working copy, and don't update it
2119 --ignore-immutable # Allow rewriting immutable commits
2120 --at-operation: string # Operation to load the repo at
2121 --at-op: string # Operation to load the repo at
2122 --debug # Enable debug logging
2123 --color: string # When to colorize output (always, never, debug, auto)
2124 --quiet # Silence non-primary command output
2125 --no-pager # Disable the pager
2126 --config-toml: string # Additional configuration options (can be repeated)
2127 --help(-h) # Print help (see more with '--help')
2128 ]
2130 # Infrequently used commands such as for generating shell completions
2131 export extern "jj util" [
2132 --repository(-R): string # Path to repository to operate on
2133 --ignore-working-copy # Don't snapshot the working copy, and don't update it
2134 --ignore-immutable # Allow rewriting immutable commits
2135 --at-operation: string # Operation to load the repo at
2136 --at-op: string # Operation to load the repo at
2137 --debug # Enable debug logging
2138 --color: string # When to colorize output (always, never, debug, auto)
2139 --quiet # Silence non-primary command output
2140 --no-pager # Disable the pager
2141 --config-toml: string # Additional configuration options (can be repeated)
2142 --help(-h) # Print help (see more with '--help')
2143 ]
2145 def "nu-complete jj util completion shell" [] {
2146 [ "bash" "elvish" "fish" "nushell" "power-shell" "zsh" ]
2147 }
2149 # Print a command-line-completion script
2150 export extern "jj util completion" [
2151 shell?: string@"nu-complete jj util completion shell"
2152 --bash # Deprecated. Use the SHELL positional argument instead
2153 --fish # Deprecated. Use the SHELL positional argument instead
2154 --zsh # Deprecated. Use the SHELL positional argument instead
2155 --repository(-R): string # Path to repository to operate on
2156 --ignore-working-copy # Don't snapshot the working copy, and don't update it
2157 --ignore-immutable # Allow rewriting immutable commits
2158 --at-operation: string # Operation to load the repo at
2159 --at-op: string # Operation to load the repo at
2160 --debug # Enable debug logging
2161 --color: string # When to colorize output (always, never, debug, auto)
2162 --quiet # Silence non-primary command output
2163 --no-pager # Disable the pager
2164 --config-toml: string # Additional configuration options (can be repeated)
2165 --help(-h) # Print help (see more with '--help')
2166 ]
2168 # Print the JSON schema for the jj TOML config format
2169 export extern "jj util config-schema" [
2170 --repository(-R): string # Path to repository to operate on
2171 --ignore-working-copy # Don't snapshot the working copy, and don't update it
2172 --ignore-immutable # Allow rewriting immutable commits
2173 --at-operation: string # Operation to load the repo at
2174 --at-op: string # Operation to load the repo at
2175 --debug # Enable debug logging
2176 --color: string # When to colorize output (always, never, debug, auto)
2177 --quiet # Silence non-primary command output
2178 --no-pager # Disable the pager
2179 --config-toml: string # Additional configuration options (can be repeated)
2180 --help(-h) # Print help (see more with '--help')
2181 ]
2183 # Run backend-dependent garbage collection
2184 export extern "jj util gc" [
2185 --expire: string # Time threshold
2186 --repository(-R): string # Path to repository to operate on
2187 --ignore-working-copy # Don't snapshot the working copy, and don't update it
2188 --ignore-immutable # Allow rewriting immutable commits
2189 --at-operation: string # Operation to load the repo at
2190 --at-op: string # Operation to load the repo at
2191 --debug # Enable debug logging
2192 --color: string # When to colorize output (always, never, debug, auto)
2193 --quiet # Silence non-primary command output
2194 --no-pager # Disable the pager
2195 --config-toml: string # Additional configuration options (can be repeated)
2196 --help(-h) # Print help (see more with '--help')
2197 ]
2199 # Print a ROFF (manpage)
2200 export extern "jj util mangen" [
2201 --repository(-R): string # Path to repository to operate on
2202 --ignore-working-copy # Don't snapshot the working copy, and don't update it
2203 --ignore-immutable # Allow rewriting immutable commits
2204 --at-operation: string # Operation to load the repo at
2205 --at-op: string # Operation to load the repo at
2206 --debug # Enable debug logging
2207 --color: string # When to colorize output (always, never, debug, auto)
2208 --quiet # Silence non-primary command output
2209 --no-pager # Disable the pager
2210 --config-toml: string # Additional configuration options (can be repeated)
2211 --help(-h) # Print help (see more with '--help')
2212 ]
2214 # Print the CLI help for all subcommands in Markdown
2215 export extern "jj util markdown-help" [
2216 --repository(-R): string # Path to repository to operate on
2217 --ignore-working-copy # Don't snapshot the working copy, and don't update it
2218 --ignore-immutable # Allow rewriting immutable commits
2219 --at-operation: string # Operation to load the repo at
2220 --at-op: string # Operation to load the repo at
2221 --debug # Enable debug logging
2222 --color: string # When to colorize output (always, never, debug, auto)
2223 --quiet # Silence non-primary command output
2224 --no-pager # Disable the pager
2225 --config-toml: string # Additional configuration options (can be repeated)
2226 --help(-h) # Print help (see more with '--help')
2227 ]
2229 def "nu-complete jj undo what" [] {
2230 [ "repo" "remote-tracking" ]
2231 }
2233 # Undo an operation (shortcut for `jj op undo`)
2234 export extern "jj undo" [
2235 operation?: string # The operation to undo
2236 --what: string@"nu-complete jj undo what" # What portions of the local state to restore (can be repeated)
2237 --repository(-R): string # Path to repository to operate on
2238 --ignore-working-copy # Don't snapshot the working copy, and don't update it
2239 --ignore-immutable # Allow rewriting immutable commits
2240 --at-operation: string # Operation to load the repo at
2241 --at-op: string # Operation to load the repo at
2242 --debug # Enable debug logging
2243 --color: string # When to colorize output (always, never, debug, auto)
2244 --quiet # Silence non-primary command output
2245 --no-pager # Disable the pager
2246 --config-toml: string # Additional configuration options (can be repeated)
2247 --help(-h) # Print help (see more with '--help')
2248 ]
2250 # Move changes from a revision's parent into the revision
2251 export extern "jj unsquash" [
2252 --revision(-r): string
2253 --interactive(-i) # Interactively choose which parts to unsquash
2254 --tool: string # Specify diff editor to be used (implies --interactive)
2255 --repository(-R): string # Path to repository to operate on
2256 --ignore-working-copy # Don't snapshot the working copy, and don't update it
2257 --ignore-immutable # Allow rewriting immutable commits
2258 --at-operation: string # Operation to load the repo at
2259 --at-op: string # Operation to load the repo at
2260 --debug # Enable debug logging
2261 --color: string # When to colorize output (always, never, debug, auto)
2262 --quiet # Silence non-primary command output
2263 --no-pager # Disable the pager
2264 --config-toml: string # Additional configuration options (can be repeated)
2265 --help(-h) # Print help (see more with '--help')
2266 ]
2268 # Stop tracking specified paths in the working copy
2269 export extern "jj untrack" [
2270 ...paths: string # Paths to untrack. They must already be ignored
2271 --repository(-R): string # Path to repository to operate on
2272 --ignore-working-copy # Don't snapshot the working copy, and don't update it
2273 --ignore-immutable # Allow rewriting immutable commits
2274 --at-operation: string # Operation to load the repo at
2275 --at-op: string # Operation to load the repo at
2276 --debug # Enable debug logging
2277 --color: string # When to colorize output (always, never, debug, auto)
2278 --quiet # Silence non-primary command output
2279 --no-pager # Disable the pager
2280 --config-toml: string # Additional configuration options (can be repeated)
2281 --help(-h) # Print help (see more with '--help')
2282 ]
2284 # Display version information
2285 export extern "jj version" [
2286 --repository(-R): string # Path to repository to operate on
2287 --ignore-working-copy # Don't snapshot the working copy, and don't update it
2288 --ignore-immutable # Allow rewriting immutable commits
2289 --at-operation: string # Operation to load the repo at
2290 --at-op: string # Operation to load the repo at
2291 --debug # Enable debug logging
2292 --color: string # When to colorize output (always, never, debug, auto)
2293 --quiet # Silence non-primary command output
2294 --no-pager # Disable the pager
2295 --config-toml: string # Additional configuration options (can be repeated)
2296 --help(-h) # Print help (see more with '--help')
2297 ]
2299 # Commands for working with workspaces
2300 export extern "jj workspace" [
2301 --repository(-R): string # Path to repository to operate on
2302 --ignore-working-copy # Don't snapshot the working copy, and don't update it
2303 --ignore-immutable # Allow rewriting immutable commits
2304 --at-operation: string # Operation to load the repo at
2305 --at-op: string # Operation to load the repo at
2306 --debug # Enable debug logging
2307 --color: string # When to colorize output (always, never, debug, auto)
2308 --quiet # Silence non-primary command output
2309 --no-pager # Disable the pager
2310 --config-toml: string # Additional configuration options (can be repeated)
2311 --help(-h) # Print help (see more with '--help')
2312 ]
2314 def "nu-complete jj workspace add sparse_patterns" [] {
2315 [ "copy" "full" "empty" ]
2316 }
2318 # Add a workspace
2319 export extern "jj workspace add" [
2320 destination: string # Where to create the new workspace
2321 --name: string # A name for the workspace
2322 --revision(-r): string # A list of parent revisions for the working-copy commit of the newly created workspace. You may specify nothing, or any number of parents
2323 --sparse-patterns: string@"nu-complete jj workspace add sparse_patterns" # How to handle sparse patterns when creating a new workspace
2324 --repository(-R): string # Path to repository to operate on
2325 --ignore-working-copy # Don't snapshot the working copy, and don't update it
2326 --ignore-immutable # Allow rewriting immutable commits
2327 --at-operation: string # Operation to load the repo at
2328 --at-op: string # Operation to load the repo at
2329 --debug # Enable debug logging
2330 --color: string # When to colorize output (always, never, debug, auto)
2331 --quiet # Silence non-primary command output
2332 --no-pager # Disable the pager
2333 --config-toml: string # Additional configuration options (can be repeated)
2334 --help(-h) # Print help (see more with '--help')
2335 ]
2337 # Stop tracking a workspace's working-copy commit in the repo
2338 export extern "jj workspace forget" [
2339 ...workspaces: string # Names of the workspaces to forget. By default, forgets only the current workspace
2340 --repository(-R): string # Path to repository to operate on
2341 --ignore-working-copy # Don't snapshot the working copy, and don't update it
2342 --ignore-immutable # Allow rewriting immutable commits
2343 --at-operation: string # Operation to load the repo at
2344 --at-op: string # Operation to load the repo at
2345 --debug # Enable debug logging
2346 --color: string # When to colorize output (always, never, debug, auto)
2347 --quiet # Silence non-primary command output
2348 --no-pager # Disable the pager
2349 --config-toml: string # Additional configuration options (can be repeated)
2350 --help(-h) # Print help (see more with '--help')
2351 ]
2353 # List workspaces
2354 export extern "jj workspace list" [
2355 --repository(-R): string # Path to repository to operate on
2356 --ignore-working-copy # Don't snapshot the working copy, and don't update it
2357 --ignore-immutable # Allow rewriting immutable commits
2358 --at-operation: string # Operation to load the repo at
2359 --at-op: string # Operation to load the repo at
2360 --debug # Enable debug logging
2361 --color: string # When to colorize output (always, never, debug, auto)
2362 --quiet # Silence non-primary command output
2363 --no-pager # Disable the pager
2364 --config-toml: string # Additional configuration options (can be repeated)
2365 --help(-h) # Print help (see more with '--help')
2366 ]
2368 # Renames the current workspace
2369 export extern "jj workspace rename" [
2370 new_workspace_name: string # The name of the workspace to update to
2371 --repository(-R): string # Path to repository to operate on
2372 --ignore-working-copy # Don't snapshot the working copy, and don't update it
2373 --ignore-immutable # Allow rewriting immutable commits
2374 --at-operation: string # Operation to load the repo at
2375 --at-op: string # Operation to load the repo at
2376 --debug # Enable debug logging
2377 --color: string # When to colorize output (always, never, debug, auto)
2378 --quiet # Silence non-primary command output
2379 --no-pager # Disable the pager
2380 --config-toml: string # Additional configuration options (can be repeated)
2381 --help(-h) # Print help (see more with '--help')
2382 ]
2384 # Show the current workspace root directory
2385 export extern "jj workspace root" [
2386 --repository(-R): string # Path to repository to operate on
2387 --ignore-working-copy # Don't snapshot the working copy, and don't update it
2388 --ignore-immutable # Allow rewriting immutable commits
2389 --at-operation: string # Operation to load the repo at
2390 --at-op: string # Operation to load the repo at
2391 --debug # Enable debug logging
2392 --color: string # When to colorize output (always, never, debug, auto)
2393 --quiet # Silence non-primary command output
2394 --no-pager # Disable the pager
2395 --config-toml: string # Additional configuration options (can be repeated)
2396 --help(-h) # Print help (see more with '--help')
2397 ]
2399 # Update a workspace that has become stale
2400 export extern "jj workspace update-stale" [
2401 --repository(-R): string # Path to repository to operate on
2402 --ignore-working-copy # Don't snapshot the working copy, and don't update it
2403 --ignore-immutable # Allow rewriting immutable commits
2404 --at-operation: string # Operation to load the repo at
2405 --at-op: string # Operation to load the repo at
2406 --debug # Enable debug logging
2407 --color: string # When to colorize output (always, never, debug, auto)
2408 --quiet # Silence non-primary command output
2409 --no-pager # Disable the pager
2410 --config-toml: string # Additional configuration options (can be repeated)
2411 --help(-h) # Print help (see more with '--help')
2412 ]
2416export use completions *

nushell/completions/pueue-completions.nu

Modified

+0 / −339 text lines

1module completions {
2
3 def "nu-complete pueue color" [] {
4 [ "auto" "never" "always" ]
5 }
6
7 # Interact with the Pueue daemon
8 export extern pueue [
9 --verbose(-v) # Verbose mode (-v, -vv, -vvv)
10 --color: string@"nu-complete pueue color" # Colorize the output; auto enables color output when connected to a tty
11 --config(-c): string # If provided, Pueue only uses this config file. This path can also be set via the "PUEUE_CONFIG_PATH" environment variable. The commandline option overwrites the environment variable!
12 --profile(-p): string # The name of the profile that should be loaded from your config file
13 --help(-h) # Print help
14 --version(-V) # Print version
15 ]
17 # Enqueue a task for execution. There're many different options when scheduling a task. Check the individual option help texts for more information. Furthermore, please remember that scheduled commands are executed via your system shell. This means that the command needs proper shell escaping. The safest way to preserve shell escaping is to surround your command with quotes, for example: pueue add 'ls $HOME && echo "Some string"'
18 export extern "pueue add" [
19 ...command: string # The command to be added
20 --working-directory(-w): string # Specify current working directory
21 --escape(-e) # Escape any special shell characters (" ", "&", "!", etc.). Beware: This implicitly disables nearly all shell specific syntax ("&&", "&>")
22 --immediate(-i) # Immediately start the task
23 --stashed(-s) # Create the task in Stashed state. Useful to avoid immediate execution if the queue is empty
24 --delay(-d): string # Prevents the task from being enqueued until 'delay' elapses. See "enqueue" for accepted formats
25 --group(-g): string # Assign the task to a group. Groups kind of act as separate queues. I.e. all groups run in parallel and you can specify the amount of parallel tasks for each group. If no group is specified, the default group will be used
26 --after(-a): string # Start the task once all specified tasks have successfully finished. As soon as one of the dependencies fails, this task will fail as well
27 --priority(-o): string # Start this task with a higher priority. The higher the number, the faster it will be processed
28 --label(-l): string # Add some information for yourself. This string will be shown in the "status" table. There's no additional logic connected to it
29 --print-task-id(-p) # Only return the task id instead of a text. This is useful when working with dependencies
30 --help(-h) # Print help
31 ]
33 # Remove tasks from the list. Running or paused tasks need to be killed first
34 export extern "pueue remove" [
35 ...task_ids: string # The task ids to be removed
36 --help(-h) # Print help
37 ]
39 # Switches the queue position of two commands. Only works on queued and stashed commands
40 export extern "pueue switch" [
41 task_id_1: string # The first task id
42 task_id_2: string # The second task id
43 --help(-h) # Print help
44 ]
46 # Stashed tasks won't be automatically started. You have to enqueue them or start them by hand
47 export extern "pueue stash" [
48 ...task_ids: string # Stash these specific tasks
49 --help(-h) # Print help
50 ]
52 # Enqueue stashed tasks. They'll be handled normally afterwards
53 export extern "pueue enqueue" [
54 ...task_ids: string # Enqueue these specific tasks
55 --delay(-d): string # Delay enqueuing these tasks until 'delay' elapses. See DELAY FORMAT below
56 --help(-h) # Print help
57 ]
59 # Resume operation of specific tasks or groups of tasks. By default, this resumes the default group and all its tasks. Can also be used force-start specific tasks.
60 export extern "pueue start" [
61 ...task_ids: string # Start these specific tasks. Paused tasks will resumed. Queued or Stashed tasks will be force-started
62 --group(-g): string # Resume a specific group and all paused tasks in it. The group will be set to running and its paused tasks will be resumed
63 --all(-a) # Resume all groups! All groups will be set to running and paused tasks will be resumed
64 --children(-c) # Deprecated: this switch no longer has any effect
65 --help(-h) # Print help
66 ]
68 # Restart failed or successful task(s). By default, identical tasks will be created and enqueued, but it's possible to restart in-place. You can also edit a few properties, such as the path and the command, before restarting.
69 export extern "pueue restart" [
70 ...task_ids: string # Restart these specific tasks
71 --all-failed(-a) # Restart all failed tasks across all groups. Nice to use in combination with `-i/--in-place`
72 --failed-in-group(-g): string # Like `--all-failed`, but only restart tasks failed tasks of a specific group. The group will be set to running and its paused tasks will be resumed
73 --start-immediately(-k) # Immediately start the tasks, no matter how many open slots there are. This will ignore any dependencies tasks may have
74 --stashed(-s) # Set the restarted task to a "Stashed" state. Useful to avoid immediate execution
75 --in-place(-i) # Restart the task by reusing the already existing tasks. This will overwrite any previous logs of the restarted tasks
76 --not-in-place # Restart the task by creating a new identical tasks. Only applies, if you have the restart_in_place configuration set to true
77 --edit(-e) # Edit the tasks' commands before restarting
78 --edit-path(-p) # Edit the tasks' paths before restarting
79 --edit-label(-l) # Edit the tasks' labels before restarting
80 --edit-priority(-o) # Edit the tasks' priorities before restarting
81 --help(-h) # Print help
82 ]
84 # Either pause running tasks or specific groups of tasks. By default, pauses the default group and all its tasks. A paused queue (group) won't start any new tasks.
85 export extern "pueue pause" [
86 ...task_ids: string # Pause these specific tasks. Does not affect the default group, groups or any other tasks
87 --group(-g): string # Pause a specific group
88 --all(-a) # Pause all groups!
89 --wait(-w) # Only pause the specified group and let already running tasks finish by themselves
90 --children(-c) # Deprecated: this switch no longer has any effect
91 --help(-h) # Print help
92 ]
94 # Kill specific running tasks or whole task groups.. Kills all tasks of the default group when no ids or a specific group are provided.
95 export extern "pueue kill" [
96 ...task_ids: string # Kill these specific tasks
97 --group(-g): string # Kill all running tasks in a group. This also pauses the group
98 --all(-a) # Kill all running tasks across ALL groups. This also pauses all groups
99 --children(-c) # Deprecated: this switch no longer has any effect
100 --signal(-s): string # Send a UNIX signal instead of simply killing the process. DISCLAIMER: This bypasses Pueue's process handling logic! You might enter weird invalid states, use at your own descretion
101 --help(-h) # Print help
102 ]
104 # Send something to a task. Useful for sending confirmations such as 'y\n'
105 export extern "pueue send" [
106 task_id: string # The id of the task
107 input: string # The input that should be sent to the process
108 --help(-h) # Print help
109 ]
111 # Edit the command, path, label, or priority of a stashed or queued task. By default only the command is edited. Multiple properties can be added in one go.
112 export extern "pueue edit" [
113 task_id: string # The task's id
114 --command(-c) # Edit the task's command
115 --path(-p) # Edit the task's path
116 --label(-l) # Edit the task's label
117 --priority(-o) # Edit the task's priority
118 --help(-h) # Print help
119 ]
121 # Use this to add or remove groups. By default, this will simply display all known groups.
122 export extern "pueue group" [
123 --json(-j) # Print the list of groups as json
124 --help(-h) # Print help
125 ]
127 # Add a group by name
128 export extern "pueue group add" [
129 name: string
130 --parallel(-p): string # Set the amount of parallel tasks this group can have. Setting this to 0 means an unlimited amount of parallel tasks
131 --help(-h) # Print help
132 ]
134 # Remove a group by name. This will move all tasks in this group to the default group!
135 export extern "pueue group remove" [
136 name: string
137 --help(-h) # Print help
138 ]
140 # Print this message or the help of the given subcommand(s)
141 export extern "pueue group help" [
142 ]
144 # Add a group by name
145 export extern "pueue group help add" [
146 ]
148 # Remove a group by name. This will move all tasks in this group to the default group!
149 export extern "pueue group help remove" [
150 ]
152 # Print this message or the help of the given subcommand(s)
153 export extern "pueue group help help" [
154 ]
156 # Display the current status of all tasks
157 export extern "pueue status" [
158 ...query: string # Users can specify a custom query to filter for specific values, order by a column or limit the amount of tasks listed. Use `--help` for the full syntax definition
159 --json(-j) # Print the current state as json to stdout. This does not include the output of tasks. Use `log -j` if you want everything
160 --group(-g): string # Only show tasks of a specific group
161 --help(-h) # Print help (see more with '--help')
162 ]
164 # Accept a list or map of JSON pueue tasks via stdin and display it just like "pueue status". A simple example might look like this: pueue status --json | jq -c '.tasks' | pueue format-status
165 export extern "pueue format-status" [
166 --group(-g): string # Only show tasks of a specific group
167 --help(-h) # Print help
168 ]
170 # Display the log output of finished tasks. Only the last few lines will be shown by default. If you want to follow the output of a task, please use the "follow" subcommand.
171 export extern "pueue log" [
172 ...task_ids: string # View the task output of these specific tasks
173 --json(-j) # Print the resulting tasks and output as json. By default only the last lines will be returned unless --full is provided. Take care, as the json cannot be streamed! If your logs are really huge, using --full can use all of your machine's RAM
174 --lines(-l): string # Only print the last X lines of each task's output. This is done by default if you're looking at multiple tasks
175 --full(-f) # Show the whole output
176 --help(-h) # Print help
177 ]
179 # Follow the output of a currently running task. This command works like "tail -f"
180 export extern "pueue follow" [
181 task_id?: string # The id of the task you want to watch. If no or multiple tasks are running, you have to specify the id. If only a single task is running, you can omit the id
182 --lines(-l): string # Only print the last X lines of the output before following
183 --help(-h) # Print help
184 ]
186 # Wait until tasks are finished. By default, this will wait for all tasks in the default group to finish. Note: This will also wait for all tasks that aren't somehow 'Done'. Includes: [Paused, Stashed, Locked, Queued, ...]
187 export extern "pueue wait" [
188 ...task_ids: string # This allows you to wait for specific tasks to finish
189 --group(-g): string # Wait for all tasks in a specific group
190 --all(-a) # Wait for all tasks across all groups and the default group
191 --quiet(-q) # Don't show any log output while waiting
192 --status(-s): string # Wait for tasks to reach a specific task status
193 --help(-h) # Print help
194 ]
196 # Remove all finished tasks from the list
197 export extern "pueue clean" [
198 --successful-only(-s) # Only clean tasks that finished successfully
199 --group(-g): string # Only clean tasks of a specific group
200 --help(-h) # Print help
201 ]
203 # Kill all tasks, clean up afterwards and reset EVERYTHING!
204 export extern "pueue reset" [
205 --children(-c) # Deprecated: this switch no longer has any effect
206 --force(-f) # Don't ask for any confirmation
207 --help(-h) # Print help
208 ]
210 # Remotely shut down the daemon. Should only be used if the daemon isn't started by a service manager
211 export extern "pueue shutdown" [
212 --help(-h) # Print help
213 ]
215 # Set the amount of allowed parallel tasks By default, adjusts the amount of the default group. No tasks will be stopped, if this is lowered. This limit is only considered when tasks are scheduled.
216 export extern "pueue parallel" [
217 parallel_tasks?: string # The amount of allowed parallel tasks. Setting this to 0 means an unlimited amount of parallel tasks
218 --group(-g): string # Set the amount for a specific group
219 --help(-h) # Print help
220 ]
222 def "nu-complete pueue completions shell" [] {
223 [ "bash" "elvish" "fish" "power-shell" "zsh" "nushell" ]
224 }
226 # Generates shell completion files. This can be ignored during normal operations
227 export extern "pueue completions" [
228 shell: string@"nu-complete pueue completions shell" # The target shell
229 output_directory?: string # The output directory to which the file should be written
230 --help(-h) # Print help
231 ]
233 # Print this message or the help of the given subcommand(s)
234 export extern "pueue help" [
235 ]
237 # Enqueue a task for execution. There're many different options when scheduling a task. Check the individual option help texts for more information. Furthermore, please remember that scheduled commands are executed via your system shell. This means that the command needs proper shell escaping. The safest way to preserve shell escaping is to surround your command with quotes, for example: pueue add 'ls $HOME && echo "Some string"'
238 export extern "pueue help add" [
239 ]
241 # Remove tasks from the list. Running or paused tasks need to be killed first
242 export extern "pueue help remove" [
243 ]
245 # Switches the queue position of two commands. Only works on queued and stashed commands
246 export extern "pueue help switch" [
247 ]
249 # Stashed tasks won't be automatically started. You have to enqueue them or start them by hand
250 export extern "pueue help stash" [
251 ]
253 # Enqueue stashed tasks. They'll be handled normally afterwards
254 export extern "pueue help enqueue" [
255 ]
257 # Resume operation of specific tasks or groups of tasks. By default, this resumes the default group and all its tasks. Can also be used force-start specific tasks.
258 export extern "pueue help start" [
259 ]
261 # Restart failed or successful task(s). By default, identical tasks will be created and enqueued, but it's possible to restart in-place. You can also edit a few properties, such as the path and the command, before restarting.
262 export extern "pueue help restart" [
263 ]
265 # Either pause running tasks or specific groups of tasks. By default, pauses the default group and all its tasks. A paused queue (group) won't start any new tasks.
266 export extern "pueue help pause" [
267 ]
269 # Kill specific running tasks or whole task groups.. Kills all tasks of the default group when no ids or a specific group are provided.
270 export extern "pueue help kill" [
271 ]
273 # Send something to a task. Useful for sending confirmations such as 'y\n'
274 export extern "pueue help send" [
275 ]
277 # Edit the command, path, label, or priority of a stashed or queued task. By default only the command is edited. Multiple properties can be added in one go.
278 export extern "pueue help edit" [
279 ]
281 # Use this to add or remove groups. By default, this will simply display all known groups.
282 export extern "pueue help group" [
283 ]
285 # Add a group by name
286 export extern "pueue help group add" [
287 ]
289 # Remove a group by name. This will move all tasks in this group to the default group!
290 export extern "pueue help group remove" [
291 ]
293 # Display the current status of all tasks
294 export extern "pueue help status" [
295 ]
297 # Accept a list or map of JSON pueue tasks via stdin and display it just like "pueue status". A simple example might look like this: pueue status --json | jq -c '.tasks' | pueue format-status
298 export extern "pueue help format-status" [
299 ]
301 # Display the log output of finished tasks. Only the last few lines will be shown by default. If you want to follow the output of a task, please use the "follow" subcommand.
302 export extern "pueue help log" [
303 ]
305 # Follow the output of a currently running task. This command works like "tail -f"
306 export extern "pueue help follow" [
307 ]
309 # Wait until tasks are finished. By default, this will wait for all tasks in the default group to finish. Note: This will also wait for all tasks that aren't somehow 'Done'. Includes: [Paused, Stashed, Locked, Queued, ...]
310 export extern "pueue help wait" [
311 ]
313 # Remove all finished tasks from the list
314 export extern "pueue help clean" [
315 ]
317 # Kill all tasks, clean up afterwards and reset EVERYTHING!
318 export extern "pueue help reset" [
319 ]
321 # Remotely shut down the daemon. Should only be used if the daemon isn't started by a service manager
322 export extern "pueue help shutdown" [
323 ]
325 # Set the amount of allowed parallel tasks By default, adjusts the amount of the default group. No tasks will be stopped, if this is lowered. This limit is only considered when tasks are scheduled.
326 export extern "pueue help parallel" [
327 ]
329 # Generates shell completion files. This can be ignored during normal operations
330 export extern "pueue help completions" [
331 ]
333 # Print this message or the help of the given subcommand(s)
334 export extern "pueue help help" [
335 ]
337}
339export use completions *

nushell/completions/svn-completions.nu

Deleted
deleted file mode 100644

+0 / −114 text lines

1def "complete svn subcommands" [] {
2 ^svn help
3 | lines
4 | skip until { str starts-with "Available subcommands:" }
5 | skip 1
6 | each { str trim }
7 | take until { is-empty }
8 | split column " "
9 | get column1
10}
12def "complete svn add paths" [] {
13 ^svn status --depth infinity
14 | lines
15 | parse "{mode} {file}"
16 | str trim
17 | where mode == '?'
18 | get file
19}
21def "complete svn revert paths" [] {
22 ^svn status --depth infinity
23 | lines
24 | parse "{mode} {file}"
25 | where mode == 'M'
26 | str trim
27 | get file
28}
30def "complete svn depth" [] { ['empty', 'files', 'immediates', 'infinity'] }
32def "complete svn changelists" [] {
33 ^svn status --depth infinity
34 | lines
35 | parse "--- Changelist '{changelist}':"
36 | get --ignore-errors changelist
37}
39# FIXME: This is commented out in order to leave unexterne'd commands be.
40#
41# Subversion is a tool for version control.
42# For additional information, see http://subversion.apache.org/
43#export extern svn [
44 #subcommand?: string@"complete svn subcommands" # for help on a specific subcommand.
45 #--version # to see the program version and RA modules
46 #--quiet # to see just the version number
47 #--verbose # to see dependency versions as well
48#]
50# help (?, h): Describe the usage of this program or its subcommands.
51# usage: help [SUBCOMMAND...]
52export extern "svn help" [
53 subcommand?: string@"complete svn subcommands" # for help on a specific subcommand.
54 --verbose(-v) # also show experimental subcommands and options
55]
57# Print the status of working copy files and directories.
58export extern "svn status" [
59 ...paths: path # PATHs
60 --show-updates(-u) # display update information
61 --verbose(-v) # print extra information
62 --depth: string@"complete svn depth" # limit operation by depth ARG ('empty', 'files', 'immediates', or 'infinity')
63 --revision(-r): string # ARG (some commands also take ARG1:ARG2 range)
64 --quiet(-q) # don't print unversioned items
65 --no-ignore # disregard default and svn:ignore and svn:global-ignores property ignores
66 --incremental # give output suitable for concatenation
67 --xml # output in XML
68 --ignore-externals # ignore externals definitions
69 --changelist:string@"complete svn changelists" # operate only on members of changelist ARG
70]
72# FIXME: https://github.com/nushell/nushell/issues/5012
73# rest parameters do not play well with completions yet
74# the `paths` parameter should be `...paths`
76# Put new files and directories under version control.
77export extern "svn add" [
78 paths: path@"complete svn add paths" # unversioned PATHs for addition
79 --targets: path # pass contents of file ARG as additional args
80 --non-recursive(-N) # obsolete; same as --depth=empty
81 --depth: string@"complete svn depth" # limit operation by depth ARG ('empty', 'files', 'immediates', or 'infinity')
82 --quiet(-q) # print nothing, or only summary information
83 --force # ignore already versioned paths
84 --no-ignore # disregard default and svn:ignore and svn:global-ignores property ignores
85 --auto-props # enable automatic properties
86 --no-auto-props # disable automatic properties
87 --parents # add intermediate parents
88]
90# Restore pristine working copy state (undo local changes).
91export extern "svn revert" [
92 paths: path@"complete svn revert paths"
93 --targets: path # pass contents of file as additional args
94 --recursive(-R) # descend recursively, same as --depth=infinity
95 --depth: string@"complete svn depth" # limit operation by depth ARG ('empty', 'files', 'immediates', or 'infinity')
96 --quiet(-q) # print nothing, or only summary information
97 --changelist: string@"complete svn changelists" # operate only on members of changelist ARG
98 --remove-added # reverting an added item will remove it from disk
99]
101# FIXME
102# SVN uses aliases for subcommands. E.g. `co` for `checkout`.
103# How to express that with nu extern commands?
105# Check out a working copy from a repository.
106export extern "svn checkout" [
107 ...url_with_rev:string # source
108 path: path # destination
109 --revision(-r) # ARG (some commands also take ARG1:ARG2 range)
110 --quiet(-q) # print nothing, or only summary information
111 --depth: string@"complete svn depth" # limit operation by depth ARG ('empty', 'files', 'immediates', or 'infinity')
112 --force # force operation to run
113 --ignore-externals # ignore externals definitions
114]

nushell/config.nu

Modified

+64 / −53 text lines

1def expand-home [] {
2 let p = $in
3 if ( $p =~ '~') {
4 return ($p | path expand)
5 }
6 return $p
7}
8
9def direnv [] {
10 [
11 {
12 condition: {|before, after| ($before != $after) and ($after | path join '.env' | path exists) }
13 code: r#'
14 open .env
15 | lines
16 | parse --regex '\s*(?P<key>.+?)\s*=\s*?(?P<value>.+)?\s*'
17 | reduce --fold {} { | entry, acc|
18 $acc | upsert $entry.key ( $entry.value | str trim | expand-home )
19 }
20 | load-env'#
21 }
22 ]
23}
25$env.config = {
26 show_banner: false
27 table: {
28 mode: none
29 }
30 rm: {
31 always_trash: true
32 }
33 completions: {
34 use_ls_colors: true
35 }
37 # some experimental options
38 buffer_editor: ["nvim" "--clean"]
39 highlight_resolved_externals : true
40 use_kitty_protocol : true
41 render_right_prompt_on_last_line: true
43 history: {
44 file_format: "sqlite"
45 isolation: true
46 }
47 hooks: {
48 env_change: {
49 PWD: (direnv)
50 }
51 }
52}
1def expand-home [] {
2 let p = $in
3 if ( $p =~ '~') {
4 return ($p | path expand)
5 }
6 return $p
7}
8
9def direnv [] {
10 [
11 {
12 condition: {|before, after| ($before != $after) and ($after | path join '.env' | path exists) }
13 code: r#'
14 open .env
15 | lines
16 | parse --regex '\s*(?P<key>.+?)\s*=\s*?(?P<value>.+)?\s*'
17 | reduce --fold {} { | entry, acc|
18 $acc | upsert $entry.key ( $entry.value | str trim | expand-home )
19 }
20 | load-env'#
21 }
22 ]
23}
24
25$env.config = {
26 #color_config: $base16_theme # <-- this is the theme
27 use_ansi_coloring: true
28 edit_mode: vi
29 show_banner: false
30 table: {
31 mode: none
32 }
33 rm: {
34 always_trash: true
35 }
36 completions: {
37 use_ls_colors: true
38 }
39 cursor_shape: {
40 vi_insert: line
41 vi_normal: block
42 }
43
44 float_precision: 3
45 shell_integration: {
46 osc9_9: true
47 # unfortunatelly, this seems to be buggy on win32 with wezterm
48 osc133: false
49 }
50 # some experimental options
51 buffer_editor: ["nvim" "--clean"]
52 highlight_resolved_externals : true
53 use_kitty_protocol : true
54
55 history: {
56 file_format: "sqlite"
57 isolation: true
58 }
59 hooks: {
60 env_change: {
61 PWD: (direnv)
62 }
63 }
64}

nushell/env.nu

Modified

+123 / −123 text lines

1# GLOBAL VARIABLES
2
3$env.WIN32 = ( $nu.os-info.name =~ "windows" )
4
5$env.WORKSPACE = if $env.WIN32 { "~/Workspaces" } else { "~/Workspace" | path expand }
6$env.DOTFILES = ( $env.WORKSPACE | path join 'dotfiles' )
7$env.NOTES = ("~/Notes" | path expand)
8$env.TOOLS = ("~/Tools" | path expand)
9$env.CARGO_HOME = ( "~/.cargo" | path expand )
10$env.GO_HOME = ( "~/.go" | path expand )
11$env.BARTIB_FILE = ( $env.NOTES | path join 'timetrack.txt')
13if $env.WIN32 {
14 $env.Path = (
15 $env.Path
16 | split row (char esep)
17 | append ($env.CARGO_HOME | path join bin)
18 | append ($env.GO_HOME | path join bin)
19 | append ($env.HOME | path join .local bin)
20 | uniq # filter so the paths are unique
21)
22} else {
23 $env.PATH = (
24 $env.PATH
25 | split row (char esep)
26 | append ($env.CARGO_HOME | path join bin)
27 | append ($env.GO_HOME | path join bin)
28 | append ($env.HOME | path join .local bin)
29 | uniq # filter so the paths are unique
30)
31}
33if not (which nvim | is-empty) {
34 $env.EDITOR = 'nvim'
35 $env.GIT_EDITOR = 'nvim'
36}
38if not (which neovide | is-empty) {
39 $env.VISUAL = 'neovide'
40}
42if ($env | get -i TERM_PROGRAM) == WezTerm {
43 $env.TERM = "xterm-256color"
44}
46if ( not $env.WIN32 ) {
47 let tools_bin = ( $env.TOOLS | path join bin )
48 $env.PATH = (
49 $env.PATH |
50 split row (char esep) |
51 prepend $tools_bin
52 )
53}
55# theme for ls and other programs, that use LS_COLORS
56$env.LS_COLORS = (try { vivid generate alabaster_dark | into string } catch {""})
58# Specifies how environment variables are:
59# - converted from a string to a value on Nushell startup (from_string)
60# - converted from a value back to a string when running external commands (to_string)
61# Note: The conversions happen *after* config.nu is loaded
62$env.ENV_CONVERSIONS = {
63 "PATH": {
64 from_string: { |s| $s | split row (char esep) }
65 to_string: { |v| $v | str join (char esep) }
66 }
67 "Path": {
68 from_string: { |s| $s | split row (char esep) }
69 to_string: { |v| $v | str join (char esep) }
70 }
71}
73$env.NU_LIB_DIRS = [
74 ($nu.default-config-dir | path join 'scripts')
75 ($nu.default-config-dir | path join 'completions')
76]
78# generate aliases here and now, so that we can apply conditions.
79# later, in config.nu, the evaluated aliases will be sourced
80source ($nu.default-config-dir | path join 'gen-aliases.nu')
82# generate zoxide hooks for sourcing later on
83let zoxide_config_path = $nu.default-config-dir | path join 'zoxide.nu'
84if not (which zoxide | is-empty) {
85 zoxide init nushell | save --force $zoxide_config_path
86} else {
87 '' | save -f $zoxide_config_path
88}
90let jj_completions_path = $nu.default-config-dir | path join 'completions' | path join 'jj-completions.nu'
91if not (which jj | is-empty) {
92 jj util completion nushell | save --force $jj_completions_path
93} else {
94 '' | save -f $jj_completions_path
95}
97let pueue_completions_path = $nu.default-config-dir | path join 'completions' | path join 'pueue-completions.nu'
98if not (which pueue | is-empty) {
99 pueue completions nushell | save --force $pueue_completions_path
100} else {
101 '' | save -f $pueue_completions_path
102}
104# TODO: figure out sensible bridges
105$env.CARAPACE_BRIDGES = 'zsh,fish,bash,inshellisense'
106let carapace_config_path = $nu.default-config-dir | path join 'carapace.nu'
107if not (which carapace | is-empty) {
108 carapace _carapace nushell | save --force $carapace_config_path
109} else {
110 '' | save --force $carapace_config_path
111}
113def --env wslg [] {
114 load-env {
115 DISPLAY:':0'
116 WAYLAND_DISPLAY:'wayland-0'
117 PULSE_SERVER:'/mnt/wslg/PulseServer'
118 XDG_RUNTIME_DIR:'/mnt/wslg/runtime-dir'
119 }
120}
122if ( $env | get -i WSLENV | is-not-empty ) { wslg }
1# GLOBAL VARIABLES
2
3$env.WIN32 = ( $nu.os-info.name =~ "windows" )
4
5$env.WORKSPACE = if $env.WIN32 { "~/Workspaces" } else { "~/Workspace" | path expand }
6$env.DOTFILES = ( $env.WORKSPACE | path join 'dotfiles' )
7$env.NOTES = ("~/Notes" | path expand)
8$env.TOOLS = ("~/Tools" | path expand)
9$env.CARGO_HOME = ( "~/.cargo" | path expand )
10$env.GO_HOME = ( "~/.go" | path expand )
11$env.BARTIB_FILE = ( $env.NOTES | path join 'timetrack.txt')
12
13if $env.WIN32 {
14 $env.Path = (
15 $env.Path
16 | split row (char esep)
17 | append ($env.CARGO_HOME | path join bin)
18 | append ($env.GO_HOME | path join bin)
19 | append ($env.TOOLS | path join bin)
20 | uniq # filter so the paths are unique
21)
22} else {
23 $env.PATH = (
24 $env.PATH
25 | split row (char esep)
26 | append ($env.CARGO_HOME | path join bin)
27 | append ($env.GO_HOME | path join bin)
28 | append ($env.TOOLS | path join bin)
29 | uniq # filter so the paths are unique
30)
31}
32
33if not (which nvim | is-empty) {
34 $env.EDITOR = 'nvim'
35 $env.GIT_EDITOR = 'nvim'
36}
37
38if not (which neovide | is-empty) {
39 $env.VISUAL = 'neovide'
40}
41
42if ($env | get -i TERM_PROGRAM) == WezTerm {
43 $env.TERM = "xterm-256color"
44}
45
46if ( not $env.WIN32 ) {
47 let tools_bin = ( $env.TOOLS | path join bin )
48 $env.PATH = (
49 $env.PATH |
50 split row (char esep) |
51 prepend $tools_bin
52 )
53}
54
55# theme for ls and other programs, that use LS_COLORS
56$env.LS_COLORS = (try { vivid generate alabaster_dark | into string } catch {""})
57
58# Specifies how environment variables are:
59# - converted from a string to a value on Nushell startup (from_string)
60# - converted from a value back to a string when running external commands (to_string)
61# Note: The conversions happen *after* config.nu is loaded
62$env.ENV_CONVERSIONS = {
63 "PATH": {
64 from_string: { |s| $s | split row (char esep) }
65 to_string: { |v| $v | str join (char esep) }
66 }
67 "Path": {
68 from_string: { |s| $s | split row (char esep) }
69 to_string: { |v| $v | str join (char esep) }
70 }
71}
72
73$env.NU_LIB_DIRS = [
74 ($nu.default-config-dir | path join 'scripts')
75 ($nu.default-config-dir | path join 'completions')
76]
77
78# generate aliases here and now, so that we can apply conditions.
79# later, in config.nu, the evaluated aliases will be sourced
80source ($nu.default-config-dir | path join 'gen-aliases.nu')
81
82# generate zoxide hooks for sourcing later on
83let zoxide_config_path = $nu.default-config-dir | path join 'zoxide.nu'
84if not (which zoxide | is-empty) {
85 zoxide init nushell | save --force $zoxide_config_path
86} else {
87 '' | save -f $zoxide_config_path
88}
89
90let jj_completions_path = $nu.default-config-dir | path join 'completions' | path join 'jj-completions.nu'
91if not (which jj | is-empty) {
92 jj util completion nushell | save --force $jj_completions_path
93} else {
94 '' | save -f $jj_completions_path
95}
96
97let pueue_completions_path = $nu.default-config-dir | path join 'completions' | path join 'pueue-completions.nu'
98if not (which pueue | is-empty) {
99 pueue completions nushell | save --force $pueue_completions_path
100} else {
101 '' | save -f $pueue_completions_path
102}
103
104# TODO: figure out sensible bridges
105$env.CARAPACE_BRIDGES = 'zsh,fish,bash,inshellisense'
106let carapace_config_path = $nu.default-config-dir | path join 'carapace.nu'
107if not (which carapace | is-empty) {
108 carapace _carapace nushell | save --force $carapace_config_path
109} else {
110 '' | save --force $carapace_config_path
111}
112
113def --env wslg [] {
114 load-env {
115 DISPLAY:':0'
116 WAYLAND_DISPLAY:'wayland-0'
117 PULSE_SERVER:'/mnt/wslg/PulseServer'
118 XDG_RUNTIME_DIR:'/mnt/wslg/runtime-dir'
119 }
120}
121
122if ( $env | get -i WSLENV | is-not-empty ) { wslg }
123

nushell/gen-aliases.nu

Modified

+1 / −1 text lines

2929# pro aliases
3030aka ll ls '--long'
3131aka la ls '--long' '--all'
32aka ll lsd '--long' '--group-directories-first' '--classify' '--git'
32aka ll lsd '--long' '--group-directories-first' '--classify' '--git'
3333aka la lsd '--long' '--almost-all' '--group-directories-first' '--classify' '--git'
3434aka q exit
3535aka g git

nushell/login.nu

Modified

+0 / −2 text lines

3131todo commands
3232print (char nl)
3333todo

wezterm/bugabinga/hosts/NB-00718.lua

Modified

+10 / −9 text lines

11local code_font = require 'bugabinga.code_font'
33return function ( cfg )
4 cfg.font = code_font.random();
5
6 cfg.default_domain = 'WSL:Fedora'
7 cfg.default_mux_server_domain = 'WSL:Fedora'
8 cfg.default_prog = { 'powershell', '-NoLogo', }
9
104 cfg.font_size = 13
115 cfg.font = code_font.random();
13 cfg.window_decorations = 'TITLE | RESIZE'
7 cfg.window_decorations = 'TITLE|RESIZE'
15 -- cfg.window_background_opacity = 0
16 -- cfg.win32_system_backdrop = 'Tabbed'
9 cfg.window_background_opacity = 0
10 cfg.win32_system_backdrop = 'Tabbed'
12 cfg.unix_domains = {
13 {
14 name = 'win32',
15 },
16 }
17 cfg.default_domain = 'win32'
1718end

wezterm/bugabinga/hosts/fedora.lua

Modified

+13 / −6 text lines

1local code_font = require 'bugabinga.code_font'
2
3return function ( cfg )
4 cfg.font = code_font.random();
5 cfg.window_decorations = 'NONE'
6end
1local code_font = require 'bugabinga.code_font'
2
3return function ( cfg )
4 cfg.font = code_font.random();
5 cfg.window_decorations = 'NONE'
6 cfg.unix_domains = {
7 {
8 name = 'unix',
9 no_serve_automatically = true, -- managed via systemd
10 },
11 }
12 cfg.default_domain = 'unix'
13end

wezterm/bugabinga/hosts/x230.lua

Modified

+13 / −6 text lines

1local code_font = require 'bugabinga.code_font'
2
3return function ( cfg )
4 cfg.window_decorations = 'NONE'
5 cfg.font = code_font.random();
6end
1local code_font = require 'bugabinga.code_font'
2
3return function ( cfg )
4 cfg.window_decorations = 'NONE'
5 cfg.font = code_font.random();
6 cfg.unix_domains = {
7 {
8 name = 'unix',
9 no_serve_automatically = true, -- managed via systemd
10 },
11 }
12 cfg.default_domain = 'unix'
13end

wezterm/bugabinga/key_binds.lua

Modified

+18 / −0 text lines

143143 mods = 'LEADER',
144144 action = wez.action.SpawnTab 'CurrentPaneDomain',
145145 },
146 {
147 key = 'PageUp',
148 action = wez.action.ScrollByLine(-1),
149 },
150 {
151 key = 'PageDown',
152 action = wez.action.ScrollByLine(1),
153 },
154 {
155 key = 'PageUp',
156 mods = 'SHIFT',
157 action = wez.action.ScrollByPage(-0.42),
158 },
159 {
160 key = 'PageDown',
161 mods = 'SHIFT',
162 action = wez.action.ScrollByPage(0.42),
163 },
146164 {
147165 key = 'p',
148166 mods = 'LEADER',

wezterm/bugabinga/options.lua

Modified

+0 / −7 text lines

1717 cfg.max_fps = 144
1818 cfg.unzoom_on_switch_pane = true
1919 cfg.scrollback_lines = 16777216
20 cfg.unix_domains = {
21 {
22 name = 'unix',
23 no_serve_automatically = true, -- managed via systemd
24 },
25 }
26 cfg.default_domain = 'unix'
2720end