{"record":{"id":"9d66a55537892598","repo":"kovidgoyal/kitty","slug":"invalid-quality-specification-quality","errorCode":null,"errorMessage":"Invalid quality specification: {quality}","messagePattern":"Invalid quality specification: (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"kitty/options/utils.py","lineNumber":303,"sourceCode":"def neighboring_window(func: str, rest: str) -> FuncArgsType:\n    rest = rest.lower()\n    rest = {'up': 'top', 'down': 'bottom'}.get(rest, rest)\n    if rest not in ('left', 'right', 'top', 'bottom'):\n        log_error(f'Invalid neighbor specification: {rest}')\n        rest = 'right'\n    return func, [rest]\n\n\n@func_with_args('resize_window')\ndef resize_window(func: str, rest: str) -> FuncArgsType:\n    vals = rest.strip().split(maxsplit=1)\n    if len(vals) > 2:\n        log_error('resize_window needs one or two arguments, using defaults')\n        args = ['wider', 1]\n    else:\n        quality = vals[0].lower()\n        if quality not in ('reset', 'taller', 'shorter', 'wider', 'narrower'):\n            log_error(f'Invalid quality specification: {quality}')\n            quality = 'wider'\n        increment = 1\n        if len(vals) == 2:\n            try:\n                increment = int(vals[1])\n            except Exception:\n                log_error(f'Invalid increment specification: {vals[1]}')\n        args = [quality, increment]\n    return func, args\n\n\n@func_with_args('move_window')\ndef move_window(func: str, rest: str) -> FuncArgsType:\n    rest = rest.lower()\n    rest = {'up': 'top', 'down': 'bottom'}.get(rest, rest)\n    prest: int | str = rest\n    try:\n        prest = int(prest)","sourceCodeStart":285,"sourceCodeEnd":321,"githubUrl":"https://github.com/kovidgoyal/kitty/blob/6d5d0c440603ad9bdf6dcd599f73f6dde21acb44/kitty/options/utils.py#L285-L321","documentation":"The first argument to resize_window is not a recognized resize quality; kitty substitutes 'wider'.","triggerScenarios":"`map f1 resize_window bigger 3` — 'bigger' not in ('reset','taller','shorter','wider','narrower').","commonSituations":"Guessing intuitive names like 'grow'/'shrink'/'bigger' instead of kitty's fixed set.","solutions":["Use one of: reset, taller, shorter, wider, narrower","Check spelling and case (the value is lowercased, so case is forgiving)"],"exampleFix":"# before\nmap f1 resize_window bigger 3\n# after\nmap f1 resize_window wider 3","handlingStrategy":"validation","validationCode":"q = 'taller'\nok = q in ('reset','taller','shorter','wider','narrower')","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Memorize the five quality keywords","Case-insensitive but spelling must match"],"tags":["kitty","config","window-resize","parser"],"backgroundTag":"invalid-config-value","analyzedSha":"6d5d0c440603ad9bdf6dcd599f73f6dde21acb44","analyzedAt":"2026-08-27T14:20:20.142Z","schemaVersion":2},"datasetVersion":"2026-08-27T19:17:21.184Z"}