MCPcopy Create free account
hub / github.com/pot-app/Selection

github.com/pot-app/Selection @1.2.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.2.0 ↗ · + Follow

Get the text selected by the cursor

12 symbols 20 edges 4 files ⚖ GPL-3.0 4 documented · 33% 23 cross-repo links ● updated 2y ago★ 711 open issues

Browse by type

⨍ Functions 12◇ Types & classes 0
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Selection

Get the text selected by the cursor

Example

selection = "1.2.0"
use selection::get_text;

fn main() {
    // Return the selected text on success
    // Otherwise return the empty string
    let text = get_text();
    println!("{}", text);
}

Support Platform

  • [x] Windows
  • [x] MacOS
  • [x] Linux
  • [x] X11
  • [x] Wayland

Implementation details

Windows

  • Automation API
  • Clipboard

MacOS

  • Accessibility API
  • Clipboard

Linux

  • Primary Clipboard
  • X11: x11-clipboard
  • Wayland: wl-clipboard

Core symbols most depended-on inside this repo

—

browse all functions →

Shape

Function 12

Languages

Rust100%

Modules by API surface

src/windows.rs4 symbols
src/macos.rs3 symbols
src/linux.rs3 symbols
src/lib.rs2 symbols

For agents

$ claude mcp add --transport http codehub https://codehub.bot/mcp

One hosted endpoint, no key: your agent can search, read and trace pot-app/Selection and every other graph here. Cursor, Windsurf and other clients →

⬇ download graph artifact

Ask about this repo answers extend the page