{"id":13541145,"url":"https://github.com/FMotalleb/nu_plugin_clipboard","last_synced_at":"2025-04-02T08:30:57.065Z","repository":{"id":206971346,"uuid":"718118684","full_name":"FMotalleb/nu_plugin_clipboard","owner":"FMotalleb","description":"A nushell plugin to copy text into clipboard or get text from it. supports json\u003c-\u003eobject/table conversion out of box","archived":false,"fork":false,"pushed_at":"2025-03-21T10:31:53.000Z","size":159,"stargazers_count":52,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-29T14:08:36.463Z","etag":null,"topics":["clipboard-manager","nu-plugin"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FMotalleb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-13T12:24:18.000Z","updated_at":"2025-03-21T10:31:57.000Z","dependencies_parsed_at":"2023-11-18T06:24:11.762Z","dependency_job_id":"0865573c-800a-4746-b37e-34c3eb6d6c6d","html_url":"https://github.com/FMotalleb/nu_plugin_clipboard","commit_stats":null,"previous_names":["fmotalleb/nu_plugin_clipboard"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FMotalleb%2Fnu_plugin_clipboard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FMotalleb%2Fnu_plugin_clipboard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FMotalleb%2Fnu_plugin_clipboard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FMotalleb%2Fnu_plugin_clipboard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FMotalleb","download_url":"https://codeload.github.com/FMotalleb/nu_plugin_clipboard/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246781920,"owners_count":20832934,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clipboard-manager","nu-plugin"],"created_at":"2024-08-01T10:00:39.525Z","updated_at":"2025-04-02T08:30:57.054Z","avatar_url":"https://github.com/FMotalleb.png","language":"Rust","funding_links":[],"categories":["Rust","Plugins"],"sub_categories":[],"readme":"# 📋 nu_plugin_clipboard\n\nA [nushell](https://www.nushell.sh/) plugin for interacting with the clipboard, allowing you to copy/paste text, objects, and tables.\n\n## ✨ Features\n\n- **`clipboard copy`**: Copies input text to the clipboard.\n  - **Daemon Behavior:** Since version **0.100.1**, the daemon is always enabled on Linux. To disable it, set:\n    ```bash\n    $env.config.plugins.clipboard.NO_DAEMON = true\n    ```\n  - To make this setting permanent, add it to your `config env`. (I do not recommend changing this unless needed, please create an issue) \n\n- **`clipboard paste`**: Retrieves the current clipboard content.\n\n## 📌 Usage Examples\n\n### Copying a string (supports only strings for now)\n```bash\necho \"test value\" | clipboard copy \n```\n\n### Using clipboard content\n```bash\nclipboard paste | echo $in\n```\n\n### Copying tables and objects\n- Tables and objects are internally converted to **JSON**.\n- When pasting, `clipboard paste` tries to parse JSON into a table or object.\n- If parsing fails, the content is returned as a string.\n\n```bash\n$env | clipboard copy\nclipboard paste\n\nps | clipboard copy\nclipboard paste\n```\n\n## 🔧 Installation\n\n### 🚀 Recommended: Using [nupm](https://github.com/nushell/nupm)\nThis method automatically handles dependencies and features:\n```bash\ngit clone https://github.com/FMotalleb/nu_plugin_clipboard.git\nnupm install --path nu_plugin_clipboard -f\n```\n\n### ⚙️ Supported Features\n- **`use-wayland`**: Prioritizes the Wayland API, but falls back to X11 if needed.\n- **`enforce-daemon`**: _(Deprecated)_ Now always enabled on Linux. Disable with:\n  ```bash\n  $env.config.plugins.clipboard.NO_DAEMON = true\n  ```\n\n### 🛠️ Manual Compilation\n```bash\ngit clone https://github.com/FMotalleb/nu_plugin_clipboard.git\ncd nu_plugin_clipboard\ncargo build -r\nplugin add target/release/nu_plugin_clipboard\n```\n\n### 📦 Install via Cargo (using git)\n```bash\ncargo install --git https://github.com/FMotalleb/nu_plugin_clipboard.git\nplugin add ~/.cargo/bin/nu_plugin_clipboard\n```\n\n### 📦 Install via Cargo (crates.io) _Not Recommended_\n* Since I live in Iran and crates.io won't let me update my packages like a normal person, most of the time crates.io is outdated.\n```bash\ncargo install nu_plugin_clipboard\nplugin add ~/.cargo/bin/nu_plugin_clipboard\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFMotalleb%2Fnu_plugin_clipboard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FFMotalleb%2Fnu_plugin_clipboard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFMotalleb%2Fnu_plugin_clipboard/lists"}