View on GitHub

cat-incremental-search-filter

cat-incremental-search-filter

cat-incremental-search-filter

Windows named pipe based incremental search filter server and client.

状況

agentに生成させた直後です

動作確認はこれから

今後のロードマップ

スコープ外

Features

Requirements

Installation

pip install -r requirements.txt

Configuration

Edit config.toml to configure the server:

[pipe]
name = "\\\\.\\pipe\\cat_incremental_search_filter"

[encoding]
default = "utf-8"

[search]
case_sensitive = false

Usage

Server

Start the server:

python src/server.py --config-filename config.toml

The server will:

  1. Listen on the configured named pipe
  2. Accept connections from clients
  3. Receive an input filename
  4. Perform incremental search filtering as the user types
  5. Send back the currently selected line after each keystroke

Test Client

Start the test client (in a separate terminal):

python src/client.py --config-filename config.toml

The client will:

  1. Connect to the server via named pipe
  2. Send its own source filename to the server
  3. Display a search input field
  4. Update the window title with the currently selected line as you type

Protocol

The server and client communicate via JSON messages:

Initialize

{"type": "init", "filename": "path/to/file.txt"}

Response:

{"status": "ok", "line": "first line"}
{"type": "search", "pattern": "search text"}

Response:

{"status": "ok", "line": "matched line"}

Move Selection

{"type": "move", "delta": 1}

Response:

{"status": "ok", "line": "new selected line"}

License

MIT License - See LICENSE file for details