repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

neovim: added some sntax support for VFP files

550b35623e7c6656e22b6f51421b1dcfd61e6a7e

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

unsigned

Browse filesCompare with HEAD

Changed files (12)

+1175 / −303 text lines · 1 binary (striped old/new sizes in 64-byte units, not churn) · lines and sizes scale separately

Diff layout

neovim/after/ftplugin/vfp.lua

Added
new file mode 100644

+128 / −0 text lines

1-- File: C:\Users\okr\AppData\Local\nvim\ftplugin\vfp.lua
2-- Always-on dark flair for Visual FoxPro 9.0 (.prg files), blended with current theme
3
4local api = vim.api
5
6-- Dark flair palette
7local dark_flair = {
8 neon_red = '#FF1A1A',
9 cyber_green = '#00FF66',
10 shadow_purple = '#8A2BE2',
11 toxic_yellow = '#FFFF33',
12 gunmetal_gray = '#333333',
13 faint_glow = '#666666',
14}
16-- OKLab blending
17local function rgb_to_oklab( r, g, b )
18 r, g, b = r / 255, g / 255, b / 255
19 local l = 0.412221 * r + 0.536332 * g + 0.051447 * b
20 local m = 0.211666 * r + 0.680525 * g + 0.107809 * b
21 local s = 0.088302 * r + 0.281718 * g + 0.629980 * b
22 l, m, s = l ^ (1 / 3), m ^ (1 / 3), s ^ (1 / 3)
23 local L = 0.210454 * l + 0.793617 * m - 0.004071 * s
24 local a = 1.977998 * l - 2.428592 * m + 0.450594 * s
25 local b_ = 0.025904 * l + 0.782771 * m - 0.808675 * s
26 return L, a, b_
27end
29local function oklab_to_rgb( L, a, b_ )
30 local l = L + 0.396337 * a + 0.215803 * b_
31 local m = L - 0.105561 * a - 0.063854 * b_
32 local s = L - 0.089484 * a - 1.291485 * b_
33 l, m, s = l ^ 3, m ^ 3, s ^ 3
34 local r = 4.076741 * l - 3.307711 * m + 0.230969 * s
35 local g = -1.268143 * l + 2.609757 * m - 0.341319 * s
36 local b = -0.004196 * l - 0.703228 * m + 1.707614 * s
37 r, g, b = math.max( 0, math.min( 1, r ) ) * 255, math.max( 0, math.min( 1, g ) ) * 255,
38 math.max( 0, math.min( 1, b ) ) * 255
39 return math.floor( r ), math.floor( g ), math.floor( b )
40end
42local function blend_colors( fg_hex, bg_hex, factor )
43 local fr, fg, fb = fg_hex:match '#(%x%x)(%x%x)(%x%x)'
44 fr, fg, fb = tonumber( fr, 16 ) or 0, tonumber( fg, 16 ) or 0, tonumber( fb, 16 ) or 0
45 local br, bg, bb = bg_hex:match '#(%x%x)(%x%x)(%x%x)'
46 br, bg, bb = tonumber( br, 16 ) or 0, tonumber( bg, 16 ) or 0, tonumber( bb, 16 ) or 0
47 local fL, fa, fb_ = rgb_to_oklab( fr, fg, fb )
48 local bL, ba, bb_ = rgb_to_oklab( br, bg, bb )
49 local L = bL + factor * (fL - bL)
50 local a = ba + factor * (fa - ba)
51 local b = bb_ + factor * (fb_ - bb_)
52 local r, g, b = oklab_to_rgb( L, a, b ) ---@diagnostic disable-line: redefined-local
53 return string.format( '#%02x%02x%02x', r, g, b )
54end
56-- Fetch theme colors with nvim_get_hl
57local function get_theme_colors()
58 local comment = api.nvim_get_hl( 0, { name = 'Comment' } ) or {}
59 local statement = api.nvim_get_hl( 0, { name = 'Statement' } ) or {}
60 local identifier = api.nvim_get_hl( 0, { name = 'Identifier' } ) or {}
61 local str = api.nvim_get_hl( 0, { name = 'String' } ) or {}
62 local constant = api.nvim_get_hl( 0, { name = 'Constant' } ) or {}
63 local operator = api.nvim_get_hl( 0, { name = 'Operator' } ) or {}
64 local err = api.nvim_get_hl( 0, { name = 'Error' } ) or {}
66 return {
67 comment = comment.fg and string.format( '#%06x', comment.fg ) or '#808080',
68 statement = statement.fg and string.format( '#%06x', statement.fg ) or '#FFFF00',
69 identifier = identifier.fg and string.format( '#%06x', identifier.fg ) or '#00FFFF',
70 str = str.fg and string.format( '#%06x', str.fg ) or '#FF00FF',
71 constant = constant.fg and string.format( '#%06x', constant.fg ) or '#00FF00',
72 operator = operator.fg and string.format( '#%06x', operator.fg ) or '#FF0000',
73 error = err.fg and string.format( '#%06x', err.fg ) or '#FF0000',
74 }
75end
77-- Apply dark flair
78local function apply_dark_flair( buf )
79 local theme = get_theme_colors()
80 local blend_factor = 0.7
82 -- Create a buffer-local namespace
83 local ns_id = api.nvim_create_namespace( 'vfp_dark_flair_' .. buf )
85 -- Blend colors
86 local blended = {
87 special = blend_colors( dark_flair.neon_red, theme.operator, blend_factor ),
88 preproc = blend_colors( dark_flair.shadow_purple, theme.str, blend_factor ),
89 cmd = blend_colors( dark_flair.toxic_yellow, theme.statement, blend_factor ),
90 func = blend_colors( dark_flair.toxic_yellow, theme.identifier, blend_factor ),
91 sysvar = blend_colors( dark_flair.shadow_purple, theme.str, blend_factor ),
92 str = blend_colors( dark_flair.shadow_purple, theme.str, blend_factor ),
93 const = blend_colors( dark_flair.cyber_green, theme.constant, blend_factor ),
94 number = blend_colors( dark_flair.cyber_green, theme.constant, blend_factor ),
95 operator = blend_colors( dark_flair.neon_red, theme.operator, blend_factor ),
96 comment = blend_colors( dark_flair.faint_glow, theme.comment, blend_factor ),
97 error = blend_colors( dark_flair.neon_red, theme.error, blend_factor ),
98 xmlfunc = blend_colors( dark_flair.cyber_green, theme.identifier, blend_factor ),
99 oop = blend_colors( dark_flair.cyber_green, theme.identifier, blend_factor ),
100 line = blend_colors( dark_flair.faint_glow, theme.comment, 0.4 ),
101 }
103 api.nvim_set_hl( ns_id, 'vfpSpecial', { fg = blended.special, bold = true } )
104 api.nvim_set_hl( ns_id, 'vfpPreProc', { fg = blended.preproc, italic = true } )
105 api.nvim_set_hl( ns_id, 'vfpCmd', { fg = blended.cmd, bold = true } )
106 api.nvim_set_hl( ns_id, 'vfpFunc', { fg = blended.func } )
107 api.nvim_set_hl( ns_id, 'vfpSysVar', { fg = blended.sysvar } )
108 api.nvim_set_hl( ns_id, 'vfpString', { fg = blended.str, italic = true } )
109 api.nvim_set_hl( ns_id, 'vfpConst', { fg = blended.const } )
110 api.nvim_set_hl( ns_id, 'vfpNumber', { fg = blended.number } )
111 api.nvim_set_hl( ns_id, 'vfpFloat', { fg = blended.number } )
112 api.nvim_set_hl( ns_id, 'vfpOperator', { fg = blended.operator, bold = true } )
113 api.nvim_set_hl( ns_id, 'vfpComment', { fg = blended.comment, italic = true } )
114 api.nvim_set_hl( ns_id, 'vfpError', { fg = blended.error, bg = blended.bg, underline = true } )
115 api.nvim_set_hl( ns_id, 'vfpXmlFunc', { fg = blended.xmlfunc, bold = true } )
116 api.nvim_set_hl( ns_id, 'vfpOop', { fg = blended.oop, italic = true } )
117 api.nvim_set_hl( ns_id, 'Normal', { bg = blended.bg } )
118 api.nvim_set_hl( ns_id, 'LineNr', { fg = blended.line } )
119end
121-- Autocommand to apply flair only to VFP buffers
122api.nvim_create_autocmd( 'BufEnter', {
123 pattern = '*.prg',
124 callback = function ()
125 local buf = api.nvim_get_current_buf()
126 apply_dark_flair( buf )
127 end,
128} )

neovim/after/syntax/vfp.lua

Added
new file mode 100644

+276 / −0 text lines

1-- File: ~/.config/nvim/after/syntax/vfp.lua
2-- Syntax highlighting for Visual FoxPro 9.0
3
4-- Bail if syntax is already set
5if vim.b.current_syntax then return end
6
7local api = vim.api
8local fn = vim.fn
9
10-- Case-insensitive matching
11vim.opt.ignorecase = true
13-- Define VFP9 Commands (unchanged from earlier)
14local commands = {
15 'accept', 'activate', 'add', 'additive', 'after', 'again', 'aindent', 'alias', 'all', 'alt', 'alter', 'alternate',
16 'ansi', 'any', 'aplabout', 'app', 'append', 'array', 'as', 'asc', 'ascending', 'ascii', 'assert', 'asserts',
17 'assist', 'attributes', 'aused', 'automatic', 'autosave', 'average', 'avg', 'before', 'begin', 'bell', 'bitmap',
18 'blank', 'blink', 'blocksize', 'border', 'bottom', 'box', 'browse', 'brstatus', 'bucket', 'buffers', 'build', 'by',
19 'calculate', 'calcvalue', 'call', 'cancel', 'carry', 'cascade', 'catalog', 'cd', 'center', 'century', 'cga',
20 'change', 'character', 'chdir', 'check', 'classlib', 'clear', 'click', 'clock', 'close', 'cnt', 'codepage',
21 'collate', 'color', 'column', 'com1', 'com2', 'command', 'compact', 'compatible', 'compile', 'compress',
22 'confirm', 'connection', 'connections', 'connstring', 'console', 'container', 'continue', 'control', 'copies',
23 'copy', 'count', 'cpcompile', 'cpdialog', 'create', 'currency', 'cursor', 'cursorgetprop', 'cursorsetprop',
24 'cycle', 'database', 'databases', 'datasession', 'datasource', 'db4', 'dblclick', 'dbmemo3', 'dbtrap', 'dde',
25 'deactivate', 'debug', 'decimals', 'declare', 'default', 'defaultsource', 'define', 'delete', 'deletetables',
26 'delimited', 'delimiters', 'desc', 'design', 'development', 'device', 'dif', 'dimension', 'dir', 'directory',
27 'disabled', 'display', 'distinct', 'dll', 'dlls', 'do', 'dohistory', 'dos', 'dosmem', 'double', 'down', 'drag',
28 'draw', 'driver', 'duplex', 'echo', 'edit', 'editwork', 'ega25', 'ega43', 'eject', 'ems64', 'ems', 'enabled',
29 'encrypt', 'encryption', 'end', 'environment', 'erase', 'escape', 'events', 'exact', 'except', 'exclusive', 'exe',
30 'exists', 'exit', 'export', 'expression', 'extended', 'external', 'f11f12', 'fdow', 'fetch', 'fields', 'file',
31 'filer', 'fill', 'find', 'fixed', 'float', 'flush', 'foldconst', 'font', 'footer', 'for', 'force', 'foreign',
32 'form', 'format', 'formset', 'found', 'fox2x', 'foxplus', 'free', 'freeze', 'from', 'full', 'function', 'fw2',
33 'fweek', 'gather', 'general', 'get', 'getexpr', 'getnextmodified', 'getobject', 'gets', 'global', 'go', 'goto',
34 'group', 'grow', 'halfheight', 'having', 'heading', 'headings', 'height', 'help', 'helpfilter', 'hidden', 'hide',
35 'highlight', 'history', 'hmemory', 'hours', 'iblock', 'icon', 'id', 'import', 'in', 'index', 'indexes',
36 'information', 'inner', 'input', 'insert', 'instruct', 'integer', 'intensity', 'intersect', 'into', 'is',
37 'isometric', 'join', 'keyboard', 'keycolumns', 'keycomp', 'keyset', 'label', 'last', 'ldcheck', 'ledit', 'left',
38 'level', 'library', 'line', 'linked', 'list', 'load', 'local', 'locate', 'logerrors', 'long', 'loop',
39 'lparameters', 'lpartition', 'mac', 'macdesktop', 'machelp', 'mackey', 'macro', 'macros', 'margin', 'mark',
40 'master', 'maxmem', 'mblock', 'md', 'mdi', 'memlimit', 'memo', 'memos', 'memowidth', 'memvar', 'menu', 'menus',
41 'message', 'messages', 'middle', 'minimize', 'minus', 'mkdir', 'modal', 'modify', 'module', 'mono43', 'mono',
42 'mouse', 'move', 'movers', 'multilocks', 'multiselect', 'mvarsiz', 'mvcount', 'name', 'near', 'negotiate',
43 'next', 'noalias', 'noappend', 'noclear', 'noclose', 'noconsole', 'nocptrans', 'nodata', 'nodebug', 'nodelete',
44 'nodefault', 'nodup', 'noedit', 'noeject', 'noenvironment', 'nofloat', 'nofollow', 'nogrow', 'noinit', 'nolgrid',
45 'nolink', 'nolock', 'nolog', 'nomargin', 'nomdi', 'nomenu', 'nominimize', 'nomodify', 'nomouse', 'none',
46 'nooptimize', 'noorganize', 'nooverwrite', 'noprompt', 'noprojecthook', 'noread', 'norefresh', 'norequery',
47 'norgrid', 'normal', 'nosave', 'noshadow', 'noshow', 'nospace', 'notify', 'noupdate', 'novalidate', 'noverify',
48 'nowait', 'nowindow', 'nowrap', 'nozoom', 'npv', 'null', 'number', 'nvl', 'object', 'objects', 'odometer', 'of',
49 'off', 'ole', 'oleobject', 'oleobjects', 'olepublic', 'on', 'only', 'open', 'optimize', 'order', 'orientation',
50 'outer', 'output', 'outshow', 'overlay', 'overwrite', 'pack', 'page', 'palette', 'panel', 'paperlength',
51 'papersize', 'paperwidth', 'parameters', 'partition', 'password', 'path', 'pattern', 'pause', 'pdox', 'pdsetup',
52 'pen', 'percent', 'pfs', 'picture', 'pixels', 'plain', 'play', 'point', 'pop', 'popup', 'popups', 'precision',
53 'preference', 'preview', 'primary', 'printer', 'printquality', 'private', 'procedure', 'procedures', 'production',
54 'progwork', 'project', 'protected', 'public', 'push', 'query', 'quit', 'random', 'range', 'rd', 'read',
55 'readborder', 'readerror', 'recall', 'record', 'recover', 'recsize', 'redit', 'reference', 'references',
56 'refresh', 'regional', 'reindex', 'relation', 'relative', 'release', 'remote', 'remove', 'rename', 'replace',
57 'report', 'reprocess', 'required', 'resource', 'rest', 'restore', 'restrict', 'resume', 'retry', 'return',
58 'right', 'rmdir', 'rollback', 'rowset', 'rpd', 'run', 'runscript', 'runtime', 'safety', 'same', 'sample', 'save',
59 'say', 'scale', 'scatter', 'scheme', 'screen', 'screens', 'scroll', 'sdf', 'seek', 'select', 'selection',
60 'separator', 'set', 'setfldstate', 'shadows', 'shared', 'sheet', 'shell', 'shift', 'show', 'shutdown', 'single',
61 'size', 'skip', 'some', 'sort', 'sortwork', 'spinner', 'sql', 'standalone', 'status', 'std', 'step', 'sticky',
62 'store', 'stretch', 'string', 'structure', 'style', 'subclass', 'sum', 'summary', 'suspend', 'sylk', 'sysformats',
63 'sysmenu', 'sysmenus', 'system', 'tab', 'tag', 'table', 'tables', 'tabs', 'talk', 'tedit', 'textmerge', 'this',
64 'this_access', 'thisform', 'thisformset', 'timeout', 'titles', 'tmpfiles', 'to', 'top', 'topic', 'total',
65 'transaction', 'trap', 'trbetween', 'trigger', 'ttoption', 'type', 'typeahead', 'udfparms', 'union', 'unlock',
66 'up', 'update', 'use', 'userid', 'users', 'validate', 'values', 'var', 'verb', 'vga25', 'vga50', 'view', 'views',
67 'volume', 'wait', 'when', 'where', 'width', 'window', 'windows', 'with', 'wk1', 'wk3', 'wks', 'workarea', 'wp',
68 'wr1', 'wrap', 'wrk', 'xcmdfile', 'xl5', 'xls', 'zap',
69}
71-- Define VFP9 Functions (unchanged)
72local functions = {
73 'abs', 'aclass', 'acopy', 'acos', 'adatabases', 'adbobjects', 'addbs', 'adel', 'adir', 'aelement', 'aerror',
74 'afields', 'afont', 'agetclass', 'agetfileversion', 'ains', 'ainstance', 'alen', 'alias', 'alines', 'alltrim',
75 'amembers', 'amouseobj', 'anetresources', 'ansitooem', 'aprinters', 'asc', 'ascan', 'aselobj', 'asin', 'asort',
76 'asubscript', 'at', 'at_c', 'atan', 'atc', 'atcc', 'atcline', 'atline', 'atn2', 'aused', 'avcxclasses', 'avg',
77 'bar', 'barcount', 'barprompt', 'between', 'bintoc', 'bitand', 'bitclear', 'bitlshift', 'bitnot', 'bitor',
78 'bitrshift', 'bitset', 'bittest', 'bitxor', 'bof', 'candidate', 'capslock', 'cdow', 'cdx', 'ceiling', 'chr',
79 'chrsaw', 'chrtran', 'chrtranc', 'cmonth', 'cntbar', 'cntpad', 'col', 'comarray', 'comclassinfo', 'compobj',
80 'comreturnerror', 'count', 'cos', 'cpconvert', 'cpcurrent', 'cpdbf', 'createbinary', 'createobject',
81 'createobjectex', 'createoffline', 'ctobin', 'ctod', 'ctot', 'curdir', 'cursorgetprop', 'cursorsetprop',
82 'curval', 'date', 'datetime', 'day', 'dbc', 'dbf', 'dbgetprop', 'dbsetprop', 'dbused', 'ddeaborttrans',
83 'ddeadvise', 'ddeenabled', 'ddeexecute', 'ddeinitiate', 'ddelasterror', 'ddepoke', 'dderequest', 'ddesetoption',
84 'ddesetservice', 'ddesettopic', 'ddeterminate', 'defaulttext', 'deleted', 'descending', 'difference', 'directory',
85 'diskspace', 'dmy', 'dodefault', 'dow', 'drivetype', 'dropoffline', 'dtoc', 'dtor', 'dtos', 'dtot', 'empty',
86 'eof', 'error', 'evaluate', 'exp', 'fchsize', 'fclose', 'fcount', 'fcreate', 'fdate', 'feof', 'ferror', 'fflush',
87 'fgets', 'field', 'file', 'filetostr', 'filter', 'fklabel', 'fkmax', 'fldlist', 'flock', 'floor', 'fontmetric',
88 'fopen', 'for', 'forceext', 'forcepath', 'found', 'fputs', 'fread', 'fseek', 'fsize', 'ftime', 'fullpath', 'fv',
89 'fwrite', 'getbar', 'getcolor', 'getcp', 'getdir', 'getenv', 'getfile', 'getfldstate', 'getfont', 'gethost',
90 'getnextmodified', 'getobject', 'getpad', 'getpem', 'getpict', 'getprinter', 'gomonth', 'header', 'home', 'hour',
91 'idxcollate', 'iif', 'imestatus', 'indbc', 'indexseek', 'inkey', 'inlist', 'insmode', 'int', 'isalpha', 'isblank',
92 'iscolor', 'isdigit', 'isexclusive', 'isflocked', 'ishosted', 'isleadbyte', 'islower', 'ismouse', 'isnull',
93 'isreadonly', 'isrlocked', 'isupper', 'justdrive', 'justext', 'justfname', 'justpath', 'juststem', 'key',
94 'keymatch', 'lastkey', 'left', 'leftc', 'len', 'lenc', 'like', 'likec', 'lineno', 'loadpicture', 'locfile',
95 'lock', 'log', 'log10', 'lookup', 'lower', 'ltrim', 'lupdate', 'max', 'mcol', 'mdown', 'mdx', 'mdy', 'memlines',
96 'memory', 'menu', 'message', 'messagebox', 'min', 'minute', 'mline', 'mod', 'month', 'mrkbar', 'mrkpad', 'mrow',
97 'mton', 'mwindow', 'ndx', 'newobject', 'normalize', 'ntom', 'numlock', 'nvl', 'objnum', 'objtoclient', 'objvar',
98 'occurs', 'oemtoansi', 'oldval', 'on', 'order', 'os', 'pad', 'padc', 'padl', 'padr', 'parameters', 'payment',
99 'pcol', 'pcount', 'pemstatus', 'pi', 'popup', 'primary', 'printstatus', 'prmbar', 'prmpad', 'program', 'prompt',
100 'proper', 'prow', 'prtinfo', 'putfile', 'pv', 'rand', 'rat', 'ratc', 'ratline', 'rdlevel', 'readkey', 'reccount',
101 'recno', 'recsize', 'refresh', 'relation', 'replicate', 'requery', 'rgb', 'rgbscheme', 'right', 'rightc',
102 'rlock', 'round', 'row', 'rtod', 'rtrim', 'savepicture', 'scheme', 'scols', 'sec', 'seconds', 'seek', 'select',
103 'set', 'setfldstate', 'sign', 'sin', 'skpbar', 'skppad', 'soundex', 'space', 'sqlcancel', 'sqlcolumns',
104 'sqlcommit', 'sqlconnect', 'sqldisconnect', 'sqlexec', 'sqlgetprop', 'sqlmoreresults', 'sqlrollback',
105 'sqlsetprop', 'sqlstringconnect', 'sqltables', 'sqrt', 'srows', 'str', 'strconv', 'strtofile', 'strtran',
106 'stuff', 'stuffc', 'substr', 'substrc', 'sum', 'sys', 'sysmetric', 'tablerevert', 'tableupdate', 'tag',
107 'tagcount', 'tagno', 'tan', 'target', 'time', 'transform', 'trim', 'ttoc', 'ttod', 'txnlevel', 'txtwidth',
108 'type', 'unique', 'updated', 'upper', 'used', 'val', 'varread', 'vartype', 'version', 'wborder', 'wchild',
109 'wcols', 'week', 'wexist', 'wfont', 'wlast', 'wlcol', 'wlrow', 'wmaximum', 'wminimum', 'wontop', 'woutput',
110 'wparent', 'wread', 'wrows', 'wtitle', 'wvisible', 'year',
111}
113-- Define VFP9 System Variables (unchanged)
114local sysvars = {
115 '_alignment', '_asciicols', '_asciirows', '_assist', '_beautify', '_box', '_browser', '_builder', '_calcmem',
116 '_calcvalue', '_cliptext', '_converter', '_coverage', '_curobj', '_datetimeformat', '_dblclick', '_diarydate',
117 '_dos', '_fontclass', '_foxbaseclass', '_foxdoc', '_foxdragdrop', '_foxdroptarget', '_foxgraph', '_gallery',
118 '_gengraph', '_genhtml', '_genmenu', '_genpd', '_genscrn', '_genxtab', '_getexpr', '_helpwebdevonly',
119 '_helpwebdirectory', '_helpwebfiller1', '_helpwebfiller2', '_helpwebmsdnonline', '_helpwebmsfthomepage',
120 '_helpwebsearch', '_helpwebtutorial', '_helpwebvfpfaq', '_helpwebvfpfreestuff', '_helpwebvfphomepage',
121 '_helpwebvfponlinesupport', '_helpwebvfpsendfeedback', '_helpwebvsprodnews', '_include', '_indent', '_lmargin',
122 '_mac', '_mbr_appnd', '_mbr_cpart', '_mbr_delet', '_mbr_font', '_mbr_goto', '_mbr_grid', '_mbr_link', '_mbr_mode',
123 '_mbr_mvfld', '_mbr_mvprt', '_mbr_seek', '_mbr_sp100', '_mbr_sp200', '_mbr_szfld', '_mbrowse', '_mda_appnd',
124 '_mda_avg', '_mda_brow', '_mda_calc', '_mda_copy', '_mda_count', '_mda_label', '_mda_pack', '_mda_reprt',
125 '_mda_rindx', '_mda_setup', '_mda_sort', '_mda_sp100', '_mda_sp200', '_mda_sp300', '_mda_sum', '_mda_total',
126 '_mdata', '_mdiary', '_med_beaut', '_med_bldex', '_med_clear', '_med_copy', '_med_cut', '_med_cvtst',
127 '_med_exblk', '_med_find', '_med_finda', '_med_goto', '_med_insob', '_med_link', '_med_obj', '_med_paste',
128 '_med_pref', '_med_pstlk', '_med_redo', '_med_repl', '_med_repla', '_med_slcta', '_med_sp100', '_med_sp200',
129 '_med_sp300', '_med_sp400', '_med_sp500', '_med_sp600', '_med_undo', '_medit', '_mfi_clall', '_mfi_close',
130 '_mfi_export', '_mfi_import', '_mfi_new', '_mfi_open', '_mfi_pgset', '_mfi_prevu', '_mfi_print',
131 '_mfi_printonecopy', '_mfi_quit', '_mfi_revrt', '_mfi_savas', '_mfi_save', '_mfi_saveashtml', '_mfi_send',
132 '_mfi_setup', '_mfi_sp100', '_mfi_sp200', '_mfi_sp300', '_mfi_sp400', '_mfi_sysprint', '_mfile', '_mfiler',
133 '_mfirst', '_mlabel', '_mlast', '_mline', '_mmacro', '_mmb_delet', '_mmb_gener', '_mmb_gopts', '_mmb_insbr',
134 '_mmb_insrt', '_mmb_mopts', '_mmb_prevu', '_mmb_quick', '_mmb_sp100', '_mmb_sp200', '_mmb_sp300', '_mmbldr',
135 '_mouseevents', '_mouseeventsnodbl', '_mpr_beaut', '_mpr_cancl', '_mpr_compl', '_mpr_do', '_mpr_docum',
136 '_mpr_formwz', '_mpr_gener', '_mpr_graph', '_mpr_resum', '_mpr_sp100', '_mpr_sp200', '_mpr_sp300', '_mpr_suspend',
137 '_mprog', '_mproj', '_mrc_appnd', '_mrc_chnge', '_mrc_cont', '_mrc_delet', '_mrc_goto', '_mrc_locat',
138 '_mrc_recal', '_mrc_repl', '_mrc_seek', '_mrc_sp100', '_mrc_sp200', '_mrecord', '_mreport', '_mrqbe', '_mscreen',
139 '_msm_data', '_msm_edit', '_msm_file', '_msm_format', '_msm_prog', '_msm_recrd', '_msm_systm', '_msm_text',
140 '_msm_tools', '_msm_view', '_msm_windo', '_mst_about', '_mst_ascii', '_mst_calcu', '_mst_captr', '_mst_dbase',
141 '_mst_diary', '_mst_docum', '_mst_filer', '_mst_help', '_mst_hphow', '_mst_hpsch', '_mst_macro', '_mst_msdnc',
142 '_mst_msdni', '_mst_msdns', '_mst_office', '_mst_puzzl', '_mst_samp', '_mst_sp100', '_mst_sp200', '_mst_sp300',
143 '_mst_specl', '_mst_techs', '_msysmenu', '_msystem', '_mtable', '_mtb_appnd', '_mtb_cpart', '_mtb_delet',
144 '_mtb_delrc', '_mtb_goto', '_mtb_link', '_mtb_mvfld', '_mtb_mvprt', '_mtb_props', '_mtb_recal', '_mtb_sp100',
145 '_mtb_sp200', '_mtb_sp300', '_mtb_sp400', '_mtb_szfld', '_mti_callstack', '_mti_dbgout', '_mti_locals',
146 '_mti_runactivedoc', '_mti_trace', '_mti_watch', '_mtl_browser', '_mtl_coverage', '_mtl_debugger', '_mtl_gallery',
147 '_mtl_macro', '_mtl_optns', '_mtl_sp100', '_mtl_sp200', '_mtl_sp300', '_mtl_sp400', '_mtl_spell', '_mtl_wzrds',
148 '_mtools', '_mvi_toolb', '_mview', '_mwi_arran', '_mwi_clear', '_mwi_cmd', '_mwi_color', '_mwi_debug',
149 '_mwi_hide', '_mwi_hidea', '_mwi_min', '_mwi_move', '_mwi_rotat', '_mwi_showa', '_mwi_size', '_mwi_sp100',
150 '_mwi_sp200', '_mwi_toolb', '_mwi_trace', '_mwi_view', '_mwi_zoom', '_mwindow', '_mwizards', '_mwz_all',
151 '_mwz_applic', '_mwz_application', '_mwz_database', '_mwz_form', '_mwz_foxdoc', '_mwz_import', '_mwz_label',
152 '_mwz_mail', '_mwz_pivot', '_mwz_query', '_mwz_reprt', '_mwz_setup', '_mwz_table', '_mwz_upsizing',
153 '_mwz_webpublishing', '_netware', '_olebasecontrol', '_oledragdrop', '_oracle', '_padvance', '_pageno',
154 '_pbpage', '_pcolno', '_pcopies', '_pdparms', '_pdriver', '_pdsetup', '_pecode', '_peject', '_pepage', '_pform',
155 '_plength', '_plineno', '_ploffset', '_ppitch', '_pquality', '_pretext', '_pscode', '_pspacing', '_pwait',
156 '_rectclass', '_rmargin', '_runactivedoc', '_samples', '_scctext', '_screen', '_shell', '_spellchk', '_sqlserver',
157 '_startup', '_tabs', '_tally', '_text', '_throttle', '_transport', '_triggerlevel', '_unix', '_vfp', '_viewport',
158 '_webdevonly', '_webmenu', '_webmsfthomepage', '_webvfphomepage', '_webvfponlinesupport', '_windows', '_wizard',
159 '_wrap',
160}
162-- Define Highlight Groups
163local function set_highlights()
164 api.nvim_set_hl( 0, 'vfpSpecial', { link = 'Special' } )
165 api.nvim_set_hl( 0, 'vfpPreProc', { link = 'PreProc' } )
166 api.nvim_set_hl( 0, 'vfpCmd', { link = 'Statement' } )
167 api.nvim_set_hl( 0, 'vfpFunc', { link = 'Identifier' } )
168 api.nvim_set_hl( 0, 'vfpSysVar', { link = 'String' } )
169 api.nvim_set_hl( 0, 'vfpString', { link = 'String' } )
170 api.nvim_set_hl( 0, 'vfpConst', { link = 'Constant' } )
171 api.nvim_set_hl( 0, 'vfpNumber', { link = 'Number' } )
172 api.nvim_set_hl( 0, 'vfpFloat', { link = 'Float' } )
173 api.nvim_set_hl( 0, 'vfpOperator', { link = 'Operator' } )
174 api.nvim_set_hl( 0, 'vfpComment', { link = 'Comment' } )
175 api.nvim_set_hl( 0, 'vfpError', { link = 'Error' } )
176 api.nvim_set_hl( 0, 'vfpXmlFunc', { link = 'Function' } )
177 api.nvim_set_hl( 0, 'vfpOop', { link = 'Type' } )
178end
180set_highlights()
182-- Define Syntax Patterns with proper matchadd
183local function define_syntax()
184 local buf = api.nvim_get_current_buf()
185 local priority = 10 -- Standard priority for syntax matches
186 local id_base = 1000 -- Unique ID base to avoid collisions
188 -- Helper to apply matchadd with consistent args
189 local function add_match( group, pattern, pri, id )
190 fn.matchadd( group, pattern )
191 end
193 -- Special Characters
194 local specials = {
195 [[^\s*!]], '&', [[;\s*$]], [[^\s*=]], [[^\s*\\]], [[^\s*\\\\]],
196 [[^\s*?]], [[^\s*??]], [[^\s*???]], [[\<m\>\.]], [[\<this\>\.]],
197 [[\<thisform\>\.]], [[\<thisformset\>\.]],
198 }
199 for i, pat in ipairs( specials ) do
200 add_match( 'vfpSpecial', pat, priority, id_base + i )
201 end
203 -- Preprocessor Directives
204 local preprocs = {
205 [[^\s*#\s*\(if\|elif\|else\|endif\)]],
206 [[^\s*#\s*\(ifdef\|ifndef\|endif\)]],
207 [[^\s*#\s*\(define\|undef\)]],
208 [[^\s*#\s*\<region\>]], [[^\s*#\s*\<include\>]],
209 [[^\s*#\s*\<itsexpression\>]], [[^\s*#\s*\<readclauses\>]],
210 [[^\s*#\s*\<section\>]], [[^\s*#\s*\<wname\>]],
211 }
212 for i, pat in ipairs( preprocs ) do
213 add_match( 'vfpPreProc', pat, priority, id_base + 100 + i )
214 end
216 -- Commands
217 local cmd_pattern = [[\<]] .. table.concat( commands, [[\>\|\<]] ) .. [[\>]]
218 add_match( 'vfpCmd', cmd_pattern, priority, id_base + 200 )
220 -- Functions (with paren)
221 local func_pattern = [[\<]] .. table.concat( functions, [[\>\|\<]] ) .. [[\>\s*(]]
222 add_match( 'vfpFunc', func_pattern, priority, id_base + 300 )
224 -- System Variables
225 local sysvar_pattern = [[\<]] .. table.concat( sysvars, [[\>\|\<]] ) .. [[\>]]
226 add_match( 'vfpSysVar', sysvar_pattern, priority, id_base + 400 )
228 -- Strings
229 -- Strings section from define_syntax()
230 add_match( 'vfpString', [["[^"]*"]], priority, id_base + 500 ) -- Double-quoted
231 add_match( 'vfpString', [['[^']*']], priority, id_base + 501 ) -- Single-quoted
232 add_match( 'vfpString', '\\[[^\\]]*\\]', priority, id_base + 502 ) -- Bracketed
234 -- Constants
235 add_match( 'vfpConst', [[\.\(t\|f\|y\|n\|null\)\.]], priority, id_base + 600 )
236 add_match( 'vfpConst', [[\<null\>]], priority, id_base + 601 )
238 -- Numbers and Floats
239 add_match( 'vfpNumber', [[\<[0-9]\+\>]], priority, id_base + 700 )
240 add_match( 'vfpFloat', [[\<[0-9]\+\.[0-9]*\(e[-+]\=[0-9]\+\)\=\>]], priority, id_base + 701 )
241 add_match( 'vfpFloat', [[\.[0-9]\+\(e[-+]\=[0-9]\+\)\=\>]], priority, id_base + 702 )
242 add_match( 'vfpFloat', [[\<[0-9]\+e[-+]\=[0-9]\+\>]], priority, id_base + 703 )
244 -- Operators
245 local operators = {
246 [[\$]], [[%]], [[&]], [[+]], [[-]], [[->]], [[!]],
247 [[\.\(and\|not\|or\)\.]], [[\<and\>]], [[\<or\>]], [[\<not\>]],
248 [[<]], [[<=]], [[<>]], [[!=]], [[#]], [[=]], [[==]], [[>]], [[>=]], [[@]], [[\*]],
249 [[\<like\>]],
250 }
251 for i, op in ipairs( operators ) do
252 add_match( 'vfpOperator', op, priority, id_base + 800 + i )
253 end
255 -- Comments
256 add_match( 'vfpComment', [[^\s*\*.*]], priority, id_base + 900 )
257 add_match( 'vfpComment', [[&&.*]], priority, id_base + 901 )
258 add_match( 'vfpComment', [[\<note\>.*]], priority, id_base + 902 )
260 -- VFP9-Specific: XML Functions
261 local xml_functions = { 'xmltocursor', 'cursortoxml', 'xmlupdategram' }
262 local xml_pattern = [[\<]] .. table.concat( xml_functions, [[\>\|\<]] ) .. [[\>\s*(]]
263 add_match( 'vfpXmlFunc', xml_pattern, priority, id_base + 1000 )
265 -- VFP9-Specific: OOP Properties
266 add_match( 'vfpOop', [[\<thisform\>\.]], priority, id_base + 1100 )
268 -- Syntax Syncing
269 vim.cmd 'syntax sync minlines=1 maxlines=3'
270end
272-- Apply it
273define_syntax()
275-- Mark as loaded
276vim.b.current_syntax = 'vfp'

neovim/init.lua

Modified

+3 / −3 text lines

99-- ▀ ▀
1111-- Setup debug mode
12vim.g.bugabinga_debug_mode = true
12vim.g.bugabinga_debug_mode = false
1313-- start `profiler.nvim` with `NVIM_PROFILE=1 nvim ...`
1414-- or `NVIM_PROFILE=start nvim ...`
1515-- then hit <F12> to save profile.
4141require 'bugabinga.bigfile'
4242require 'bugabinga.editorconfig'
4343require 'bugabinga.save_actions'
44-- i tried scheduling this, but it leads to no lsp being initially loaded, until i resource the file
45require 'bugabinga.lsp'
4446vim.schedule( function ()
4547 require 'bugabinga.in_and_out'
4648 require 'bugabinga.mkdir'
4749 require 'bugabinga.diagnostic'
48 -- FIXME why does LSP not start, when scheduled?
49 require 'bugabinga.lsp'
5050end )
5252--[[ PLUGINS ]] --

neovim/lua/bugabinga/lsp.lua

Modified

+19 / −17 text lines

6161 harper_ls = {
6262 settings = {
6363 ['harper-ls'] = {
64 userDictPath = '',
65 fileDictPath = '',
6466 linters = {
65 spell_check = true,
66 spelled_numbers = true,
67 an_a = true,
68 sentence_capitalization = false,
69 unclosed_quotes = true,
70 wrong_quotes = true,
71 long_sentences = true,
72 repeated_words = true,
73 spaces = false,
74 matcher = true,
75 correct_number_suffix = true,
76 number_suffix_capitalization = true,
77 multiple_sequential_pronouns = true,
78 linking_verbs = true,
79 avoid_curses = true,
80 terminating_conjunctions = true,
67 SpellCheck = false,
68 SpelledNumbers = false,
69 AnA = true,
70 SentenceCapitalization = false,
71 UnclosedQuotes = true,
72 WrongQuotes = false,
73 LongSentences = true,
74 RepeatedWords = true,
75 Spaces = false,
76 Matcher = true,
77 CorrectNumberSuffix = true,
8178 },
8279 codeActions = {
83 forceStable = true,
80 ForceStable = false,
8481 },
82 markdown = {
83 IgnoreLinkTitle = false,
84 },
85 diagnosticSeverity = 'hint',
86 isolateEnglish = false,
8587 },
8688 },
8789 },

neovim/lua/bugabinga/options/filetypes.lua

Modified

+1 / −0 text lines

11vim.filetype.add {
22 extension = {
33 norg = 'norg',
4 prg = 'vfp',
45 },
56 pattern = {
67 ['.*/%.vscode/.*%.json'] = 'json5', -- These json files frequently have comments

neovim/lua/bugabinga/treesitter.lua

Modified

+1 / −0 text lines

1818 pattern = '*',
1919 command = function ( data )
2020 local match = data.match
21 if match == 'text' then return end
2122 if table.contains( ignored.filetypes, match ) then
2223 vim.notify( 'Ignore ' .. match .. ' for treesitter.', vim.log.levels.TRACE )
2324 return

neovim/test/A.prg

Added
new file mode 100644

+4 / −0 text lines

1CLEAR
2? "Hello, you glorious bastard of a world!"
3
4QUIT

neovim/test/a.FXP

Added
new file mode 100644

Binary size (old → new): 0 → 254 bytes.

nushell/completions/jj-completions.nu

Modified

+733 / −279 text lines

11module completions {
3 def "nu-complete jj color" [] {
4 [ "always" "never" "debug" "auto" ]
5 }
6
37 # Jujutsu (An experimental VCS)
48 export extern jj [
59 --repository(-R): path # Path to repository to operate on
812 --at-operation: string # Operation to load the repo at
913 --at-op: string # Operation to load the repo at
1014 --debug # Enable debug logging
11 --color: string # When to colorize output (always, never, debug, auto)
15 --color: string@"nu-complete jj color" # When to colorize output
1216 --quiet # Silence non-primary command output
1317 --no-pager # Disable the pager
1418 --config: string # Additional configuration options (can be repeated)
1822 --version(-V) # Print version
1923 ]
25 def "nu-complete jj abandon color" [] {
26 [ "always" "never" "debug" "auto" ]
27 }
2129 # Abandon a revision
2230 export extern "jj abandon" [
2331 ...revisions_pos: string # The revision(s) to abandon (default: @)
2432 -r: string
25 --summary(-s) # Do not print every abandoned commit on a separate line
33 --summary(-s)
34 --retain-bookmarks # Do not delete bookmarks pointing to the revisions to abandon
2635 --restore-descendants # Do not modify the content of the children of the abandoned commits
2736 --repository(-R): path # Path to repository to operate on
2837 --ignore-working-copy # Don't snapshot the working copy, and don't update it
3039 --at-operation: string # Operation to load the repo at
3140 --at-op: string # Operation to load the repo at
3241 --debug # Enable debug logging
33 --color: string # When to colorize output (always, never, debug, auto)
42 --color: string@"nu-complete jj abandon color" # When to colorize output
3443 --quiet # Silence non-primary command output
3544 --no-pager # Disable the pager
3645 --config: string # Additional configuration options (can be repeated)
3948 --help(-h) # Print help (see more with '--help')
4049 ]
51 def "nu-complete jj absorb color" [] {
52 [ "always" "never" "debug" "auto" ]
53 }
4255 # Move changes from a revision into the stack of mutable revisions
4356 export extern "jj absorb" [
4457 --from(-f): string # Source revision to absorb from
5164 --at-operation: string # Operation to load the repo at
5265 --at-op: string # Operation to load the repo at
5366 --debug # Enable debug logging
54 --color: string # When to colorize output (always, never, debug, auto)
67 --color: string@"nu-complete jj absorb color" # When to colorize output
5568 --quiet # Silence non-primary command output
5669 --no-pager # Disable the pager
5770 --config: string # Additional configuration options (can be repeated)
6073 --help(-h) # Print help (see more with '--help')
6174 ]
63 # Apply the reverse of a revision on top of another revision
76 def "nu-complete jj backout color" [] {
77 [ "always" "never" "debug" "auto" ]
78 }
80 # Apply the reverse of given revisions on top of another revision
6481 export extern "jj backout" [
6582 --revisions(-r): string # The revision(s) to apply the reverse of
6683 --destination(-d): string # The revision to apply the reverse changes on top of
7087 --at-operation: string # Operation to load the repo at
7188 --at-op: string # Operation to load the repo at
7289 --debug # Enable debug logging
73 --color: string # When to colorize output (always, never, debug, auto)
90 --color: string@"nu-complete jj backout color" # When to colorize output
7491 --quiet # Silence non-primary command output
7592 --no-pager # Disable the pager
7693 --config: string # Additional configuration options (can be repeated)
7996 --help(-h) # Print help (see more with '--help')
8097 ]
99 def "nu-complete jj bookmark color" [] {
100 [ "always" "never" "debug" "auto" ]
101 }
82103 # Manage bookmarks [default alias: b]
83104 export extern "jj bookmark" [
84105 --repository(-R): path # Path to repository to operate on
87108 --at-operation: string # Operation to load the repo at
88109 --at-op: string # Operation to load the repo at
89110 --debug # Enable debug logging
90 --color: string # When to colorize output (always, never, debug, auto)
111 --color: string@"nu-complete jj bookmark color" # When to colorize output
91112 --quiet # Silence non-primary command output
92113 --no-pager # Disable the pager
93114 --config: string # Additional configuration options (can be repeated)
96117 --help(-h) # Print help (see more with '--help')
97118 ]
120 def "nu-complete jj bookmark create color" [] {
121 [ "always" "never" "debug" "auto" ]
122 }
99124 # Create a new bookmark
100125 export extern "jj bookmark create" [
101126 --revision(-r): string # The bookmark's target revision
107132 --at-operation: string # Operation to load the repo at
108133 --at-op: string # Operation to load the repo at
109134 --debug # Enable debug logging
110 --color: string # When to colorize output (always, never, debug, auto)
135 --color: string@"nu-complete jj bookmark create color" # When to colorize output
111136 --quiet # Silence non-primary command output
112137 --no-pager # Disable the pager
113138 --config: string # Additional configuration options (can be repeated)
116141 --help(-h) # Print help (see more with '--help')
117142 ]
144 def "nu-complete jj bookmark delete color" [] {
145 [ "always" "never" "debug" "auto" ]
146 }
119148 # Delete an existing bookmark and propagate the deletion to remotes on the next push
120149 export extern "jj bookmark delete" [
121150 ...names: string # The bookmarks to delete
125154 --at-operation: string # Operation to load the repo at
126155 --at-op: string # Operation to load the repo at
127156 --debug # Enable debug logging
128 --color: string # When to colorize output (always, never, debug, auto)
157 --color: string@"nu-complete jj bookmark delete color" # When to colorize output
129158 --quiet # Silence non-primary command output
130159 --no-pager # Disable the pager
131160 --config: string # Additional configuration options (can be repeated)
134163 --help(-h) # Print help (see more with '--help')
135164 ]
137 # Forget everything about a bookmark, including its local and remote targets
166 def "nu-complete jj bookmark forget color" [] {
167 [ "always" "never" "debug" "auto" ]
168 }
170 # Forget a bookmark without marking it as a deletion to be pushed
138171 export extern "jj bookmark forget" [
172 --include-remotes # When forgetting a local bookmark, also forget any corresponding remote bookmarks
139173 ...names: string # The bookmarks to forget
140174 --repository(-R): path # Path to repository to operate on
141175 --ignore-working-copy # Don't snapshot the working copy, and don't update it
143177 --at-operation: string # Operation to load the repo at
144178 --at-op: string # Operation to load the repo at
145179 --debug # Enable debug logging
146 --color: string # When to colorize output (always, never, debug, auto)
180 --color: string@"nu-complete jj bookmark forget color" # When to colorize output
147181 --quiet # Silence non-primary command output
148182 --no-pager # Disable the pager
149183 --config: string # Additional configuration options (can be repeated)
152186 --help(-h) # Print help (see more with '--help')
153187 ]
189 def "nu-complete jj bookmark list sort" [] {
190 [ "name" "name-" "author-name" "author-name-" "author-email" "author-email-" "author-date" "author-date-" "committer-name" "committer-name-" "committer-email" "committer-email-" "committer-date" "committer-date-" ]
191 }
193 def "nu-complete jj bookmark list color" [] {
194 [ "always" "never" "debug" "auto" ]
195 }
155197 # List bookmarks and their targets
156198 export extern "jj bookmark list" [
157199 --all-remotes(-a) # Show all tracking and non-tracking remote bookmarks including the ones whose targets are synchronized with the local bookmarks
161203 ...names: string # Show bookmarks whose local name matches
162204 --revisions(-r): string # Show bookmarks whose local targets are in the given revisions
163205 --template(-T): string # Render each bookmark using the given template
206 --sort: string@"nu-complete jj bookmark list sort" # Sort bookmarks based on the given key (or multiple keys)
164207 --repository(-R): path # Path to repository to operate on
165208 --ignore-working-copy # Don't snapshot the working copy, and don't update it
166209 --ignore-immutable # Allow rewriting immutable commits
167210 --at-operation: string # Operation to load the repo at
168211 --at-op: string # Operation to load the repo at
169212 --debug # Enable debug logging
170 --color: string # When to colorize output (always, never, debug, auto)
213 --color: string@"nu-complete jj bookmark list color" # When to colorize output
171214 --quiet # Silence non-primary command output
172215 --no-pager # Disable the pager
173216 --config: string # Additional configuration options (can be repeated)
176219 --help(-h) # Print help (see more with '--help')
177220 ]
222 def "nu-complete jj bookmark move color" [] {
223 [ "always" "never" "debug" "auto" ]
224 }
179226 # Move existing bookmarks to target revision
180227 export extern "jj bookmark move" [
181 --from: string # Move bookmarks from the given revisions
182 --to: string # Move bookmarks to this revision
228 --from(-f): string # Move bookmarks from the given revisions
229 --to(-t): string # Move bookmarks to this revision
183230 --allow-backwards(-B) # Allow moving bookmarks backwards or sideways
184231 ...names: string # Move bookmarks matching the given name patterns
185232 --repository(-R): path # Path to repository to operate on
188235 --at-operation: string # Operation to load the repo at
189236 --at-op: string # Operation to load the repo at
190237 --debug # Enable debug logging
191 --color: string # When to colorize output (always, never, debug, auto)
238 --color: string@"nu-complete jj bookmark move color" # When to colorize output
192239 --quiet # Silence non-primary command output
193240 --no-pager # Disable the pager
194241 --config: string # Additional configuration options (can be repeated)
197244 --help(-h) # Print help (see more with '--help')
198245 ]
247 def "nu-complete jj bookmark rename color" [] {
248 [ "always" "never" "debug" "auto" ]
249 }
200251 # Rename `old` bookmark name to `new` bookmark name
201252 export extern "jj bookmark rename" [
202253 old: string # The old name of the bookmark
207258 --at-operation: string # Operation to load the repo at
208259 --at-op: string # Operation to load the repo at
209260 --debug # Enable debug logging
210 --color: string # When to colorize output (always, never, debug, auto)
261 --color: string@"nu-complete jj bookmark rename color" # When to colorize output
211262 --quiet # Silence non-primary command output
212263 --no-pager # Disable the pager
213264 --config: string # Additional configuration options (can be repeated)
216267 --help(-h) # Print help (see more with '--help')
217268 ]
270 def "nu-complete jj bookmark set color" [] {
271 [ "always" "never" "debug" "auto" ]
272 }
219274 # Create or update a bookmark to point to a certain commit
220275 export extern "jj bookmark set" [
221276 --revision(-r): string # The bookmark's target revision
228283 --at-operation: string # Operation to load the repo at
229284 --at-op: string # Operation to load the repo at
230285 --debug # Enable debug logging
231 --color: string # When to colorize output (always, never, debug, auto)
286 --color: string@"nu-complete jj bookmark set color" # When to colorize output
232287 --quiet # Silence non-primary command output
233288 --no-pager # Disable the pager
234289 --config: string # Additional configuration options (can be repeated)
237292 --help(-h) # Print help (see more with '--help')
238293 ]
295 def "nu-complete jj bookmark track color" [] {
296 [ "always" "never" "debug" "auto" ]
297 }
240299 # Start tracking given remote bookmarks
241300 export extern "jj bookmark track" [
242301 ...names: string # Remote bookmarks to track
246305 --at-operation: string # Operation to load the repo at
247306 --at-op: string # Operation to load the repo at
248307 --debug # Enable debug logging
249 --color: string # When to colorize output (always, never, debug, auto)
308 --color: string@"nu-complete jj bookmark track color" # When to colorize output
250309 --quiet # Silence non-primary command output
251310 --no-pager # Disable the pager
252311 --config: string # Additional configuration options (can be repeated)
255314 --help(-h) # Print help (see more with '--help')
256315 ]
317 def "nu-complete jj bookmark untrack color" [] {
318 [ "always" "never" "debug" "auto" ]
319 }
258321 # Stop tracking given remote bookmarks
259322 export extern "jj bookmark untrack" [
260323 ...names: string # Remote bookmarks to untrack
264327 --at-operation: string # Operation to load the repo at
265328 --at-op: string # Operation to load the repo at
266329 --debug # Enable debug logging
267 --color: string # When to colorize output (always, never, debug, auto)
330 --color: string@"nu-complete jj bookmark untrack color" # When to colorize output
268331 --quiet # Silence non-primary command output
269332 --no-pager # Disable the pager
270333 --config: string # Additional configuration options (can be repeated)
273336 --help(-h) # Print help (see more with '--help')
274337 ]
339 def "nu-complete jj branch color" [] {
340 [ "always" "never" "debug" "auto" ]
341 }
276343 # Manage bookmarks [default alias: b]
277344 export extern "jj branch" [
278345 --repository(-R): path # Path to repository to operate on
281348 --at-operation: string # Operation to load the repo at
282349 --at-op: string # Operation to load the repo at
283350 --debug # Enable debug logging
284 --color: string # When to colorize output (always, never, debug, auto)
351 --color: string@"nu-complete jj branch color" # When to colorize output
285352 --quiet # Silence non-primary command output
286353 --no-pager # Disable the pager
287354 --config: string # Additional configuration options (can be repeated)
290357 --help(-h) # Print help (see more with '--help')
291358 ]
360 def "nu-complete jj branch create color" [] {
361 [ "always" "never" "debug" "auto" ]
362 }
293364 # Create a new bookmark
294365 export extern "jj branch create" [
295366 --revision(-r): string # The bookmark's target revision
301372 --at-operation: string # Operation to load the repo at
302373 --at-op: string # Operation to load the repo at
303374 --debug # Enable debug logging
304 --color: string # When to colorize output (always, never, debug, auto)
375 --color: string@"nu-complete jj branch create color" # When to colorize output
305376 --quiet # Silence non-primary command output
306377 --no-pager # Disable the pager
307378 --config: string # Additional configuration options (can be repeated)
310381 --help(-h) # Print help (see more with '--help')
311382 ]
384 def "nu-complete jj branch delete color" [] {
385 [ "always" "never" "debug" "auto" ]
386 }
313388 # Delete an existing bookmark and propagate the deletion to remotes on the next push
314389 export extern "jj branch delete" [
315390 ...names: string # The bookmarks to delete
319394 --at-operation: string # Operation to load the repo at
320395 --at-op: string # Operation to load the repo at
321396 --debug # Enable debug logging
322 --color: string # When to colorize output (always, never, debug, auto)
397 --color: string@"nu-complete jj branch delete color" # When to colorize output
323398 --quiet # Silence non-primary command output
324399 --no-pager # Disable the pager
325400 --config: string # Additional configuration options (can be repeated)
328403 --help(-h) # Print help (see more with '--help')
329404 ]
331 # Forget everything about a bookmark, including its local and remote targets
406 def "nu-complete jj branch forget color" [] {
407 [ "always" "never" "debug" "auto" ]
408 }
410 # Forget a bookmark without marking it as a deletion to be pushed
332411 export extern "jj branch forget" [
412 --include-remotes # When forgetting a local bookmark, also forget any corresponding remote bookmarks
333413 ...names: string # The bookmarks to forget
334414 --repository(-R): path # Path to repository to operate on
335415 --ignore-working-copy # Don't snapshot the working copy, and don't update it
337417 --at-operation: string # Operation to load the repo at
338418 --at-op: string # Operation to load the repo at
339419 --debug # Enable debug logging
340 --color: string # When to colorize output (always, never, debug, auto)
420 --color: string@"nu-complete jj branch forget color" # When to colorize output
341421 --quiet # Silence non-primary command output
342422 --no-pager # Disable the pager
343423 --config: string # Additional configuration options (can be repeated)
346426 --help(-h) # Print help (see more with '--help')
347427 ]
429 def "nu-complete jj branch list sort" [] {
430 [ "name" "name-" "author-name" "author-name-" "author-email" "author-email-" "author-date" "author-date-" "committer-name" "committer-name-" "committer-email" "committer-email-" "committer-date" "committer-date-" ]
431 }
433 def "nu-complete jj branch list color" [] {
434 [ "always" "never" "debug" "auto" ]
435 }
349437 # List bookmarks and their targets
350438 export extern "jj branch list" [
351439 --all-remotes(-a) # Show all tracking and non-tracking remote bookmarks including the ones whose targets are synchronized with the local bookmarks
355443 ...names: string # Show bookmarks whose local name matches
356444 --revisions(-r): string # Show bookmarks whose local targets are in the given revisions
357445 --template(-T): string # Render each bookmark using the given template
446 --sort: string@"nu-complete jj branch list sort" # Sort bookmarks based on the given key (or multiple keys)
358447 --repository(-R): path # Path to repository to operate on
359448 --ignore-working-copy # Don't snapshot the working copy, and don't update it
360449 --ignore-immutable # Allow rewriting immutable commits
361450 --at-operation: string # Operation to load the repo at
362451 --at-op: string # Operation to load the repo at
363452 --debug # Enable debug logging
364 --color: string # When to colorize output (always, never, debug, auto)
453 --color: string@"nu-complete jj branch list color" # When to colorize output
365454 --quiet # Silence non-primary command output
366455 --no-pager # Disable the pager
367456 --config: string # Additional configuration options (can be repeated)
370459 --help(-h) # Print help (see more with '--help')
371460 ]
462 def "nu-complete jj branch move color" [] {
463 [ "always" "never" "debug" "auto" ]
464 }
373466 # Move existing bookmarks to target revision
374467 export extern "jj branch move" [
375 --from: string # Move bookmarks from the given revisions
376 --to: string # Move bookmarks to this revision
468 --from(-f): string # Move bookmarks from the given revisions
469 --to(-t): string # Move bookmarks to this revision
377470 --allow-backwards(-B) # Allow moving bookmarks backwards or sideways
378471 ...names: string # Move bookmarks matching the given name patterns
379472 --repository(-R): path # Path to repository to operate on
382475 --at-operation: string # Operation to load the repo at
383476 --at-op: string # Operation to load the repo at
384477 --debug # Enable debug logging
385 --color: string # When to colorize output (always, never, debug, auto)
478 --color: string@"nu-complete jj branch move color" # When to colorize output
386479 --quiet # Silence non-primary command output
387480 --no-pager # Disable the pager
388481 --config: string # Additional configuration options (can be repeated)
391484 --help(-h) # Print help (see more with '--help')
392485 ]
487 def "nu-complete jj branch rename color" [] {
488 [ "always" "never" "debug" "auto" ]
489 }
394491 # Rename `old` bookmark name to `new` bookmark name
395492 export extern "jj branch rename" [
396493 old: string # The old name of the bookmark
401498 --at-operation: string # Operation to load the repo at
402499 --at-op: string # Operation to load the repo at
403500 --debug # Enable debug logging
404 --color: string # When to colorize output (always, never, debug, auto)
501 --color: string@"nu-complete jj branch rename color" # When to colorize output
405502 --quiet # Silence non-primary command output
406503 --no-pager # Disable the pager
407504 --config: string # Additional configuration options (can be repeated)
410507 --help(-h) # Print help (see more with '--help')
411508 ]
510 def "nu-complete jj branch set color" [] {
511 [ "always" "never" "debug" "auto" ]
512 }
413514 # Create or update a bookmark to point to a certain commit
414515 export extern "jj branch set" [
415516 --revision(-r): string # The bookmark's target revision
422523 --at-operation: string # Operation to load the repo at
423524 --at-op: string # Operation to load the repo at
424525 --debug # Enable debug logging
425 --color: string # When to colorize output (always, never, debug, auto)
526 --color: string@"nu-complete jj branch set color" # When to colorize output
426527 --quiet # Silence non-primary command output
427528 --no-pager # Disable the pager
428529 --config: string # Additional configuration options (can be repeated)
431532 --help(-h) # Print help (see more with '--help')
432533 ]
535 def "nu-complete jj branch track color" [] {
536 [ "always" "never" "debug" "auto" ]
537 }
434539 # Start tracking given remote bookmarks
435540 export extern "jj branch track" [
436541 ...names: string # Remote bookmarks to track
440545 --at-operation: string # Operation to load the repo at
441546 --at-op: string # Operation to load the repo at
442547 --debug # Enable debug logging
443 --color: string # When to colorize output (always, never, debug, auto)
548 --color: string@"nu-complete jj branch track color" # When to colorize output
444549 --quiet # Silence non-primary command output
445550 --no-pager # Disable the pager
446551 --config: string # Additional configuration options (can be repeated)
449554 --help(-h) # Print help (see more with '--help')
450555 ]
557 def "nu-complete jj branch untrack color" [] {
558 [ "always" "never" "debug" "auto" ]
559 }
452561 # Stop tracking given remote bookmarks
453562 export extern "jj branch untrack" [
454563 ...names: string # Remote bookmarks to untrack
458567 --at-operation: string # Operation to load the repo at
459568 --at-op: string # Operation to load the repo at
460569 --debug # Enable debug logging
461 --color: string # When to colorize output (always, never, debug, auto)
570 --color: string@"nu-complete jj branch untrack color" # When to colorize output
462571 --quiet # Silence non-primary command output
463572 --no-pager # Disable the pager
464573 --config: string # Additional configuration options (can be repeated)
467576 --help(-h) # Print help (see more with '--help')
468577 ]
470 # Print contents of files in a revision
471 export extern "jj cat" [
472 --revision(-r): string # The revision to get the file contents from
473 ...paths: path # Paths to print
474 --repository(-R): path # Path to repository to operate on
475 --ignore-working-copy # Don't snapshot the working copy, and don't update it
476 --ignore-immutable # Allow rewriting immutable commits
477 --at-operation: string # Operation to load the repo at
478 --at-op: string # Operation to load the repo at
479 --debug # Enable debug logging
480 --color: string # When to colorize output (always, never, debug, auto)
481 --quiet # Silence non-primary command output
482 --no-pager # Disable the pager
483 --config: string # Additional configuration options (can be repeated)
484 --config-toml: string # Additional configuration options (can be repeated) (DEPRECATED)
485 --config-file: path # Additional configuration files (can be repeated)
486 --help(-h) # Print help (see more with '--help')
487 ]
489 def "nu-complete jj chmod mode" [] {
490 [ "n" "x" ]
579 def "nu-complete jj commit color" [] {
580 [ "always" "never" "debug" "auto" ]
491581 }
493 # Sets or removes the executable bit for paths in the repo
494 export extern "jj chmod" [
495 mode: string@"nu-complete jj chmod mode"
496 --revision(-r): string # The revision to update
497 ...paths: path # Paths to change the executable bit for
498 --repository(-R): path # Path to repository to operate on
499 --ignore-working-copy # Don't snapshot the working copy, and don't update it
500 --ignore-immutable # Allow rewriting immutable commits
501 --at-operation: string # Operation to load the repo at
502 --at-op: string # Operation to load the repo at
503 --debug # Enable debug logging
504 --color: string # When to colorize output (always, never, debug, auto)
505 --quiet # Silence non-primary command output
506 --no-pager # Disable the pager
507 --config: string # Additional configuration options (can be repeated)
508 --config-toml: string # Additional configuration options (can be repeated) (DEPRECATED)
509 --config-file: path # Additional configuration files (can be repeated)
510 --help(-h) # Print help (see more with '--help')
511 ]
513583 # Update the description and create a new change on top
514584 export extern "jj commit" [
515585 --interactive(-i) # Interactively choose which changes to include in the first commit
524594 --at-operation: string # Operation to load the repo at
525595 --at-op: string # Operation to load the repo at
526596 --debug # Enable debug logging
527 --color: string # When to colorize output (always, never, debug, auto)
597 --color: string@"nu-complete jj commit color" # When to colorize output
528598 --quiet # Silence non-primary command output
529599 --no-pager # Disable the pager
530600 --config: string # Additional configuration options (can be repeated)
533603 --help(-h) # Print help (see more with '--help')
534604 ]
606 def "nu-complete jj config color" [] {
607 [ "always" "never" "debug" "auto" ]
608 }
536610 # Manage config options
537611 export extern "jj config" [
538612 --repository(-R): path # Path to repository to operate on
541615 --at-operation: string # Operation to load the repo at
542616 --at-op: string # Operation to load the repo at
543617 --debug # Enable debug logging
544 --color: string # When to colorize output (always, never, debug, auto)
618 --color: string@"nu-complete jj config color" # When to colorize output
545619 --quiet # Silence non-primary command output
546620 --no-pager # Disable the pager
547621 --config: string # Additional configuration options (can be repeated)
550624 --help(-h) # Print help (see more with '--help')
551625 ]
627 def "nu-complete jj config edit color" [] {
628 [ "always" "never" "debug" "auto" ]
629 }
553631 # Start an editor on a jj config file
554632 export extern "jj config edit" [
555633 --user # Target the user-level config
560638 --at-operation: string # Operation to load the repo at
561639 --at-op: string # Operation to load the repo at
562640 --debug # Enable debug logging
563 --color: string # When to colorize output (always, never, debug, auto)
641 --color: string@"nu-complete jj config edit color" # When to colorize output
564642 --quiet # Silence non-primary command output
565643 --no-pager # Disable the pager
566644 --config: string # Additional configuration options (can be repeated)
569647 --help(-h) # Print help (see more with '--help')
570648 ]
650 def "nu-complete jj config get color" [] {
651 [ "always" "never" "debug" "auto" ]
652 }
572654 # Get the value of a given config option.
573655 export extern "jj config get" [
574656 name: string
578660 --at-operation: string # Operation to load the repo at
579661 --at-op: string # Operation to load the repo at
580662 --debug # Enable debug logging
581 --color: string # When to colorize output (always, never, debug, auto)
663 --color: string@"nu-complete jj config get color" # When to colorize output
582664 --quiet # Silence non-primary command output
583665 --no-pager # Disable the pager
584666 --config: string # Additional configuration options (can be repeated)
587669 --help(-h) # Print help (see more with '--help')
588670 ]
590 # List variables set in config file, along with their values
672 def "nu-complete jj config list color" [] {
673 [ "always" "never" "debug" "auto" ]
674 }
676 # List variables set in config files, along with their values
591677 export extern "jj config list" [
592678 name?: string # An optional name of a specific config option to look up
593679 --include-defaults # Whether to explicitly include built-in default values in the list
601687 --at-operation: string # Operation to load the repo at
602688 --at-op: string # Operation to load the repo at
603689 --debug # Enable debug logging
604 --color: string # When to colorize output (always, never, debug, auto)
690 --color: string@"nu-complete jj config list color" # When to colorize output
605691 --quiet # Silence non-primary command output
606692 --no-pager # Disable the pager
607693 --config: string # Additional configuration options (can be repeated)
610696 --help(-h) # Print help (see more with '--help')
611697 ]
613 # Print the path to the config file
699 def "nu-complete jj config path color" [] {
700 [ "always" "never" "debug" "auto" ]
701 }
703 # Print the paths to the config files
614704 export extern "jj config path" [
615705 --user # Target the user-level config
616706 --repo # Target the repo-level config
620710 --at-operation: string # Operation to load the repo at
621711 --at-op: string # Operation to load the repo at
622712 --debug # Enable debug logging
623 --color: string # When to colorize output (always, never, debug, auto)
713 --color: string@"nu-complete jj config path color" # When to colorize output
624714 --quiet # Silence non-primary command output
625715 --no-pager # Disable the pager
626716 --config: string # Additional configuration options (can be repeated)
629719 --help(-h) # Print help (see more with '--help')
630720 ]
632 # Update config file to set the given option to a given value
722 def "nu-complete jj config set color" [] {
723 [ "always" "never" "debug" "auto" ]
724 }
726 # Update a config file to set the given option to a given value
633727 export extern "jj config set" [
634728 name: string
635729 value: string # New value to set
641735 --at-operation: string # Operation to load the repo at
642736 --at-op: string # Operation to load the repo at
643737 --debug # Enable debug logging
644 --color: string # When to colorize output (always, never, debug, auto)
738 --color: string@"nu-complete jj config set color" # When to colorize output
645739 --quiet # Silence non-primary command output
646740 --no-pager # Disable the pager
647741 --config: string # Additional configuration options (can be repeated)
650744 --help(-h) # Print help (see more with '--help')
651745 ]
653 # Update config file to unset the given option
747 def "nu-complete jj config unset color" [] {
748 [ "always" "never" "debug" "auto" ]
749 }
751 # Update a config file to unset the given option
654752 export extern "jj config unset" [
655753 name: string
656754 --user # Target the user-level config
661759 --at-operation: string # Operation to load the repo at
662760 --at-op: string # Operation to load the repo at
663761 --debug # Enable debug logging
664 --color: string # When to colorize output (always, never, debug, auto)
762 --color: string@"nu-complete jj config unset color" # When to colorize output
665763 --quiet # Silence non-primary command output
666764 --no-pager # Disable the pager
667765 --config: string # Additional configuration options (can be repeated)
670768 --help(-h) # Print help (see more with '--help')
671769 ]
771 def "nu-complete jj debug color" [] {
772 [ "always" "never" "debug" "auto" ]
773 }
673775 # Low-level commands not intended for users
674776 export extern "jj debug" [
675777 --repository(-R): path # Path to repository to operate on
678780 --at-operation: string # Operation to load the repo at
679781 --at-op: string # Operation to load the repo at
680782 --debug # Enable debug logging
681 --color: string # When to colorize output (always, never, debug, auto)
783 --color: string@"nu-complete jj debug color" # When to colorize output
682784 --quiet # Silence non-primary command output
683785 --no-pager # Disable the pager
684786 --config: string # Additional configuration options (can be repeated)
687789 --help(-h) # Print help (see more with '--help')
688790 ]
690 # Rebuild commit index
792 def "nu-complete jj debug copy-detection color" [] {
793 [ "always" "never" "debug" "auto" ]
794 }
796 # Show information about file copies detected
691797 export extern "jj debug copy-detection" [
692 revision?: string # Show changes in this revision, compared to its parent(s)
798 revision?: string # Show file copies detected in changed files in this revision, compared to its parent(s)
693799 --repository(-R): path # Path to repository to operate on
694800 --ignore-working-copy # Don't snapshot the working copy, and don't update it
695801 --ignore-immutable # Allow rewriting immutable commits
696802 --at-operation: string # Operation to load the repo at
697803 --at-op: string # Operation to load the repo at
698804 --debug # Enable debug logging
699 --color: string # When to colorize output (always, never, debug, auto)
805 --color: string@"nu-complete jj debug copy-detection color" # When to colorize output
700806 --quiet # Silence non-primary command output
701807 --no-pager # Disable the pager
702808 --config: string # Additional configuration options (can be repeated)
705811 --help(-h) # Print help (see more with '--help')
706812 ]
814 def "nu-complete jj debug fileset color" [] {
815 [ "always" "never" "debug" "auto" ]
816 }
708818 # Parse fileset expression
709819 export extern "jj debug fileset" [
710820 path: path
714824 --at-operation: string # Operation to load the repo at
715825 --at-op: string # Operation to load the repo at
716826 --debug # Enable debug logging
717 --color: string # When to colorize output (always, never, debug, auto)
827 --color: string@"nu-complete jj debug fileset color" # When to colorize output
718828 --quiet # Silence non-primary command output
719829 --no-pager # Disable the pager
720830 --config: string # Additional configuration options (can be repeated)
723833 --help(-h) # Print help (see more with '--help')
724834 ]
836 def "nu-complete jj debug index color" [] {
837 [ "always" "never" "debug" "auto" ]
838 }
726840 # Show commit index stats
727841 export extern "jj debug index" [
728842 --repository(-R): path # Path to repository to operate on
731845 --at-operation: string # Operation to load the repo at
732846 --at-op: string # Operation to load the repo at
733847 --debug # Enable debug logging
734 --color: string # When to colorize output (always, never, debug, auto)
848 --color: string@"nu-complete jj debug index color" # When to colorize output
735849 --quiet # Silence non-primary command output
736850 --no-pager # Disable the pager
737851 --config: string # Additional configuration options (can be repeated)
740854 --help(-h) # Print help (see more with '--help')
741855 ]
857 def "nu-complete jj debug init-simple color" [] {
858 [ "always" "never" "debug" "auto" ]
859 }
861 # Create a new repo in the given directory using the proof-of-concept simple backend
862 export extern "jj debug init-simple" [
863 destination?: path # The destination directory
864 --repository(-R): path # Path to repository to operate on
865 --ignore-working-copy # Don't snapshot the working copy, and don't update it
866 --ignore-immutable # Allow rewriting immutable commits
867 --at-operation: string # Operation to load the repo at
868 --at-op: string # Operation to load the repo at
869 --debug # Enable debug logging
870 --color: string@"nu-complete jj debug init-simple color" # When to colorize output
871 --quiet # Silence non-primary command output
872 --no-pager # Disable the pager
873 --config: string # Additional configuration options (can be repeated)
874 --config-toml: string # Additional configuration options (can be repeated) (DEPRECATED)
875 --config-file: path # Additional configuration files (can be repeated)
876 --help(-h) # Print help (see more with '--help')
877 ]
879 def "nu-complete jj debug local-working-copy color" [] {
880 [ "always" "never" "debug" "auto" ]
881 }
743883 # Show information about the local working copy state
744884 export extern "jj debug local-working-copy" [
745885 --repository(-R): path # Path to repository to operate on
748888 --at-operation: string # Operation to load the repo at
749889 --at-op: string # Operation to load the repo at
750890 --debug # Enable debug logging
751 --color: string # When to colorize output (always, never, debug, auto)
891 --color: string@"nu-complete jj debug local-working-copy color" # When to colorize output
752892 --quiet # Silence non-primary command output
753893 --no-pager # Disable the pager
754894 --config: string # Additional configuration options (can be repeated)
761901 [ "operation" "id" "view" "all" ]
762902 }
904 def "nu-complete jj debug operation color" [] {
905 [ "always" "never" "debug" "auto" ]
906 }
764908 # Show information about an operation and its view
765909 export extern "jj debug operation" [
766910 operation?: string
771915 --at-operation: string # Operation to load the repo at
772916 --at-op: string # Operation to load the repo at
773917 --debug # Enable debug logging
774 --color: string # When to colorize output (always, never, debug, auto)
918 --color: string@"nu-complete jj debug operation color" # When to colorize output
775919 --quiet # Silence non-primary command output
776920 --no-pager # Disable the pager
777921 --config: string # Additional configuration options (can be repeated)
780924 --help(-h) # Print help (see more with '--help')
781925 ]
927 def "nu-complete jj debug reindex color" [] {
928 [ "always" "never" "debug" "auto" ]
929 }
783931 # Rebuild commit index
784932 export extern "jj debug reindex" [
785933 --repository(-R): path # Path to repository to operate on
788936 --at-operation: string # Operation to load the repo at
789937 --at-op: string # Operation to load the repo at
790938 --debug # Enable debug logging
791 --color: string # When to colorize output (always, never, debug, auto)
939 --color: string@"nu-complete jj debug reindex color" # When to colorize output
792940 --quiet # Silence non-primary command output
793941 --no-pager # Disable the pager
794942 --config: string # Additional configuration options (can be repeated)
797945 --help(-h) # Print help (see more with '--help')
798946 ]
948 def "nu-complete jj debug revset color" [] {
949 [ "always" "never" "debug" "auto" ]
950 }
800952 # Evaluate revset to full commit IDs
801953 export extern "jj debug revset" [
802954 revision: string
806958 --at-operation: string # Operation to load the repo at
807959 --at-op: string # Operation to load the repo at
808960 --debug # Enable debug logging
809 --color: string # When to colorize output (always, never, debug, auto)
961 --color: string@"nu-complete jj debug revset color" # When to colorize output
810962 --quiet # Silence non-primary command output
811963 --no-pager # Disable the pager
812964 --config: string # Additional configuration options (can be repeated)
815967 --help(-h) # Print help (see more with '--help')
816968 ]
970 def "nu-complete jj debug snapshot color" [] {
971 [ "always" "never" "debug" "auto" ]
972 }
818974 # Trigger a snapshot in the op log
819975 export extern "jj debug snapshot" [
820976 --repository(-R): path # Path to repository to operate on
823979 --at-operation: string # Operation to load the repo at
824980 --at-op: string # Operation to load the repo at
825981 --debug # Enable debug logging
826 --color: string # When to colorize output (always, never, debug, auto)
982 --color: string@"nu-complete jj debug snapshot color" # When to colorize output
827983 --quiet # Silence non-primary command output
828984 --no-pager # Disable the pager
829985 --config: string # Additional configuration options (can be repeated)
832988 --help(-h) # Print help (see more with '--help')
833989 ]
991 def "nu-complete jj debug template color" [] {
992 [ "always" "never" "debug" "auto" ]
993 }
835995 # Parse a template
836996 export extern "jj debug template" [
837997 template: string
8411001 --at-operation: string # Operation to load the repo at
8421002 --at-op: string # Operation to load the repo at
8431003 --debug # Enable debug logging
844 --color: string # When to colorize output (always, never, debug, auto)
1004 --color: string@"nu-complete jj debug template color" # When to colorize output
8451005 --quiet # Silence non-primary command output
8461006 --no-pager # Disable the pager
8471007 --config: string # Additional configuration options (can be repeated)
8501010 --help(-h) # Print help (see more with '--help')
1013 def "nu-complete jj debug tree color" [] {
1014 [ "always" "never" "debug" "auto" ]
1015 }
8531017 # List the recursive entries of a tree
8541018 export extern "jj debug tree" [
8551019 --revision(-r): string
8621026 --at-operation: string # Operation to load the repo at
8631027 --at-op: string # Operation to load the repo at
8641028 --debug # Enable debug logging
865 --color: string # When to colorize output (always, never, debug, auto)
1029 --color: string@"nu-complete jj debug tree color" # When to colorize output
8661030 --quiet # Silence non-primary command output
8671031 --no-pager # Disable the pager
8681032 --config: string # Additional configuration options (can be repeated)
8711035 --help(-h) # Print help (see more with '--help')
1038 def "nu-complete jj debug watchman color" [] {
1039 [ "always" "never" "debug" "auto" ]
1040 }
8741042 export extern "jj debug watchman" [
8751043 --repository(-R): path # Path to repository to operate on
8761044 --ignore-working-copy # Don't snapshot the working copy, and don't update it
8781046 --at-operation: string # Operation to load the repo at
8791047 --at-op: string # Operation to load the repo at
8801048 --debug # Enable debug logging
881 --color: string # When to colorize output (always, never, debug, auto)
1049 --color: string@"nu-complete jj debug watchman color" # When to colorize output
8821050 --quiet # Silence non-primary command output
8831051 --no-pager # Disable the pager
8841052 --config: string # Additional configuration options (can be repeated)
8871055 --help(-h) # Print help (see more with '--help')
1058 def "nu-complete jj debug watchman status color" [] {
1059 [ "always" "never" "debug" "auto" ]
1060 }
8901062 # Check whether `watchman` is enabled and whether it's correctly installed
8911063 export extern "jj debug watchman status" [
8921064 --repository(-R): path # Path to repository to operate on
8951067 --at-operation: string # Operation to load the repo at
8961068 --at-op: string # Operation to load the repo at
8971069 --debug # Enable debug logging
898 --color: string # When to colorize output (always, never, debug, auto)
1070 --color: string@"nu-complete jj debug watchman status color" # When to colorize output
8991071 --quiet # Silence non-primary command output
9001072 --no-pager # Disable the pager
9011073 --config: string # Additional configuration options (can be repeated)
9041076 --help(-h) # Print help (see more with '--help')
1079 def "nu-complete jj debug watchman query-clock color" [] {
1080 [ "always" "never" "debug" "auto" ]
1081 }
9071083 export extern "jj debug watchman query-clock" [
9081084 --repository(-R): path # Path to repository to operate on
9091085 --ignore-working-copy # Don't snapshot the working copy, and don't update it
9111087 --at-operation: string # Operation to load the repo at
9121088 --at-op: string # Operation to load the repo at
9131089 --debug # Enable debug logging
914 --color: string # When to colorize output (always, never, debug, auto)
1090 --color: string@"nu-complete jj debug watchman query-clock color" # When to colorize output
9151091 --quiet # Silence non-primary command output
9161092 --no-pager # Disable the pager
9171093 --config: string # Additional configuration options (can be repeated)
9201096 --help(-h) # Print help (see more with '--help')
1099 def "nu-complete jj debug watchman query-changed-files color" [] {
1100 [ "always" "never" "debug" "auto" ]
1101 }
9231103 export extern "jj debug watchman query-changed-files" [
9241104 --repository(-R): path # Path to repository to operate on
9251105 --ignore-working-copy # Don't snapshot the working copy, and don't update it
9271107 --at-operation: string # Operation to load the repo at
9281108 --at-op: string # Operation to load the repo at
9291109 --debug # Enable debug logging
930 --color: string # When to colorize output (always, never, debug, auto)
1110 --color: string@"nu-complete jj debug watchman query-changed-files color" # When to colorize output
9311111 --quiet # Silence non-primary command output
9321112 --no-pager # Disable the pager
9331113 --config: string # Additional configuration options (can be repeated)
9361116 --help(-h) # Print help (see more with '--help')
1119 def "nu-complete jj debug watchman reset-clock color" [] {
1120 [ "always" "never" "debug" "auto" ]
1121 }
9391123 export extern "jj debug watchman reset-clock" [
9401124 --repository(-R): path # Path to repository to operate on
9411125 --ignore-working-copy # Don't snapshot the working copy, and don't update it
9431127 --at-operation: string # Operation to load the repo at
9441128 --at-op: string # Operation to load the repo at
9451129 --debug # Enable debug logging
946 --color: string # When to colorize output (always, never, debug, auto)
1130 --color: string@"nu-complete jj debug watchman reset-clock color" # When to colorize output
9471131 --quiet # Silence non-primary command output
9481132 --no-pager # Disable the pager
9491133 --config: string # Additional configuration options (can be repeated)
9521136 --help(-h) # Print help (see more with '--help')
1139 def "nu-complete jj debug working-copy color" [] {
1140 [ "always" "never" "debug" "auto" ]
1141 }
9551143 # Show information about the working copy state
9561144 export extern "jj debug working-copy" [
9571145 --repository(-R): path # Path to repository to operate on
9601148 --at-operation: string # Operation to load the repo at
9611149 --at-op: string # Operation to load the repo at
9621150 --debug # Enable debug logging
963 --color: string # When to colorize output (always, never, debug, auto)
1151 --color: string@"nu-complete jj debug working-copy color" # When to colorize output
9641152 --quiet # Silence non-primary command output
9651153 --no-pager # Disable the pager
9661154 --config: string # Additional configuration options (can be repeated)
9691157 --help(-h) # Print help (see more with '--help')
1160 def "nu-complete jj describe color" [] {
1161 [ "always" "never" "debug" "auto" ]
1162 }
9721164 # Update the change description or other metadata
9731165 export extern "jj describe" [
9741166 ...revisions_pos: string # The revision(s) whose description to edit (default: @)
9761168 --message(-m): string # The change description to use (don't open editor)
9771169 --stdin # Read the change description from stdin
9781170 --no-edit # Don't open an editor
1171 --edit # Open an editor
9791172 --reset-author # Reset the author to the configured user
9801173 --author: string # Set author to the provided string
9811174 --repository(-R): path # Path to repository to operate on
9841177 --at-operation: string # Operation to load the repo at
9851178 --at-op: string # Operation to load the repo at
9861179 --debug # Enable debug logging
987 --color: string # When to colorize output (always, never, debug, auto)
1180 --color: string@"nu-complete jj describe color" # When to colorize output
9881181 --quiet # Silence non-primary command output
9891182 --no-pager # Disable the pager
9901183 --config: string # Additional configuration options (can be repeated)
9931186 --help(-h) # Print help (see more with '--help')
1189 def "nu-complete jj diff color" [] {
1190 [ "always" "never" "debug" "auto" ]
1191 }
9961193 # Compare file contents between two revisions
9971194 export extern "jj diff" [
998 --revision(-r): string # Show changes in this revision, compared to its parent(s)
1195 --revisions(-r): string # Show changes in these revisions
9991196 --from(-f): string # Show changes from this revision
10001197 --to(-t): string # Show changes to this revision
10011198 ...paths: path # Restrict the diff to these paths
10151212 --at-operation: string # Operation to load the repo at
10161213 --at-op: string # Operation to load the repo at
10171214 --debug # Enable debug logging
1018 --color: string # When to colorize output (always, never, debug, auto)
1215 --color: string@"nu-complete jj diff color" # When to colorize output
10191216 --quiet # Silence non-primary command output
10201217 --no-pager # Disable the pager
10211218 --config: string # Additional configuration options (can be repeated)
10241221 --help(-h) # Print help (see more with '--help')
1224 def "nu-complete jj diffedit color" [] {
1225 [ "always" "never" "debug" "auto" ]
1226 }
10271228 # Touch up the content changes in a revision with a diff editor
10281229 export extern "jj diffedit" [
10291230 --revision(-r): string # The revision to touch up
10371238 --at-operation: string # Operation to load the repo at
10381239 --at-op: string # Operation to load the repo at
10391240 --debug # Enable debug logging
1040 --color: string # When to colorize output (always, never, debug, auto)
1241 --color: string@"nu-complete jj diffedit color" # When to colorize output
10411242 --quiet # Silence non-primary command output
10421243 --no-pager # Disable the pager
10431244 --config: string # Additional configuration options (can be repeated)
10461247 --help(-h) # Print help (see more with '--help')
1250 def "nu-complete jj duplicate color" [] {
1251 [ "always" "never" "debug" "auto" ]
1252 }
10491254 # Create new changes with the same content as existing ones
10501255 export extern "jj duplicate" [
10511256 ...revisions_pos: string # The revision(s) to duplicate (default: @)
10611266 --at-operation: string # Operation to load the repo at
10621267 --at-op: string # Operation to load the repo at
10631268 --debug # Enable debug logging
1064 --color: string # When to colorize output (always, never, debug, auto)
1269 --color: string@"nu-complete jj duplicate color" # When to colorize output
10651270 --quiet # Silence non-primary command output
10661271 --no-pager # Disable the pager
10671272 --config: string # Additional configuration options (can be repeated)
10701275 --help(-h) # Print help (see more with '--help')
1278 def "nu-complete jj edit color" [] {
1279 [ "always" "never" "debug" "auto" ]
1280 }
10731282 # Sets the specified revision as the working-copy revision
10741283 export extern "jj edit" [
10751284 revision: string # The commit to edit
10801289 --at-operation: string # Operation to load the repo at
10811290 --at-op: string # Operation to load the repo at
10821291 --debug # Enable debug logging
1083 --color: string # When to colorize output (always, never, debug, auto)
1292 --color: string@"nu-complete jj edit color" # When to colorize output
10841293 --quiet # Silence non-primary command output
10851294 --no-pager # Disable the pager
10861295 --config: string # Additional configuration options (can be repeated)
10891298 --help(-h) # Print help (see more with '--help')
1301 def "nu-complete jj evolog color" [] {
1302 [ "always" "never" "debug" "auto" ]
1303 }
10921305 # Show how a change has evolved over time
10931306 export extern "jj evolog" [
10941307 --revision(-r): string
10951308 --limit(-n): string # Limit number of revisions to show
1096 -l: string
1309 --reversed # Show revisions in the opposite order (older revisions first)
10971310 --no-graph # Don't show the graph, show a flat list of revisions
10981311 --template(-T): string # Render each revision using the given template
10991312 --patch(-p) # Show patch compared to the previous version of this change
11131326 --at-operation: string # Operation to load the repo at
11141327 --at-op: string # Operation to load the repo at
11151328 --debug # Enable debug logging
1116 --color: string # When to colorize output (always, never, debug, auto)
1329 --color: string@"nu-complete jj evolog color" # When to colorize output
11171330 --quiet # Silence non-primary command output
11181331 --no-pager # Disable the pager
11191332 --config: string # Additional configuration options (can be repeated)
11221335 --help(-h) # Print help (see more with '--help')
1338 def "nu-complete jj file color" [] {
1339 [ "always" "never" "debug" "auto" ]
1340 }
11251342 # File operations
11261343 export extern "jj file" [
11271344 --repository(-R): path # Path to repository to operate on
11301347 --at-operation: string # Operation to load the repo at
11311348 --at-op: string # Operation to load the repo at
11321349 --debug # Enable debug logging
1133 --color: string # When to colorize output (always, never, debug, auto)
1350 --color: string@"nu-complete jj file color" # When to colorize output
11341351 --quiet # Silence non-primary command output
11351352 --no-pager # Disable the pager
11361353 --config: string # Additional configuration options (can be repeated)
11391356 --help(-h) # Print help (see more with '--help')
1359 def "nu-complete jj file annotate color" [] {
1360 [ "always" "never" "debug" "auto" ]
1361 }
11421363 # Show the source change for each line of the target file
11431364 export extern "jj file annotate" [
11441365 path: path # the file to annotate
11451366 --revision(-r): string # an optional revision to start at
1367 --template(-T): string # Render each line using the given template
11461368 --repository(-R): path # Path to repository to operate on
11471369 --ignore-working-copy # Don't snapshot the working copy, and don't update it
11481370 --ignore-immutable # Allow rewriting immutable commits
11491371 --at-operation: string # Operation to load the repo at
11501372 --at-op: string # Operation to load the repo at
11511373 --debug # Enable debug logging
1152 --color: string # When to colorize output (always, never, debug, auto)
1374 --color: string@"nu-complete jj file annotate color" # When to colorize output
11531375 --quiet # Silence non-primary command output
11541376 --no-pager # Disable the pager
11551377 --config: string # Additional configuration options (can be repeated)
11621384 [ "n" "x" ]
1387 def "nu-complete jj file chmod color" [] {
1388 [ "always" "never" "debug" "auto" ]
1389 }
11651391 # Sets or removes the executable bit for paths in the repo
11661392 export extern "jj file chmod" [
11671393 mode: string@"nu-complete jj file chmod mode"
11731399 --at-operation: string # Operation to load the repo at
11741400 --at-op: string # Operation to load the repo at
11751401 --debug # Enable debug logging
1176 --color: string # When to colorize output (always, never, debug, auto)
1402 --color: string@"nu-complete jj file chmod color" # When to colorize output
11771403 --quiet # Silence non-primary command output
11781404 --no-pager # Disable the pager
11791405 --config: string # Additional configuration options (can be repeated)
11821408 --help(-h) # Print help (see more with '--help')
1411 def "nu-complete jj file list color" [] {
1412 [ "always" "never" "debug" "auto" ]
1413 }
11851415 # List files in a revision
11861416 export extern "jj file list" [
11871417 --revision(-r): string # The revision to list files in
1418 --template(-T): string # Render each file entry using the given template
11881419 ...paths: path # Only list files matching these prefixes (instead of all files)
11891420 --repository(-R): path # Path to repository to operate on
11901421 --ignore-working-copy # Don't snapshot the working copy, and don't update it
11921423 --at-operation: string # Operation to load the repo at
11931424 --at-op: string # Operation to load the repo at
11941425 --debug # Enable debug logging
1195 --color: string # When to colorize output (always, never, debug, auto)
1426 --color: string@"nu-complete jj file list color" # When to colorize output
11961427 --quiet # Silence non-primary command output
11971428 --no-pager # Disable the pager
11981429 --config: string # Additional configuration options (can be repeated)
12011432 --help(-h) # Print help (see more with '--help')
1435 def "nu-complete jj file show color" [] {
1436 [ "always" "never" "debug" "auto" ]
1437 }
12041439 # Print contents of files in a revision
12051440 export extern "jj file show" [
12061441 --revision(-r): string # The revision to get the file contents from
12111446 --at-operation: string # Operation to load the repo at
12121447 --at-op: string # Operation to load the repo at
12131448 --debug # Enable debug logging
1214 --color: string # When to colorize output (always, never, debug, auto)
1449 --color: string@"nu-complete jj file show color" # When to colorize output
12151450 --quiet # Silence non-primary command output
12161451 --no-pager # Disable the pager
12171452 --config: string # Additional configuration options (can be repeated)
12201455 --help(-h) # Print help (see more with '--help')
1458 def "nu-complete jj file track color" [] {
1459 [ "always" "never" "debug" "auto" ]
1460 }
12231462 # Start tracking specified paths in the working copy
12241463 export extern "jj file track" [
12251464 ...paths: path # Paths to track
12291468 --at-operation: string # Operation to load the repo at
12301469 --at-op: string # Operation to load the repo at
12311470 --debug # Enable debug logging
1232 --color: string # When to colorize output (always, never, debug, auto)
1471 --color: string@"nu-complete jj file track color" # When to colorize output
12331472 --quiet # Silence non-primary command output
12341473 --no-pager # Disable the pager
12351474 --config: string # Additional configuration options (can be repeated)
12381477 --help(-h) # Print help (see more with '--help')
1480 def "nu-complete jj file untrack color" [] {
1481 [ "always" "never" "debug" "auto" ]
1482 }
12411484 # Stop tracking specified paths in the working copy
12421485 export extern "jj file untrack" [
12431486 ...paths: path # Paths to untrack. They must already be ignored
12471490 --at-operation: string # Operation to load the repo at
12481491 --at-op: string # Operation to load the repo at
12491492 --debug # Enable debug logging
1250 --color: string # When to colorize output (always, never, debug, auto)
1493 --color: string@"nu-complete jj file untrack color" # When to colorize output
12511494 --quiet # Silence non-primary command output
12521495 --no-pager # Disable the pager
12531496 --config: string # Additional configuration options (can be repeated)
12561499 --help(-h) # Print help (see more with '--help')
1259 # List files in a revision (DEPRECATED use `jj file list`)
1260 export extern "jj files" [
1261 --revision(-r): string # The revision to list files in
1262 ...paths: path # Only list files matching these prefixes (instead of all files)
1263 --repository(-R): path # Path to repository to operate on
1264 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1265 --ignore-immutable # Allow rewriting immutable commits
1266 --at-operation: string # Operation to load the repo at
1267 --at-op: string # Operation to load the repo at
1268 --debug # Enable debug logging
1269 --color: string # When to colorize output (always, never, debug, auto)
1270 --quiet # Silence non-primary command output
1271 --no-pager # Disable the pager
1272 --config: string # Additional configuration options (can be repeated)
1273 --config-toml: string # Additional configuration options (can be repeated) (DEPRECATED)
1274 --config-file: path # Additional configuration files (can be repeated)
1275 --help(-h) # Print help (see more with '--help')
1276 ]
1502 def "nu-complete jj fix color" [] {
1503 [ "always" "never" "debug" "auto" ]
1504 }
12781506 # Update files with formatting fixes or other changes
12791507 export extern "jj fix" [
12861514 --at-operation: string # Operation to load the repo at
12871515 --at-op: string # Operation to load the repo at
12881516 --debug # Enable debug logging
1289 --color: string # When to colorize output (always, never, debug, auto)
1517 --color: string@"nu-complete jj fix color" # When to colorize output
12901518 --quiet # Silence non-primary command output
12911519 --no-pager # Disable the pager
12921520 --config: string # Additional configuration options (can be repeated)
12951523 --help(-h) # Print help (see more with '--help')
1526 def "nu-complete jj git color" [] {
1527 [ "always" "never" "debug" "auto" ]
1528 }
12981530 # Commands for working with Git remotes and the underlying Git repo
12991531 export extern "jj git" [
13001532 --repository(-R): path # Path to repository to operate on
13031535 --at-operation: string # Operation to load the repo at
13041536 --at-op: string # Operation to load the repo at
13051537 --debug # Enable debug logging
1306 --color: string # When to colorize output (always, never, debug, auto)
1538 --color: string@"nu-complete jj git color" # When to colorize output
13071539 --quiet # Silence non-primary command output
13081540 --no-pager # Disable the pager
13091541 --config: string # Additional configuration options (can be repeated)
13121544 --help(-h) # Print help (see more with '--help')
1547 def "nu-complete jj git clone color" [] {
1548 [ "always" "never" "debug" "auto" ]
1549 }
13151551 # Create a new repo backed by a clone of a Git repo
13161552 export extern "jj git clone" [
1317 source: path # URL or path of the Git repo to clone
1553 source: string # URL or path of the Git repo to clone
13181554 destination?: path # 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
13191555 --remote: string # Name of the newly created remote
13201556 --colocate # Whether or not to colocate the Jujutsu repo with the git repo
13251561 --at-operation: string # Operation to load the repo at
13261562 --at-op: string # Operation to load the repo at
13271563 --debug # Enable debug logging
1328 --color: string # When to colorize output (always, never, debug, auto)
1564 --color: string@"nu-complete jj git clone color" # When to colorize output
13291565 --quiet # Silence non-primary command output
13301566 --no-pager # Disable the pager
13311567 --config: string # Additional configuration options (can be repeated)
13341570 --help(-h) # Print help (see more with '--help')
1573 def "nu-complete jj git export color" [] {
1574 [ "always" "never" "debug" "auto" ]
1575 }
13371577 # Update the underlying Git repo with changes made in the repo
13381578 export extern "jj git export" [
13391579 --repository(-R): path # Path to repository to operate on
13421582 --at-operation: string # Operation to load the repo at
13431583 --at-op: string # Operation to load the repo at
13441584 --debug # Enable debug logging
1345 --color: string # When to colorize output (always, never, debug, auto)
1585 --color: string@"nu-complete jj git export color" # When to colorize output
13461586 --quiet # Silence non-primary command output
13471587 --no-pager # Disable the pager
13481588 --config: string # Additional configuration options (can be repeated)
13511591 --help(-h) # Print help (see more with '--help')
1594 def "nu-complete jj git fetch color" [] {
1595 [ "always" "never" "debug" "auto" ]
1596 }
13541598 # Fetch from a Git remote
13551599 export extern "jj git fetch" [
13561600 --branch(-b): string # Fetch only some of the branches
13621606 --at-operation: string # Operation to load the repo at
13631607 --at-op: string # Operation to load the repo at
13641608 --debug # Enable debug logging
1365 --color: string # When to colorize output (always, never, debug, auto)
1609 --color: string@"nu-complete jj git fetch color" # When to colorize output
13661610 --quiet # Silence non-primary command output
13671611 --no-pager # Disable the pager
13681612 --config: string # Additional configuration options (can be repeated)
13711615 --help(-h) # Print help (see more with '--help')
1618 def "nu-complete jj git import color" [] {
1619 [ "always" "never" "debug" "auto" ]
1620 }
13741622 # Update repo with changes made in the underlying Git repo
13751623 export extern "jj git import" [
13761624 --repository(-R): path # Path to repository to operate on
13791627 --at-operation: string # Operation to load the repo at
13801628 --at-op: string # Operation to load the repo at
13811629 --debug # Enable debug logging
1382 --color: string # When to colorize output (always, never, debug, auto)
1630 --color: string@"nu-complete jj git import color" # When to colorize output
13831631 --quiet # Silence non-primary command output
13841632 --no-pager # Disable the pager
13851633 --config: string # Additional configuration options (can be repeated)
13881636 --help(-h) # Print help (see more with '--help')
1639 def "nu-complete jj git init color" [] {
1640 [ "always" "never" "debug" "auto" ]
1641 }
13911643 # Create a new Git backed repo
13921644 export extern "jj git init" [
13931645 destination?: path # 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
13991651 --at-operation: string # Operation to load the repo at
14001652 --at-op: string # Operation to load the repo at
14011653 --debug # Enable debug logging
1402 --color: string # When to colorize output (always, never, debug, auto)
1654 --color: string@"nu-complete jj git init color" # When to colorize output
14031655 --quiet # Silence non-primary command output
14041656 --no-pager # Disable the pager
14051657 --config: string # Additional configuration options (can be repeated)
14081660 --help(-h) # Print help (see more with '--help')
1663 def "nu-complete jj git push color" [] {
1664 [ "always" "never" "debug" "auto" ]
1665 }
14111667 # Push to a Git remote
14121668 export extern "jj git push" [
14131669 --remote: string # The remote to push to (only named remotes are supported)
14141670 --bookmark(-b): string # Push only this bookmark, or bookmarks matching a pattern (can be repeated)
1415 --all # Push all bookmarks (including new and deleted bookmarks)
1416 --tracked # Push all tracked bookmarks (including deleted bookmarks)
1671 --all # Push all bookmarks (including new bookmarks)
1672 --tracked # Push all tracked bookmarks
14171673 --deleted # Push all deleted bookmarks
14181674 --allow-new(-N) # Allow pushing new bookmarks
14191675 --allow-empty-description # Allow pushing commits with empty descriptions
14201676 --allow-private # Allow pushing commits that are private
14211677 --revisions(-r): string # Push bookmarks pointing to these commits (can be repeated)
14221678 --change(-c): string # Push this commit by creating a bookmark based on its change ID (can be repeated)
1679 --named: string # Specify a new bookmark name and a revision to push under that name, e.g. '--named myfeature=@'
14231680 --dry-run # Only display what will change on the remote
14241681 --repository(-R): path # Path to repository to operate on
14251682 --ignore-working-copy # Don't snapshot the working copy, and don't update it
14271684 --at-operation: string # Operation to load the repo at
14281685 --at-op: string # Operation to load the repo at
14291686 --debug # Enable debug logging
1430 --color: string # When to colorize output (always, never, debug, auto)
1687 --color: string@"nu-complete jj git push color" # When to colorize output
14311688 --quiet # Silence non-primary command output
14321689 --no-pager # Disable the pager
14331690 --config: string # Additional configuration options (can be repeated)
14361693 --help(-h) # Print help (see more with '--help')
1696 def "nu-complete jj git remote color" [] {
1697 [ "always" "never" "debug" "auto" ]
1698 }
14391700 # Manage Git remotes
14401701 export extern "jj git remote" [
14411702 --repository(-R): path # Path to repository to operate on
14441705 --at-operation: string # Operation to load the repo at
14451706 --at-op: string # Operation to load the repo at
14461707 --debug # Enable debug logging
1447 --color: string # When to colorize output (always, never, debug, auto)
1708 --color: string@"nu-complete jj git remote color" # When to colorize output
14481709 --quiet # Silence non-primary command output
14491710 --no-pager # Disable the pager
14501711 --config: string # Additional configuration options (can be repeated)
14531714 --help(-h) # Print help (see more with '--help')
1717 def "nu-complete jj git remote add color" [] {
1718 [ "always" "never" "debug" "auto" ]
1719 }
14561721 # Add a Git remote
14571722 export extern "jj git remote add" [
14581723 remote: string # The remote's name
1459 url: string # The remote's URL
1724 url: string # The remote's URL or path
14601725 --repository(-R): path # Path to repository to operate on
14611726 --ignore-working-copy # Don't snapshot the working copy, and don't update it
14621727 --ignore-immutable # Allow rewriting immutable commits
14631728 --at-operation: string # Operation to load the repo at
14641729 --at-op: string # Operation to load the repo at
14651730 --debug # Enable debug logging
1466 --color: string # When to colorize output (always, never, debug, auto)
1731 --color: string@"nu-complete jj git remote add color" # When to colorize output
14671732 --quiet # Silence non-primary command output
14681733 --no-pager # Disable the pager
14691734 --config: string # Additional configuration options (can be repeated)
14721737 --help(-h) # Print help (see more with '--help')
1740 def "nu-complete jj git remote list color" [] {
1741 [ "always" "never" "debug" "auto" ]
1742 }
14751744 # List Git remotes
14761745 export extern "jj git remote list" [
14771746 --repository(-R): path # Path to repository to operate on
14801749 --at-operation: string # Operation to load the repo at
14811750 --at-op: string # Operation to load the repo at
14821751 --debug # Enable debug logging
1483 --color: string # When to colorize output (always, never, debug, auto)
1752 --color: string@"nu-complete jj git remote list color" # When to colorize output
14841753 --quiet # Silence non-primary command output
14851754 --no-pager # Disable the pager
14861755 --config: string # Additional configuration options (can be repeated)
14891758 --help(-h) # Print help (see more with '--help')
1761 def "nu-complete jj git remote remove color" [] {
1762 [ "always" "never" "debug" "auto" ]
1763 }
14921765 # Remove a Git remote and forget its bookmarks
14931766 export extern "jj git remote remove" [
14941767 remote: string # The remote's name
14981771 --at-operation: string # Operation to load the repo at
14991772 --at-op: string # Operation to load the repo at
15001773 --debug # Enable debug logging
1501 --color: string # When to colorize output (always, never, debug, auto)
1774 --color: string@"nu-complete jj git remote remove color" # When to colorize output
15021775 --quiet # Silence non-primary command output
15031776 --no-pager # Disable the pager
15041777 --config: string # Additional configuration options (can be repeated)
15071780 --help(-h) # Print help (see more with '--help')
1783 def "nu-complete jj git remote rename color" [] {
1784 [ "always" "never" "debug" "auto" ]
1785 }
15101787 # Rename a Git remote
15111788 export extern "jj git remote rename" [
15121789 old: string # The name of an existing remote
15171794 --at-operation: string # Operation to load the repo at
15181795 --at-op: string # Operation to load the repo at
15191796 --debug # Enable debug logging
1520 --color: string # When to colorize output (always, never, debug, auto)
1797 --color: string@"nu-complete jj git remote rename color" # When to colorize output
15211798 --quiet # Silence non-primary command output
15221799 --no-pager # Disable the pager
15231800 --config: string # Additional configuration options (can be repeated)
15261803 --help(-h) # Print help (see more with '--help')
1806 def "nu-complete jj git remote set-url color" [] {
1807 [ "always" "never" "debug" "auto" ]
1808 }
15291810 # Set the URL of a Git remote
15301811 export extern "jj git remote set-url" [
15311812 remote: string # The remote's name
1532 url: string # The desired url for `remote`
1813 url: string # The desired URL or path for `remote`
15331814 --repository(-R): path # Path to repository to operate on
15341815 --ignore-working-copy # Don't snapshot the working copy, and don't update it
15351816 --ignore-immutable # Allow rewriting immutable commits
15361817 --at-operation: string # Operation to load the repo at
15371818 --at-op: string # Operation to load the repo at
15381819 --debug # Enable debug logging
1539 --color: string # When to colorize output (always, never, debug, auto)
1820 --color: string@"nu-complete jj git remote set-url color" # When to colorize output
15401821 --quiet # Silence non-primary command output
15411822 --no-pager # Disable the pager
15421823 --config: string # Additional configuration options (can be repeated)
15451826 --help(-h) # Print help (see more with '--help')
1548 # FOR INTERNAL USE ONLY Interact with git submodules
1549 export extern "jj git submodule" [
1550 --repository(-R): path # Path to repository to operate on
1551 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1552 --ignore-immutable # Allow rewriting immutable commits
1553 --at-operation: string # Operation to load the repo at
1554 --at-op: string # Operation to load the repo at
1555 --debug # Enable debug logging
1556 --color: string # When to colorize output (always, never, debug, auto)
1557 --quiet # Silence non-primary command output
1558 --no-pager # Disable the pager
1559 --config: string # Additional configuration options (can be repeated)
1560 --config-toml: string # Additional configuration options (can be repeated) (DEPRECATED)
1561 --config-file: path # Additional configuration files (can be repeated)
1562 --help(-h) # Print help (see more with '--help')
1563 ]
1829 def "nu-complete jj git root color" [] {
1830 [ "always" "never" "debug" "auto" ]
1831 }
1565 # Print the relevant contents from .gitmodules. For debugging purposes only
1566 export extern "jj git submodule print-gitmodules" [
1567 --revisions(-r): string # Read .gitmodules from the given revision
1833 # Show the underlying Git directory of a repository using the Git backend
1834 export extern "jj git root" [
15681835 --repository(-R): path # Path to repository to operate on
15691836 --ignore-working-copy # Don't snapshot the working copy, and don't update it
15701837 --ignore-immutable # Allow rewriting immutable commits
15711838 --at-operation: string # Operation to load the repo at
15721839 --at-op: string # Operation to load the repo at
15731840 --debug # Enable debug logging
1574 --color: string # When to colorize output (always, never, debug, auto)
1841 --color: string@"nu-complete jj git root color" # When to colorize output
15751842 --quiet # Silence non-primary command output
15761843 --no-pager # Disable the pager
15771844 --config: string # Additional configuration options (can be repeated)
15841851 [ "bookmarks" "config" "filesets" "glossary" "revsets" "templates" "tutorial" ]
1854 def "nu-complete jj help color" [] {
1855 [ "always" "never" "debug" "auto" ]
1856 }
15871858 # Print this message or the help of the given subcommand(s)
15881859 export extern "jj help" [
15891860 ...command: string # Print help for the subcommand(s)
15941865 --at-operation: string # Operation to load the repo at
15951866 --at-op: string # Operation to load the repo at
15961867 --debug # Enable debug logging
1597 --color: string # When to colorize output (always, never, debug, auto)
1868 --color: string@"nu-complete jj help color" # When to colorize output
15981869 --quiet # Silence non-primary command output
15991870 --no-pager # Disable the pager
16001871 --config: string # Additional configuration options (can be repeated)
16031874 --help(-h) # Print help (see more with '--help')
1606 # Create a new repo in the given directory
1607 export extern "jj init" [
1608 destination?: path # The destination directory
1609 --git # DEPRECATED: Use `jj git init` Use the Git backend, creating a jj repo backed by a Git repo
1610 --git-repo: path # DEPRECATED: Use `jj git init` Path to a git repo the jj repo will be backed by
1611 --repository(-R): path # Path to repository to operate on
1612 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1613 --ignore-immutable # Allow rewriting immutable commits
1614 --at-operation: string # Operation to load the repo at
1615 --at-op: string # Operation to load the repo at
1616 --debug # Enable debug logging
1617 --color: string # When to colorize output (always, never, debug, auto)
1618 --quiet # Silence non-primary command output
1619 --no-pager # Disable the pager
1620 --config: string # Additional configuration options (can be repeated)
1621 --config-toml: string # Additional configuration options (can be repeated) (DEPRECATED)
1622 --config-file: path # Additional configuration files (can be repeated)
1623 --help(-h) # Print help (see more with '--help')
1624 ]
1877 def "nu-complete jj interdiff color" [] {
1878 [ "always" "never" "debug" "auto" ]
1879 }
16261881 # Compare the changes of two commits
16271882 export extern "jj interdiff" [
16441899 --at-operation: string # Operation to load the repo at
16451900 --at-op: string # Operation to load the repo at
16461901 --debug # Enable debug logging
1647 --color: string # When to colorize output (always, never, debug, auto)
1902 --color: string@"nu-complete jj interdiff color" # When to colorize output
16481903 --quiet # Silence non-primary command output
16491904 --no-pager # Disable the pager
16501905 --config: string # Additional configuration options (can be repeated)
16531908 --help(-h) # Print help (see more with '--help')
1911 def "nu-complete jj log color" [] {
1912 [ "always" "never" "debug" "auto" ]
1913 }
16561915 # Show revision history
16571916 export extern "jj log" [
16581917 --revisions(-r): string # Which revisions to show
16591918 ...paths: path # Show revisions modifying the given paths
1660 --reversed # Show revisions in the opposite order (older revisions first)
16611919 --limit(-n): string # Limit number of revisions to show
1662 -l: string
1920 --reversed # Show revisions in the opposite order (older revisions first)
16631921 --no-graph # Don't show the graph, show a flat list of revisions
16641922 --template(-T): string # Render each revision using the given template
16651923 --patch(-p) # Show patch
16791937 --at-operation: string # Operation to load the repo at
16801938 --at-op: string # Operation to load the repo at
16811939 --debug # Enable debug logging
1682 --color: string # When to colorize output (always, never, debug, auto)
1940 --color: string@"nu-complete jj log color" # When to colorize output
16831941 --quiet # Silence non-primary command output
16841942 --no-pager # Disable the pager
16851943 --config: string # Additional configuration options (can be repeated)
16881946 --help(-h) # Print help (see more with '--help')
1949 def "nu-complete jj new color" [] {
1950 [ "always" "never" "debug" "auto" ]
1951 }
16911953 # Create a new, empty change and (by default) edit it in the working copy
16921954 export extern "jj new" [
16931955 ...revisions: string # Parent(s) of the new change
17051967 --at-operation: string # Operation to load the repo at
17061968 --at-op: string # Operation to load the repo at
17071969 --debug # Enable debug logging
1708 --color: string # When to colorize output (always, never, debug, auto)
1970 --color: string@"nu-complete jj new color" # When to colorize output
17091971 --quiet # Silence non-primary command output
17101972 --no-pager # Disable the pager
17111973 --config: string # Additional configuration options (can be repeated)
17141976 --help(-h) # Print help (see more with '--help')
1979 def "nu-complete jj next color" [] {
1980 [ "always" "never" "debug" "auto" ]
1981 }
17171983 # Move the working-copy commit to the child revision
17181984 export extern "jj next" [
17191985 offset?: string # How many revisions to move forward. Advances to the next child by default
17261992 --at-operation: string # Operation to load the repo at
17271993 --at-op: string # Operation to load the repo at
17281994 --debug # Enable debug logging
1729 --color: string # When to colorize output (always, never, debug, auto)
1995 --color: string@"nu-complete jj next color" # When to colorize output
17301996 --quiet # Silence non-primary command output
17311997 --no-pager # Disable the pager
17321998 --config: string # Additional configuration options (can be repeated)
17352001 --help(-h) # Print help (see more with '--help')
2004 def "nu-complete jj operation color" [] {
2005 [ "always" "never" "debug" "auto" ]
2006 }
17382008 # Commands for working with the operation log
17392009 export extern "jj operation" [
17402010 --repository(-R): path # Path to repository to operate on
17432013 --at-operation: string # Operation to load the repo at
17442014 --at-op: string # Operation to load the repo at
17452015 --debug # Enable debug logging
1746 --color: string # When to colorize output (always, never, debug, auto)
2016 --color: string@"nu-complete jj operation color" # When to colorize output
17472017 --quiet # Silence non-primary command output
17482018 --no-pager # Disable the pager
17492019 --config: string # Additional configuration options (can be repeated)
17522022 --help(-h) # Print help (see more with '--help')
2025 def "nu-complete jj operation abandon color" [] {
2026 [ "always" "never" "debug" "auto" ]
2027 }
17552029 # Abandon operation history
17562030 export extern "jj operation abandon" [
17572031 operation: string # The operation or operation range to abandon
17612035 --at-operation: string # Operation to load the repo at
17622036 --at-op: string # Operation to load the repo at
17632037 --debug # Enable debug logging
1764 --color: string # When to colorize output (always, never, debug, auto)
2038 --color: string@"nu-complete jj operation abandon color" # When to colorize output
17652039 --quiet # Silence non-primary command output
17662040 --no-pager # Disable the pager
17672041 --config: string # Additional configuration options (can be repeated)
17702044 --help(-h) # Print help (see more with '--help')
2047 def "nu-complete jj operation diff color" [] {
2048 [ "always" "never" "debug" "auto" ]
2049 }
17732051 # Compare changes to the repository between two operations
17742052 export extern "jj operation diff" [
17752053 --operation: string # Show repository changes in this operation, compared to its parent
17942072 --at-operation: string # Operation to load the repo at
17952073 --at-op: string # Operation to load the repo at
17962074 --debug # Enable debug logging
1797 --color: string # When to colorize output (always, never, debug, auto)
2075 --color: string@"nu-complete jj operation diff color" # When to colorize output
17982076 --quiet # Silence non-primary command output
17992077 --no-pager # Disable the pager
18002078 --config: string # Additional configuration options (can be repeated)
18032081 --help(-h) # Print help (see more with '--help')
2084 def "nu-complete jj operation log color" [] {
2085 [ "always" "never" "debug" "auto" ]
2086 }
18062088 # Show the operation log
18072089 export extern "jj operation log" [
18082090 --limit(-n): string # Limit number of operations to show
1809 -l: string
2091 --reversed # Show operations in the opposite order (older operations first)
18102092 --no-graph # Don't show the graph, show a flat list of operations
18112093 --template(-T): string # Render each operation using the given template
1812 --op-diff # Show changes to the repository at each operation
2094 --op-diff(-d) # Show changes to the repository at each operation
18132095 --patch(-p) # Show patch of modifications to changes (implies --op-diff)
18142096 --summary(-s) # For each path, show only whether it was modified, added, or deleted
18152097 --stat # Show a histogram of the changes
18272109 --at-operation: string # Operation to load the repo at
18282110 --at-op: string # Operation to load the repo at
18292111 --debug # Enable debug logging
1830 --color: string # When to colorize output (always, never, debug, auto)
2112 --color: string@"nu-complete jj operation log color" # When to colorize output
18312113 --quiet # Silence non-primary command output
18322114 --no-pager # Disable the pager
18332115 --config: string # Additional configuration options (can be repeated)
18402122 [ "repo" "remote-tracking" ]
2125 def "nu-complete jj operation restore color" [] {
2126 [ "always" "never" "debug" "auto" ]
2127 }
18432129 # Create a new operation that restores the repo to an earlier state
18442130 export extern "jj operation restore" [
18452131 operation: string # The operation to restore to
18502136 --at-operation: string # Operation to load the repo at
18512137 --at-op: string # Operation to load the repo at
18522138 --debug # Enable debug logging
1853 --color: string # When to colorize output (always, never, debug, auto)
2139 --color: string@"nu-complete jj operation restore color" # When to colorize output
18542140 --quiet # Silence non-primary command output
18552141 --no-pager # Disable the pager
18562142 --config: string # Additional configuration options (can be repeated)
18592145 --help(-h) # Print help (see more with '--help')
2148 def "nu-complete jj operation show color" [] {
2149 [ "always" "never" "debug" "auto" ]
2150 }
18622152 # Show changes to the repository in an operation
18632153 export extern "jj operation show" [
18642154 operation?: string # Show repository changes in this operation, compared to its parent(s)
18802170 --at-operation: string # Operation to load the repo at
18812171 --at-op: string # Operation to load the repo at
18822172 --debug # Enable debug logging
1883 --color: string # When to colorize output (always, never, debug, auto)
2173 --color: string@"nu-complete jj operation show color" # When to colorize output
18842174 --quiet # Silence non-primary command output
18852175 --no-pager # Disable the pager
18862176 --config: string # Additional configuration options (can be repeated)
18932183 [ "repo" "remote-tracking" ]
2186 def "nu-complete jj operation undo color" [] {
2187 [ "always" "never" "debug" "auto" ]
2188 }
18962190 # Create a new operation that undoes an earlier operation
18972191 export extern "jj operation undo" [
18982192 operation?: string # The operation to undo
19032197 --at-operation: string # Operation to load the repo at
19042198 --at-op: string # Operation to load the repo at
19052199 --debug # Enable debug logging
1906 --color: string # When to colorize output (always, never, debug, auto)
2200 --color: string@"nu-complete jj operation undo color" # When to colorize output
19072201 --quiet # Silence non-primary command output
19082202 --no-pager # Disable the pager
19092203 --config: string # Additional configuration options (can be repeated)
19122206 --help(-h) # Print help (see more with '--help')
2209 def "nu-complete jj parallelize color" [] {
2210 [ "always" "never" "debug" "auto" ]
2211 }
19152213 # Parallelize revisions by making them siblings
19162214 export extern "jj parallelize" [
19172215 ...revisions: string # Revisions to parallelize
19212219 --at-operation: string # Operation to load the repo at
19222220 --at-op: string # Operation to load the repo at
19232221 --debug # Enable debug logging
1924 --color: string # When to colorize output (always, never, debug, auto)
2222 --color: string@"nu-complete jj parallelize color" # When to colorize output
19252223 --quiet # Silence non-primary command output
19262224 --no-pager # Disable the pager
19272225 --config: string # Additional configuration options (can be repeated)
19302228 --help(-h) # Print help (see more with '--help')
2231 def "nu-complete jj prev color" [] {
2232 [ "always" "never" "debug" "auto" ]
2233 }
19332235 # Change the working copy revision relative to the parent revision
19342236 export extern "jj prev" [
19352237 offset?: string # How many revisions to move backward. Moves to the parent by default
19422244 --at-operation: string # Operation to load the repo at
19432245 --at-op: string # Operation to load the repo at
19442246 --debug # Enable debug logging
1945 --color: string # When to colorize output (always, never, debug, auto)
2247 --color: string@"nu-complete jj prev color" # When to colorize output
19462248 --quiet # Silence non-primary command output
19472249 --no-pager # Disable the pager
19482250 --config: string # Additional configuration options (can be repeated)
19512253 --help(-h) # Print help (see more with '--help')
2256 def "nu-complete jj rebase color" [] {
2257 [ "always" "never" "debug" "auto" ]
2258 }
19542260 # Move revisions to different parent(s)
19552261 export extern "jj rebase" [
19562262 --branch(-b): string # Rebase the whole branch relative to destination's ancestors (can be repeated)
19692275 --at-operation: string # Operation to load the repo at
19702276 --at-op: string # Operation to load the repo at
19712277 --debug # Enable debug logging
1972 --color: string # When to colorize output (always, never, debug, auto)
2278 --color: string@"nu-complete jj rebase color" # When to colorize output
19732279 --quiet # Silence non-primary command output
19742280 --no-pager # Disable the pager
19752281 --config: string # Additional configuration options (can be repeated)
19782284 --help(-h) # Print help (see more with '--help')
1981 # Resolve a conflicted file with an external merge tool
2287 def "nu-complete jj resolve color" [] {
2288 [ "always" "never" "debug" "auto" ]
2289 }
2291 # Resolve conflicted files with an external merge tool
19822292 export extern "jj resolve" [
19832293 --revision(-r): string
1984 --list(-l) # Instead of resolving one conflict, list all the conflicts
2294 --list(-l) # Instead of resolving conflicts, list all the conflicts
19852295 --tool: string # Specify 3-way merge tool to be used
1986 ...paths: path # 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
2296 ...paths: path # Only resolve conflicts in these paths. You can use the `--list` argument to find paths to use here
19872297 --repository(-R): path # Path to repository to operate on
19882298 --ignore-working-copy # Don't snapshot the working copy, and don't update it
19892299 --ignore-immutable # Allow rewriting immutable commits
19902300 --at-operation: string # Operation to load the repo at
19912301 --at-op: string # Operation to load the repo at
19922302 --debug # Enable debug logging
1993 --color: string # When to colorize output (always, never, debug, auto)
2303 --color: string@"nu-complete jj resolve color" # When to colorize output
19942304 --quiet # Silence non-primary command output
19952305 --no-pager # Disable the pager
19962306 --config: string # Additional configuration options (can be repeated)
19992309 --help(-h) # Print help (see more with '--help')
2312 def "nu-complete jj restore color" [] {
2313 [ "always" "never" "debug" "auto" ]
2314 }
20022316 # Restore paths from another revision
20032317 export extern "jj restore" [
20042318 ...paths: path # Restore only these paths (instead of all paths)
20052319 --from(-f): string # Revision to restore from (source)
2006 --to(-t): string # Revision to restore into (destination)
2320 --into(-t): string # Revision to restore into (destination)
2321 --to: string # Revision to restore into (destination)
20072322 --changes-in(-c): string # Undo the changes in a revision as compared to the merge of its parents
20082323 --revision(-r): string # Prints an error. DO NOT USE
2324 --interactive(-i) # Interactively choose which parts to restore
2325 --tool: string # Specify diff editor to be used (implies --interactive)
20092326 --restore-descendants # Preserve the content (not the diff) when rebasing descendants
20102327 --repository(-R): path # Path to repository to operate on
20112328 --ignore-working-copy # Don't snapshot the working copy, and don't update it
20132330 --at-operation: string # Operation to load the repo at
20142331 --at-op: string # Operation to load the repo at
20152332 --debug # Enable debug logging
2016 --color: string # When to colorize output (always, never, debug, auto)
2333 --color: string@"nu-complete jj restore color" # When to colorize output
20172334 --quiet # Silence non-primary command output
20182335 --no-pager # Disable the pager
20192336 --config: string # Additional configuration options (can be repeated)
20222339 --help(-h) # Print help (see more with '--help')
2025 # A dummy command that accepts any arguments
2342 def "nu-complete jj revert color" [] {
2343 [ "always" "never" "debug" "auto" ]
2344 }
2346 # Apply the reverse of the given revision(s)
20262347 export extern "jj revert" [
2027 ..._args: string
2348 --revisions(-r): string # The revision(s) to apply the reverse of
2349 --destination(-d): string # The revision(s) to apply the reverse changes on top of
2350 --insert-after(-A): string # The revision(s) to insert the reverse changes after (can be repeated to create a merge commit)
2351 --after: string # The revision(s) to insert the reverse changes after (can be repeated to create a merge commit)
2352 --insert-before(-B): string # The revision(s) to insert the reverse changes before (can be repeated to create a merge commit)
2353 --before: string # The revision(s) to insert the reverse changes before (can be repeated to create a merge commit)
20282354 --repository(-R): path # Path to repository to operate on
20292355 --ignore-working-copy # Don't snapshot the working copy, and don't update it
20302356 --ignore-immutable # Allow rewriting immutable commits
20312357 --at-operation: string # Operation to load the repo at
20322358 --at-op: string # Operation to load the repo at
20332359 --debug # Enable debug logging
2034 --color: string # When to colorize output (always, never, debug, auto)
2360 --color: string@"nu-complete jj revert color" # When to colorize output
20352361 --quiet # Silence non-primary command output
20362362 --no-pager # Disable the pager
20372363 --config: string # Additional configuration options (can be repeated)
20402366 --help(-h) # Print help (see more with '--help')
2043 # Show the current workspace root directory
2369 def "nu-complete jj root color" [] {
2370 [ "always" "never" "debug" "auto" ]
2371 }
2373 # Show the current workspace root directory (shortcut for `jj workspace root`)
20442374 export extern "jj root" [
20452375 --repository(-R): path # Path to repository to operate on
20462376 --ignore-working-copy # Don't snapshot the working copy, and don't update it
20482378 --at-operation: string # Operation to load the repo at
20492379 --at-op: string # Operation to load the repo at
20502380 --debug # Enable debug logging
2051 --color: string # When to colorize output (always, never, debug, auto)
2381 --color: string@"nu-complete jj root color" # When to colorize output
20522382 --quiet # Silence non-primary command output
20532383 --no-pager # Disable the pager
20542384 --config: string # Additional configuration options (can be repeated)
20572387 --help(-h) # Print help (see more with '--help')
2390 def "nu-complete jj run color" [] {
2391 [ "always" "never" "debug" "auto" ]
2392 }
20602394 # (**Stub**, does not work yet) Run a command across a set of revisions.
20612395 export extern "jj run" [
20622396 shell_command: string # The command to run across all selected revisions
20692403 --at-operation: string # Operation to load the repo at
20702404 --at-op: string # Operation to load the repo at
20712405 --debug # Enable debug logging
2072 --color: string # When to colorize output (always, never, debug, auto)
2406 --color: string@"nu-complete jj run color" # When to colorize output
20732407 --quiet # Silence non-primary command output
20742408 --no-pager # Disable the pager
20752409 --config: string # Additional configuration options (can be repeated)
20782412 --help(-h) # Print help (see more with '--help')
2415 def "nu-complete jj show color" [] {
2416 [ "always" "never" "debug" "auto" ]
2417 }
20812419 # Show commit description and changes in a revision
20822420 export extern "jj show" [
20832421 revision?: string # Show changes in this revision, compared to its parent(s)
20992437 --at-operation: string # Operation to load the repo at
21002438 --at-op: string # Operation to load the repo at
21012439 --debug # Enable debug logging
2102 --color: string # When to colorize output (always, never, debug, auto)
2440 --color: string@"nu-complete jj show color" # When to colorize output
21032441 --quiet # Silence non-primary command output
21042442 --no-pager # Disable the pager
21052443 --config: string # Additional configuration options (can be repeated)
21082446 --help(-h) # Print help (see more with '--help')
2449 def "nu-complete jj sign color" [] {
2450 [ "always" "never" "debug" "auto" ]
2451 }
2453 # Cryptographically sign a revision
2454 export extern "jj sign" [
2455 --revisions(-r): string # What revision(s) to sign
2456 --key: string # The key used for signing
2457 --repository(-R): path # Path to repository to operate on
2458 --ignore-working-copy # Don't snapshot the working copy, and don't update it
2459 --ignore-immutable # Allow rewriting immutable commits
2460 --at-operation: string # Operation to load the repo at
2461 --at-op: string # Operation to load the repo at
2462 --debug # Enable debug logging
2463 --color: string@"nu-complete jj sign color" # When to colorize output
2464 --quiet # Silence non-primary command output
2465 --no-pager # Disable the pager
2466 --config: string # Additional configuration options (can be repeated)
2467 --config-toml: string # Additional configuration options (can be repeated) (DEPRECATED)
2468 --config-file: path # Additional configuration files (can be repeated)
2469 --help(-h) # Print help (see more with '--help')
2470 ]
2472 def "nu-complete jj simplify-parents color" [] {
2473 [ "always" "never" "debug" "auto" ]
2474 }
21112476 # Simplify parent edges for the specified revision(s)
21122477 export extern "jj simplify-parents" [
21132478 --source(-s): string # Simplify specified revision(s) together with their trees of descendants (can be repeated)
21182483 --at-operation: string # Operation to load the repo at
21192484 --at-op: string # Operation to load the repo at
21202485 --debug # Enable debug logging
2121 --color: string # When to colorize output (always, never, debug, auto)
2486 --color: string@"nu-complete jj simplify-parents color" # When to colorize output
21222487 --quiet # Silence non-primary command output
21232488 --no-pager # Disable the pager
21242489 --config: string # Additional configuration options (can be repeated)
21272492 --help(-h) # Print help (see more with '--help')
2495 def "nu-complete jj sparse color" [] {
2496 [ "always" "never" "debug" "auto" ]
2497 }
21302499 # Manage which paths from the working-copy commit are present in the working copy
21312500 export extern "jj sparse" [
21322501 --repository(-R): path # Path to repository to operate on
21352504 --at-operation: string # Operation to load the repo at
21362505 --at-op: string # Operation to load the repo at
21372506 --debug # Enable debug logging
2138 --color: string # When to colorize output (always, never, debug, auto)
2507 --color: string@"nu-complete jj sparse color" # When to colorize output
21392508 --quiet # Silence non-primary command output
21402509 --no-pager # Disable the pager
21412510 --config: string # Additional configuration options (can be repeated)
21442513 --help(-h) # Print help (see more with '--help')
2516 def "nu-complete jj sparse edit color" [] {
2517 [ "always" "never" "debug" "auto" ]
2518 }
21472520 # Start an editor to update the patterns that are present in the working copy
21482521 export extern "jj sparse edit" [
21492522 --repository(-R): path # Path to repository to operate on
21522525 --at-operation: string # Operation to load the repo at
21532526 --at-op: string # Operation to load the repo at
21542527 --debug # Enable debug logging
2155 --color: string # When to colorize output (always, never, debug, auto)
2528 --color: string@"nu-complete jj sparse edit color" # When to colorize output
21562529 --quiet # Silence non-primary command output
21572530 --no-pager # Disable the pager
21582531 --config: string # Additional configuration options (can be repeated)
21612534 --help(-h) # Print help (see more with '--help')
2537 def "nu-complete jj sparse list color" [] {
2538 [ "always" "never" "debug" "auto" ]
2539 }
21642541 # List the patterns that are currently present in the working copy
21652542 export extern "jj sparse list" [
21662543 --repository(-R): path # Path to repository to operate on
21692546 --at-operation: string # Operation to load the repo at
21702547 --at-op: string # Operation to load the repo at
21712548 --debug # Enable debug logging
2172 --color: string # When to colorize output (always, never, debug, auto)
2549 --color: string@"nu-complete jj sparse list color" # When to colorize output
21732550 --quiet # Silence non-primary command output
21742551 --no-pager # Disable the pager
21752552 --config: string # Additional configuration options (can be repeated)
21782555 --help(-h) # Print help (see more with '--help')
2558 def "nu-complete jj sparse reset color" [] {
2559 [ "always" "never" "debug" "auto" ]
2560 }
21812562 # Reset the patterns to include all files in the working copy
21822563 export extern "jj sparse reset" [
21832564 --repository(-R): path # Path to repository to operate on
21862567 --at-operation: string # Operation to load the repo at
21872568 --at-op: string # Operation to load the repo at
21882569 --debug # Enable debug logging
2189 --color: string # When to colorize output (always, never, debug, auto)
2570 --color: string@"nu-complete jj sparse reset color" # When to colorize output
21902571 --quiet # Silence non-primary command output
21912572 --no-pager # Disable the pager
21922573 --config: string # Additional configuration options (can be repeated)
21952576 --help(-h) # Print help (see more with '--help')
2579 def "nu-complete jj sparse set color" [] {
2580 [ "always" "never" "debug" "auto" ]
2581 }
21982583 # Update the patterns that are present in the working copy
21992584 export extern "jj sparse set" [
22002585 --add: path # Patterns to add to the working copy
22062591 --at-operation: string # Operation to load the repo at
22072592 --at-op: string # Operation to load the repo at
22082593 --debug # Enable debug logging
2209 --color: string # When to colorize output (always, never, debug, auto)
2594 --color: string@"nu-complete jj sparse set color" # When to colorize output
22102595 --quiet # Silence non-primary command output
22112596 --no-pager # Disable the pager
22122597 --config: string # Additional configuration options (can be repeated)
22152600 --help(-h) # Print help (see more with '--help')
2603 def "nu-complete jj split color" [] {
2604 [ "always" "never" "debug" "auto" ]
2605 }
22182607 # Split a revision in two
22192608 export extern "jj split" [
22202609 --interactive(-i) # Interactively choose which parts to split
22282617 --at-operation: string # Operation to load the repo at
22292618 --at-op: string # Operation to load the repo at
22302619 --debug # Enable debug logging
2231 --color: string # When to colorize output (always, never, debug, auto)
2620 --color: string@"nu-complete jj split color" # When to colorize output
22322621 --quiet # Silence non-primary command output
22332622 --no-pager # Disable the pager
22342623 --config: string # Additional configuration options (can be repeated)
22372626 --help(-h) # Print help (see more with '--help')
2629 def "nu-complete jj squash color" [] {
2630 [ "always" "never" "debug" "auto" ]
2631 }
22402633 # Move changes from a revision into another revision
22412634 export extern "jj squash" [
22422635 --revision(-r): string # Revision to squash into its parent (default: @)
22552648 --at-operation: string # Operation to load the repo at
22562649 --at-op: string # Operation to load the repo at
22572650 --debug # Enable debug logging
2258 --color: string # When to colorize output (always, never, debug, auto)
2651 --color: string@"nu-complete jj squash color" # When to colorize output
22592652 --quiet # Silence non-primary command output
22602653 --no-pager # Disable the pager
22612654 --config: string # Additional configuration options (can be repeated)
22642657 --help(-h) # Print help (see more with '--help')
2660 def "nu-complete jj status color" [] {
2661 [ "always" "never" "debug" "auto" ]
2662 }
22672664 # Show high-level repo status
22682665 export extern "jj status" [
22692666 ...paths: path # Restrict the status display to these paths
22732670 --at-operation: string # Operation to load the repo at
22742671 --at-op: string # Operation to load the repo at
22752672 --debug # Enable debug logging
2276 --color: string # When to colorize output (always, never, debug, auto)
2673 --color: string@"nu-complete jj status color" # When to colorize output
22772674 --quiet # Silence non-primary command output
22782675 --no-pager # Disable the pager
22792676 --config: string # Additional configuration options (can be repeated)
22822679 --help(-h) # Print help (see more with '--help')
2682 def "nu-complete jj tag color" [] {
2683 [ "always" "never" "debug" "auto" ]
2684 }
22852686 # Manage tags
22862687 export extern "jj tag" [
22872688 --repository(-R): path # Path to repository to operate on
22902691 --at-operation: string # Operation to load the repo at
22912692 --at-op: string # Operation to load the repo at
22922693 --debug # Enable debug logging
2293 --color: string # When to colorize output (always, never, debug, auto)
2694 --color: string@"nu-complete jj tag color" # When to colorize output
22942695 --quiet # Silence non-primary command output
22952696 --no-pager # Disable the pager
22962697 --config: string # Additional configuration options (can be repeated)
22992700 --help(-h) # Print help (see more with '--help')
2703 def "nu-complete jj tag list color" [] {
2704 [ "always" "never" "debug" "auto" ]
2705 }
23022707 # List tags
23032708 export extern "jj tag list" [
23042709 ...names: string # Show tags whose local name matches
23092714 --at-operation: string # Operation to load the repo at
23102715 --at-op: string # Operation to load the repo at
23112716 --debug # Enable debug logging
2312 --color: string # When to colorize output (always, never, debug, auto)
2717 --color: string@"nu-complete jj tag list color" # When to colorize output
23132718 --quiet # Silence non-primary command output
23142719 --no-pager # Disable the pager
23152720 --config: string # Additional configuration options (can be repeated)
23182723 --help(-h) # Print help (see more with '--help')
2726 def "nu-complete jj util color" [] {
2727 [ "always" "never" "debug" "auto" ]
2728 }
23212730 # Infrequently used commands such as for generating shell completions
23222731 export extern "jj util" [
23232732 --repository(-R): path # Path to repository to operate on
23262735 --at-operation: string # Operation to load the repo at
23272736 --at-op: string # Operation to load the repo at
23282737 --debug # Enable debug logging
2329 --color: string # When to colorize output (always, never, debug, auto)
2738 --color: string@"nu-complete jj util color" # When to colorize output
23302739 --quiet # Silence non-primary command output
23312740 --no-pager # Disable the pager
23322741 --config: string # Additional configuration options (can be repeated)
23392748 [ "bash" "elvish" "fish" "nushell" "power-shell" "zsh" ]
2751 def "nu-complete jj util completion color" [] {
2752 [ "always" "never" "debug" "auto" ]
2753 }
23422755 # Print a command-line-completion script
23432756 export extern "jj util completion" [
23442757 shell?: string@"nu-complete jj util completion shell"
23512764 --at-operation: string # Operation to load the repo at
23522765 --at-op: string # Operation to load the repo at
23532766 --debug # Enable debug logging
2354 --color: string # When to colorize output (always, never, debug, auto)
2767 --color: string@"nu-complete jj util completion color" # When to colorize output
23552768 --quiet # Silence non-primary command output
23562769 --no-pager # Disable the pager
23572770 --config: string # Additional configuration options (can be repeated)
23602773 --help(-h) # Print help (see more with '--help')
2776 def "nu-complete jj util config-schema color" [] {
2777 [ "always" "never" "debug" "auto" ]
2778 }
23632780 # Print the JSON schema for the jj TOML config format
23642781 export extern "jj util config-schema" [
23652782 --repository(-R): path # Path to repository to operate on
23682785 --at-operation: string # Operation to load the repo at
23692786 --at-op: string # Operation to load the repo at
23702787 --debug # Enable debug logging
2371 --color: string # When to colorize output (always, never, debug, auto)
2788 --color: string@"nu-complete jj util config-schema color" # When to colorize output
23722789 --quiet # Silence non-primary command output
23732790 --no-pager # Disable the pager
23742791 --config: string # Additional configuration options (can be repeated)
23772794 --help(-h) # Print help (see more with '--help')
2797 def "nu-complete jj util exec color" [] {
2798 [ "always" "never" "debug" "auto" ]
2799 }
23802801 # Execute an external command via jj
23812802 export extern "jj util exec" [
23822803 command: string # External command to execute
23872808 --at-operation: string # Operation to load the repo at
23882809 --at-op: string # Operation to load the repo at
23892810 --debug # Enable debug logging
2390 --color: string # When to colorize output (always, never, debug, auto)
2811 --color: string@"nu-complete jj util exec color" # When to colorize output
23912812 --quiet # Silence non-primary command output
23922813 --no-pager # Disable the pager
23932814 --config: string # Additional configuration options (can be repeated)
23962817 --help(-h) # Print help (see more with '--help')
2820 def "nu-complete jj util gc color" [] {
2821 [ "always" "never" "debug" "auto" ]
2822 }
23992824 # Run backend-dependent garbage collection
24002825 export extern "jj util gc" [
24012826 --expire: string # Time threshold
24052830 --at-operation: string # Operation to load the repo at
24062831 --at-op: string # Operation to load the repo at
24072832 --debug # Enable debug logging
2408 --color: string # When to colorize output (always, never, debug, auto)
2833 --color: string@"nu-complete jj util gc color" # When to colorize output
24092834 --quiet # Silence non-primary command output
24102835 --no-pager # Disable the pager
24112836 --config: string # Additional configuration options (can be repeated)
24142839 --help(-h) # Print help (see more with '--help')
2417 # Print a ROFF (manpage)
2418 export extern "jj util mangen" [
2842 def "nu-complete jj util install-man-pages color" [] {
2843 [ "always" "never" "debug" "auto" ]
2844 }
2846 # Install Jujutsu's manpages to the provided path
2847 export extern "jj util install-man-pages" [
2848 path: path # The path where manpages will installed. An example path might be `/usr/share/man`. The provided path will be appended with `man1`, etc., as appropriate
24192849 --repository(-R): path # Path to repository to operate on
24202850 --ignore-working-copy # Don't snapshot the working copy, and don't update it
24212851 --ignore-immutable # Allow rewriting immutable commits
24222852 --at-operation: string # Operation to load the repo at
24232853 --at-op: string # Operation to load the repo at
24242854 --debug # Enable debug logging
2425 --color: string # When to colorize output (always, never, debug, auto)
2855 --color: string@"nu-complete jj util install-man-pages color" # When to colorize output
24262856 --quiet # Silence non-primary command output
24272857 --no-pager # Disable the pager
24282858 --config: string # Additional configuration options (can be repeated)
24312861 --help(-h) # Print help (see more with '--help')
2864 def "nu-complete jj util markdown-help color" [] {
2865 [ "always" "never" "debug" "auto" ]
2866 }
24342868 # Print the CLI help for all subcommands in Markdown
24352869 export extern "jj util markdown-help" [
24362870 --repository(-R): path # Path to repository to operate on
24392873 --at-operation: string # Operation to load the repo at
24402874 --at-op: string # Operation to load the repo at
24412875 --debug # Enable debug logging
2442 --color: string # When to colorize output (always, never, debug, auto)
2876 --color: string@"nu-complete jj util markdown-help color" # When to colorize output
24432877 --quiet # Silence non-primary command output
24442878 --no-pager # Disable the pager
24452879 --config: string # Additional configuration options (can be repeated)
24522886 [ "repo" "remote-tracking" ]
2889 def "nu-complete jj undo color" [] {
2890 [ "always" "never" "debug" "auto" ]
2891 }
24552893 # Undo an operation (shortcut for `jj op undo`)
24562894 export extern "jj undo" [
24572895 operation?: string # The operation to undo
24622900 --at-operation: string # Operation to load the repo at
24632901 --at-op: string # Operation to load the repo at
24642902 --debug # Enable debug logging
2465 --color: string # When to colorize output (always, never, debug, auto)
2903 --color: string@"nu-complete jj undo color" # When to colorize output
24662904 --quiet # Silence non-primary command output
24672905 --no-pager # Disable the pager
24682906 --config: string # Additional configuration options (can be repeated)
24712909 --help(-h) # Print help (see more with '--help')
2474 # Move changes from a revision's parent into the revision
2475 export extern "jj unsquash" [
2476 --revision(-r): string
2477 --interactive(-i) # Interactively choose which parts to unsquash
2478 --tool: string # Specify diff editor to be used (implies --interactive)
2912 def "nu-complete jj unsign color" [] {
2913 [ "always" "never" "debug" "auto" ]
2914 }
2916 # Drop a cryptographic signature
2917 export extern "jj unsign" [
2918 --revisions(-r): string # What revision(s) to unsign
24792919 --repository(-R): path # Path to repository to operate on
24802920 --ignore-working-copy # Don't snapshot the working copy, and don't update it
24812921 --ignore-immutable # Allow rewriting immutable commits
24822922 --at-operation: string # Operation to load the repo at
24832923 --at-op: string # Operation to load the repo at
24842924 --debug # Enable debug logging
2485 --color: string # When to colorize output (always, never, debug, auto)
2925 --color: string@"nu-complete jj unsign color" # When to colorize output
24862926 --quiet # Silence non-primary command output
24872927 --no-pager # Disable the pager
24882928 --config: string # Additional configuration options (can be repeated)
24912931 --help(-h) # Print help (see more with '--help')
2494 # Stop tracking specified paths in the working copy
2495 export extern "jj untrack" [
2496 ...paths: path # Paths to untrack. They must already be ignored
2497 --repository(-R): path # Path to repository to operate on
2498 --ignore-working-copy # Don't snapshot the working copy, and don't update it
2499 --ignore-immutable # Allow rewriting immutable commits
2500 --at-operation: string # Operation to load the repo at
2501 --at-op: string # Operation to load the repo at
2502 --debug # Enable debug logging
2503 --color: string # When to colorize output (always, never, debug, auto)
2504 --quiet # Silence non-primary command output
2505 --no-pager # Disable the pager
2506 --config: string # Additional configuration options (can be repeated)
2507 --config-toml: string # Additional configuration options (can be repeated) (DEPRECATED)
2508 --config-file: path # Additional configuration files (can be repeated)
2509 --help(-h) # Print help (see more with '--help')
2510 ]
2934 def "nu-complete jj version color" [] {
2935 [ "always" "never" "debug" "auto" ]
2936 }
25122938 # Display version information
25132939 export extern "jj version" [
25172943 --at-operation: string # Operation to load the repo at
25182944 --at-op: string # Operation to load the repo at
25192945 --debug # Enable debug logging
2520 --color: string # When to colorize output (always, never, debug, auto)
2946 --color: string@"nu-complete jj version color" # When to colorize output
25212947 --quiet # Silence non-primary command output
25222948 --no-pager # Disable the pager
25232949 --config: string # Additional configuration options (can be repeated)
25262952 --help(-h) # Print help (see more with '--help')
2955 def "nu-complete jj workspace color" [] {
2956 [ "always" "never" "debug" "auto" ]
2957 }
25292959 # Commands for working with workspaces
25302960 export extern "jj workspace" [
25312961 --repository(-R): path # Path to repository to operate on
25342964 --at-operation: string # Operation to load the repo at
25352965 --at-op: string # Operation to load the repo at
25362966 --debug # Enable debug logging
2537 --color: string # When to colorize output (always, never, debug, auto)
2967 --color: string@"nu-complete jj workspace color" # When to colorize output
25382968 --quiet # Silence non-primary command output
25392969 --no-pager # Disable the pager
25402970 --config: string # Additional configuration options (can be repeated)
25472977 [ "copy" "full" "empty" ]
2980 def "nu-complete jj workspace add color" [] {
2981 [ "always" "never" "debug" "auto" ]
2982 }
25502984 # Add a workspace
25512985 export extern "jj workspace add" [
25522986 destination: string # Where to create the new workspace
25592993 --at-operation: string # Operation to load the repo at
25602994 --at-op: string # Operation to load the repo at
25612995 --debug # Enable debug logging
2562 --color: string # When to colorize output (always, never, debug, auto)
2996 --color: string@"nu-complete jj workspace add color" # When to colorize output
25632997 --quiet # Silence non-primary command output
25642998 --no-pager # Disable the pager
25652999 --config: string # Additional configuration options (can be repeated)
25683002 --help(-h) # Print help (see more with '--help')
3005 def "nu-complete jj workspace forget color" [] {
3006 [ "always" "never" "debug" "auto" ]
3007 }
25713009 # Stop tracking a workspace's working-copy commit in the repo
25723010 export extern "jj workspace forget" [
25733011 ...workspaces: string # Names of the workspaces to forget. By default, forgets only the current workspace
25773015 --at-operation: string # Operation to load the repo at
25783016 --at-op: string # Operation to load the repo at
25793017 --debug # Enable debug logging
2580 --color: string # When to colorize output (always, never, debug, auto)
3018 --color: string@"nu-complete jj workspace forget color" # When to colorize output
25813019 --quiet # Silence non-primary command output
25823020 --no-pager # Disable the pager
25833021 --config: string # Additional configuration options (can be repeated)
25863024 --help(-h) # Print help (see more with '--help')
3027 def "nu-complete jj workspace list color" [] {
3028 [ "always" "never" "debug" "auto" ]
3029 }
25893031 # List workspaces
25903032 export extern "jj workspace list" [
25913033 --repository(-R): path # Path to repository to operate on
25943036 --at-operation: string # Operation to load the repo at
25953037 --at-op: string # Operation to load the repo at
25963038 --debug # Enable debug logging
2597 --color: string # When to colorize output (always, never, debug, auto)
3039 --color: string@"nu-complete jj workspace list color" # When to colorize output
25983040 --quiet # Silence non-primary command output
25993041 --no-pager # Disable the pager
26003042 --config: string # Additional configuration options (can be repeated)
26033045 --help(-h) # Print help (see more with '--help')
3048 def "nu-complete jj workspace rename color" [] {
3049 [ "always" "never" "debug" "auto" ]
3050 }
26063052 # Renames the current workspace
26073053 export extern "jj workspace rename" [
26083054 new_workspace_name: string # The name of the workspace to update to
26123058 --at-operation: string # Operation to load the repo at
26133059 --at-op: string # Operation to load the repo at
26143060 --debug # Enable debug logging
2615 --color: string # When to colorize output (always, never, debug, auto)
3061 --color: string@"nu-complete jj workspace rename color" # When to colorize output
26163062 --quiet # Silence non-primary command output
26173063 --no-pager # Disable the pager
26183064 --config: string # Additional configuration options (can be repeated)
26213067 --help(-h) # Print help (see more with '--help')
3070 def "nu-complete jj workspace root color" [] {
3071 [ "always" "never" "debug" "auto" ]
3072 }
26243074 # Show the current workspace root directory
26253075 export extern "jj workspace root" [
26263076 --repository(-R): path # Path to repository to operate on
26293079 --at-operation: string # Operation to load the repo at
26303080 --at-op: string # Operation to load the repo at
26313081 --debug # Enable debug logging
2632 --color: string # When to colorize output (always, never, debug, auto)
3082 --color: string@"nu-complete jj workspace root color" # When to colorize output
26333083 --quiet # Silence non-primary command output
26343084 --no-pager # Disable the pager
26353085 --config: string # Additional configuration options (can be repeated)
26383088 --help(-h) # Print help (see more with '--help')
3091 def "nu-complete jj workspace update-stale color" [] {
3092 [ "always" "never" "debug" "auto" ]
3093 }
26413095 # Update a workspace that has become stale
26423096 export extern "jj workspace update-stale" [
26433097 --repository(-R): path # Path to repository to operate on
26463100 --at-operation: string # Operation to load the repo at
26473101 --at-op: string # Operation to load the repo at
26483102 --debug # Enable debug logging
2649 --color: string # When to colorize output (always, never, debug, auto)
3103 --color: string@"nu-complete jj workspace update-stale color" # When to colorize output
26503104 --quiet # Silence non-primary command output
26513105 --no-pager # Disable the pager
26523106 --config: string # Additional configuration options (can be repeated)

nushell/scripts/notes.nu

Modified

+1 / −1 text lines

7878 let title = if ($title | is-empty) { input "gimme title: " } else { $title }
7979 let author = 'Oliver Jan Krylow'
8080 # german dates. what can i say...
81 let date = date now | format date "%d/%m%/%Y"
81 let date = date now | format date "%d/%m/%Y"
8282 let tags = if ($tags == null) { [] } else { $tags }
8484 let note_content = new_note $title $author $date $tags $context

topgrade/topgrade.toml

Modified

+0 / −3 text lines

55cleanup = true
66no_self_update = true
8[containers]
9runtime = "podman"
118[commands]
129"TLDR" = "tldr --update"

topgrade/win32.toml

Modified

+9 / −0 text lines

11[misc]
3# FIXME: sudo ist noch nicht erlaubt bei der isp.
4# das sollte entfernt werden, da es nicht funktioniert, wenn ein system frisch ist.
5pre_sudo = true
6sudo_command = "gsudo"
7no_retry = true
8
9disable = ['powershell', 'microsoft_store']
10ignore_failures = ['winget']
11
312[pre_commands]
413"01 Enable Script Execution" = 'powershell -Command "Set-ExecutionPolicy RemoteSigned"'
514"02 Enable Developer Mode" = 'powershell -File "C:\Users\okr\Tools\Enable Developer Mode.ps1"'