{"id":16935982,"url":"https://github.com/knu/zsh-shell-word-at-point","last_synced_at":"2025-04-11T19:03:38.078Z","repository":{"id":34751725,"uuid":"38732419","full_name":"knu/zsh-shell-word-at-point","owner":"knu","description":"zle function to get a shell word at point","archived":false,"fork":false,"pushed_at":"2024-09-11T09:26:35.000Z","size":10,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-25T14:51:17.022Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/knu.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},"funding":{"github":"knu"}},"created_at":"2015-07-08T04:46:26.000Z","updated_at":"2024-03-11T06:15:08.000Z","dependencies_parsed_at":"2024-03-10T15:30:52.737Z","dependency_job_id":"9f83f8d0-6413-4c82-8f16-fbe278d45956","html_url":"https://github.com/knu/zsh-shell-word-at-point","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knu%2Fzsh-shell-word-at-point","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knu%2Fzsh-shell-word-at-point/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knu%2Fzsh-shell-word-at-point/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knu%2Fzsh-shell-word-at-point/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/knu","download_url":"https://codeload.github.com/knu/zsh-shell-word-at-point/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248465304,"owners_count":21108243,"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":[],"created_at":"2024-10-13T20:55:48.365Z","updated_at":"2025-04-11T19:03:38.020Z","avatar_url":"https://github.com/knu.png","language":"Shell","funding_links":["https://github.com/sponsors/knu"],"categories":[],"sub_categories":[],"readme":"shell-word-at-point for zsh\n===========================\n\nSynopsis\n--------\n\n* shell-word-at-point - zle function to get a shell word at point\n\nDescription\n-----------\n\nUnless I am missing something, zsh does not provide the \"ffap\"\n(find-file-at-point) functionality out of the box.  This library\nprovides the following functions to fill the needs.\n\n- `shell-word-at-point` sets the global variable `shell_word` to the\n  raw shell word at point and `shell_word_position` to the zero-based\n  index of where it starts.\n\n- `copy-whole-shell-word` copies the shell word at point as kill.\n\n- `kill-whole-shell-word` kills the shell word at point.\n\n- `edit-file-at-point` invokes `EDITOR` (default: `vi`) passing a file\n  name at point.\n\n- `view-file-at-point` invokes `PAGER` (default: `more`) passing a\n  file name at point.\n\n- `run-shell-word-at-point` opens a new command line with only the\n  current shell word set, pushing the whole command line with\n  `push-line`.\n\nAfter closing `EDITOR` or `PAGER`, you will be back on the command\nline exactly with the previous status.\n\nHow to set up\n-------------\n\nPut the file `shell-word-at-point` somewhere in your `$fpath` and add\nthese lines to your `.zshrc`:\n\n    autoload -Uz shell-word-at-point\n    shell-word-at-point\n\nHere's example bindings for Emacs users:\n\n    bindkey '^[^W' copy-whole-shell-word\n    bindkey '^[^K' kill-whole-shell-word\n    bindkey '^X^F' edit-file-at-point\n    bindkey '^X^R' view-file-at-point\n    bindkey '^[!' run-shell-word-at-point\n\nLicense\n-------\n\nCopyright (c) 2015-2024 Akinori MUSHA\n\nLicensed under the 2-clause BSD license.\nSee `LICENSE` for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknu%2Fzsh-shell-word-at-point","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknu%2Fzsh-shell-word-at-point","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknu%2Fzsh-shell-word-at-point/lists"}