Hi, thanks for the great project.
cs TUI mode make me quite happy, but sometimes there is this regex toothpick syntax that I want to reuse instead of retyping it. For example:
> cs '/data.*code/'
# etc...
cs "database" --only-code # Ignore matches in comments/docs
cs "FIXME" --only-comments # Ignore matches in code/strings
cs "error" --only-strings
> cs # now we are forced to retype that pattern again for TUI interactive session.
It can help me quickly find patterns between correlated codebase or git repo with plain text code-like data (something like kicad_sch/kicad_pcb which is a bunch of s-expression, or YAML/JSON/CSV those files), in an interactive manner.
If this function is already there, really sorry for bothering you with this FR ticket.
Regards,
Related information
Version info
> cs --version
cs version 3.1.0
> go version -m .\cs.exe
.\cs.exe: go1.26.3
path github.com/boyter/cs/v3
mod github.com/boyter/cs/v3 v3.0.0-20260518004205-99b21f2ff601
dep github.com/agnivade/levenshtein v1.2.2-0.20250519083737-420867539855
dep github.com/atotto/clipboard v0.1.4
dep github.com/aymanbagabas/go-osc52/v2 v2.0.1
dep github.com/bahlo/generic-list-go v0.2.0
dep github.com/boyter/go-string v1.0.6-0.20260306001355-d32948e4ea00
dep github.com/boyter/gocodewalker v1.5.2-0.20260303001053-b0f7f6afdc70
dep github.com/boyter/scc/v3 v3.6.1-0.20260217234719-b35b9d41c964
dep github.com/boyter/simplecache v0.0.0-20250401093414-ea7f89017ab4
dep github.com/buger/jsonparser v1.1.1
dep github.com/charmbracelet/bubbles v0.16.1
dep github.com/charmbracelet/bubbletea v0.24.2
dep github.com/charmbracelet/lipgloss v0.9.1
dep github.com/clipperhouse/uax29/v2 v2.2.0
dep github.com/containerd/console v1.0.4-0.20230313162750-1ae8d489ac81
dep github.com/danwakefield/fnmatch v0.0.0-20160403171240-cbb64ac3d964
dep github.com/fatih/color v1.15.0
dep github.com/google/uuid v1.6.0
dep github.com/inconshreveable/mousetrap v1.1.0
dep github.com/invopop/jsonschema v0.13.0
dep github.com/json-iterator/go v1.1.12
dep github.com/lucasb-eyer/go-colorful v1.2.0
dep github.com/mailru/easyjson v0.7.7
dep github.com/mark3labs/mcp-go v0.44.0
dep github.com/mattn/go-colorable v0.1.13
dep github.com/mattn/go-isatty v0.0.19
dep github.com/mattn/go-localereader v0.0.1
dep github.com/mattn/go-runewidth v0.0.19
dep github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd
dep github.com/modern-go/reflect2 v1.0.2
dep github.com/muesli/ansi v0.0.0-20211018074035-2e021307bc4b
dep github.com/muesli/cancelreader v0.2.2
dep github.com/muesli/reflow v0.3.0
dep github.com/muesli/termenv v0.15.2
dep github.com/spf13/cast v1.7.1
dep github.com/spf13/cobra v1.10.1
dep github.com/spf13/pflag v1.0.10
dep github.com/wk8/go-ordered-map/v2 v2.1.8
dep github.com/yosida95/uritemplate/v3 v3.0.2
dep go.yaml.in/yaml/v2 v2.4.3
dep golang.org/x/crypto v0.45.0
dep golang.org/x/sync v0.18.0
dep golang.org/x/sys v0.38.0
dep golang.org/x/term v0.37.0
dep golang.org/x/text v0.31.0
dep gopkg.in/yaml.v3 v3.0.1
build -buildmode=exe
build -compiler=gc
build -ldflags="-s -w -X main.Version=99b21f2ff601f8e93c97c3859a349df2603eb51c -X main.Revision=99b21f2"
build -pgo=D:\ProgramDataD\MiscLang\07.04-Golang\rarely\cs\default.pgo
build CGO_ENABLED=0
build DefaultGODEBUG=cryptocustomrand=1,tlssecpmlkem=0,urlstrictcolons=0
build GOAMD64=v1
build GOARCH=amd64
build GOOS=windows
build vcs=git
build vcs.modified=false
build vcs.revision=99b21f2ff601f8e93c97c3859a349df2603eb51c
build vcs.time=2026-05-18T00:42:05Z
User environment
> fastfetch -l none -s "OS:Kernel:Shell:WM:Terminal:CPU:Memory:Swap"
OS: Windows 11 Pro Insider Preview (25H2) x86_64
Kernel: WIN32_NT 10.0.26300.8493
Shell: PowerShell 7.7.0
WM: Desktop Window Manager 10.0.26100.8493
Terminal: Windows Terminal Preview 1.25.1322.0
CPU: 12th Gen Intel(R) Core(TM) i7-12850HX (24) @ 4.80 GHz
Memory: 13.77 GiB / 31.69 GiB (43%)
Swap: 126.16 MiB / 4.75 GiB (3%)
Hi, thanks for the great project.
csTUI mode make me quite happy, but sometimes there is this regex toothpick syntax that I want to reuse instead of retyping it. For example:It can help me quickly find patterns between correlated codebase or git repo with plain text code-like data (something like
kicad_sch/kicad_pcbwhich is a bunch of s-expression, or YAML/JSON/CSV those files), in an interactive manner.If this function is already there, really sorry for bothering you with this FR ticket.
Regards,
Related information
Version info
User environment