SLOPSHOPPER

hide-cycle-hint

Removes the '(shift+tab to cycle)' text from the prompt footer hint

newspinner
v0.1.0no licenseupdated 2026-10-16photroph/dotfiles/.claude/mods/hide-cycle-hint
A shopper browsing a rack in a slop shop
Source 1 files
hooks/register.tsx 17 lines
1import type { Register } from 'claude-code'
2
3const CYCLE = /\s*\(shift\+tab to cycle\)/gi
4const DANGLING = /^[\s·•・]+|[\s·•・]+$/g
5
6export const register: Register = on => {
7  on('ui.render', { component: 'PromptHint' }, ($, e, next) => {
8    const hint = e.props.hint.replace(CYCLE, '').replace(DANGLING, '')
9
10    if (hint === e.props.hint) {
11      return next(e)
12    }
13
14    return next({ ...e, props: { ...e.props, hint } })
15  })
16}
17