{"id":13541319,"url":"https://github.com/idanarye/nu_plugin_skim","last_synced_at":"2026-04-12T12:03:32.057Z","repository":{"id":242905566,"uuid":"810855934","full_name":"idanarye/nu_plugin_skim","owner":"idanarye","description":null,"archived":false,"fork":false,"pushed_at":"2025-11-29T23:05:33.000Z","size":435,"stargazers_count":62,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-12-02T04:05:25.158Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/idanarye.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-06-05T13:30:58.000Z","updated_at":"2025-11-29T23:05:28.000Z","dependencies_parsed_at":"2024-06-13T16:19:04.019Z","dependency_job_id":"c885f412-6f2c-47e3-a2fb-7fff65d0caf6","html_url":"https://github.com/idanarye/nu_plugin_skim","commit_stats":null,"previous_names":["idanarye/nu_plugin_skim"],"tags_count":27,"template":false,"template_full_name":null,"purl":"pkg:github/idanarye/nu_plugin_skim","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idanarye%2Fnu_plugin_skim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idanarye%2Fnu_plugin_skim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idanarye%2Fnu_plugin_skim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idanarye%2Fnu_plugin_skim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/idanarye","download_url":"https://codeload.github.com/idanarye/nu_plugin_skim/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idanarye%2Fnu_plugin_skim/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28537495,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T13:04:05.990Z","status":"ssl_error","status_checked_at":"2026-01-18T13:01:44.092Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2024-08-01T10:00:43.780Z","updated_at":"2026-01-18T14:17:32.243Z","avatar_url":"https://github.com/idanarye.png","language":"Rust","readme":"# nu_plugin_skim\n\nThis is a [Nushell](https://nushell.sh/) plugin that adds integrates the [skim](https://github.com/lotabout/skim) fuzzy finder.\n\nThe regular `sk` executable filters lines of text, but the `sk` command added by this plugin can filter Nushell's structured data.\n\n## Installing\n\nInstall the crate using:\n\n```nushell\n\u003e cargo install nu_plugin_skim\n```\n\nThen register the plugin using (this must be done inside Nushell):\n\n```nushell\n\u003e plugin add ~/.cargo/bin/nu_plugin_skim\n```\n\n## Usage\n\nPipe the input of any Nushell command into `sk`:\n\n```nushell\n\u003e ps | sk --format {get name} --preview {}\n```\n\nThis will open the skim TUI, allowing you to select an item from the stream:\n\n```\n                    │╭─────────┬─────────────╮            1/9\n                    ││ pid     │ 4223        │\n                    ││ ppid    │ 3944        │\n\u003e /usr/bin/nu       ││ name    │ /usr/bin/nu │\n  nu                ││ status  │ Running     │\n  nu                ││ cpu     │ 28.78       │\n  nu                ││ mem     │ 37.4 MiB    │\n  nu                ││ virtual │ 1.4 GiB     │\n  nu                │╰─────────┴─────────────╯\n  6/258         5/0 │\n\u003e 'nu               │\n```\n\nThe item will be returned as the same structured Nushell type that was fed into `sk`:\n\n```nushell\n\u003e ps | sk --format {get name} --preview {}\n╭─────────┬─────────────╮\n│ pid     │ 4223        │\n│ ppid    │ 3944        │\n│ name    │ /usr/bin/nu │\n│ status  │ Running     │\n│ cpu     │ 28.57       │\n│ mem     │ 37.8 MiB    │\n│ virtual │ 1.4 GiB     │\n╰─────────┴─────────────╯\n```\n\nOf course, the result of the command can be piped into another command:\n\n```nushell\n\u003e ps | sk --format {get name} --preview {} | kill $in.pid\n```\n\n## Notable flags\n\nnu_plugin_skim aims to repliacte skim's sytnax, but there are some differences to better integrate with Nushell:\n\n- `--multi` / `-m` - this flag works exactly the same as in the regular skim, but unlike the regular skim that always returns text - here `sk` returns structured Nushell data, and this flag changes the type of that data. Without it, the chosen item is returned as is. With it, it gets returned as a list (even if the user only chooses a single item)\n\n  ```nushell\n  \u003e seq 1 10 | sk | describe\n  int\n  \u003e seq 1 10 | sk -m | describe\n  list\u003cint\u003e (stream)\n  ```\n\n- `--format` - this is a flag that the regular skim does not have. It receives a Nushell closure, and pipes the items through that closure before showing them as user selectable rows.\n\n  If the closure returns a complex Nushell data type, it'll be formatted in a notation similar to [Nushell's `debug` command](http://www.nushell.sh/commands/docs/debug.html)\n\n  Note that in skim one would use `--with-nth` for a similar purpose - but the syntax and usage are different enough to warren a different name.\n\n- `--preview` - unlike the regular skim, where `--preview` accepts a string, here `--preview` accepts a Nushell closure. The item under the cursor will get piped into the closure and the result will be displayed inside the preview window.\n\n  If the closure returns a complex Nushell data type, it'll be formatted into a table.\n\n  To display the item as is, use the empty closure `--preview {}`.\n\n- `--bind` - unlike regular `sk` that recieves bindings as a comma-separated list of colon-seperated key-values (e.g. `sk --bind alt-s:down,alt-w:up`), here the bindings are given as a record (e.g. `sk --bind {alt-s: down, alt-w: up}`)\n\n- `--expect` - unlike regular `sk` that receives actions as comma-specified list of keys (e.g. `sk --expect ctrl-v,ctrl-t,alt-s`), here the actions are given as a list of strings (e.g. `sk --expect [ctrl-v, ctrl-t, alt-s]`)\n\n  When this flag is given (even with an empty list), the result will be a record with an `action` field that contains the action (or `null`, if regular `Return` was used) and a `selected` field that contains the selected item (or a list of them, if `-m` / `--multi` was used)\n\n- `--tiebreak` - unlike regular `sk` that receives actions as comma-specified list of criteria, here the criteria are given as a list of strings.\n\n- `--algo` and `--case` - in regular `sk` setting them to an unsupported value will fall back to the default. Here it'll raise an error.\n\n- `--pre-select-items` - unlike regular `sk` where it receives a newline-seperated list, here it receives a Nushell list.\n\n## Defaults via SKIM_DEFAULT_OPTIONS\n\nThis plugin now reads the `SKIM_DEFAULT_OPTIONS` environment variable and treats it as default skim flags (similar to the regular `sk`).\n","funding_links":[],"categories":["Plugins"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidanarye%2Fnu_plugin_skim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fidanarye%2Fnu_plugin_skim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidanarye%2Fnu_plugin_skim/lists"}