{"id":23020640,"url":"https://github.com/dmytruek/argument-text-object","last_synced_at":"2025-09-17T13:04:20.776Z","repository":{"id":120005406,"uuid":"538667276","full_name":"dmyTRUEk/argument-text-object","owner":"dmyTRUEk","description":"Vim plugin for working with function arguments.","archived":false,"fork":false,"pushed_at":"2023-02-06T08:17:46.000Z","size":23,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-08T23:34:23.214Z","etag":null,"topics":["argument","arguments","vim","vim-plugin"],"latest_commit_sha":null,"homepage":"","language":"Vim Script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dmyTRUEk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2022-09-19T19:34:06.000Z","updated_at":"2024-05-15T05:42:25.000Z","dependencies_parsed_at":"2023-06-14T16:30:46.650Z","dependency_job_id":null,"html_url":"https://github.com/dmyTRUEk/argument-text-object","commit_stats":null,"previous_names":["waydown42/argument-text-object","dmytruek/argument-text-object"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dmyTRUEk/argument-text-object","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmyTRUEk%2Fargument-text-object","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmyTRUEk%2Fargument-text-object/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmyTRUEk%2Fargument-text-object/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmyTRUEk%2Fargument-text-object/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmyTRUEk","download_url":"https://codeload.github.com/dmyTRUEk/argument-text-object/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmyTRUEk%2Fargument-text-object/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275599739,"owners_count":25493969,"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","status":"online","status_checked_at":"2025-09-17T02:00:09.119Z","response_time":84,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["argument","arguments","vim","vim-plugin"],"created_at":"2024-12-15T12:14:41.522Z","updated_at":"2025-09-17T13:04:20.771Z","avatar_url":"https://github.com/dmyTRUEk.png","language":"Vim Script","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Argument Text Object\nVim plugin for working with function arguments.\n\nThis plugin (kinda) provides a text-object `a`(argument).\n- `via`, `vaa` - select in/an arg\n- `dia`, `daa` - delete in/an arg\n- `cia`, `caa` - change in/an arg\n- `yia`, `yaa` - yank (copy) in/an arg\n- `]a`, `[a` - jump to next/prev arg\n\nThis plugin does more than simply `f,dT,`,\nbecause it recognizes the inclusion relationship of parentheses.\n\n**⚠ WARNING ⚠:** this plugin is in experimental phase,\nso feature set and provided commands may vary a lot.\n\n\n## Examples\nHere `|` denotes cursor position.\n\n| Explanation           | Text before       | Input                                  | Text after          |\n|-----------------------|-------------------|----------------------------------------|---------------------|\n| Delete an argument    | `foo(ba\\|r, baz)` | press `daa`                            | `foo(\\|baz)`        |\n| Delete in argument    | `foo(ba\\|r, baz)` | press `dia`                            | `foo(\\|, baz)`      |\n| Change in argument    | `foo(ba\\|r, baz)` | press `cia`, type `abc`, press `\u003cesc\u003e` | `foo(abc\\|, baz)`   |\n| Select in argument    | `foo(ba\\|r, baz)` | press `via`                            | `foo(\\|bar\\|, baz)` |\n| Jump to next argument | `foo(ba\\|r, baz)` | press `]a`                             | `foo(bar, \\|baz)`   |\n\n\n## Installation\nJust enable it in your preferable plugin manager.\n\nUsing [vim-plug](https://github.com/junegunn/vim-plug):\n```\nPlug 'dmytruek/argument-text-object'\n```\n\nUsing [packer](https://github.com/wbthomason/packer.nvim):\n```\nuse 'dmytruek/argument-text-object'\n```\n\n\n## Configuration\n### Change or disable keybinds:\nIf you don't like default keybinds, you can disable them:\n```\nlet g:argtextobj_disable_remaps = 1\n```\n\nAnd set your own\n(be sure not to map functions meant for visual mode to normal mode and vice versa):\n```\nxnoremap  aa :\u003cC-U\u003eArgtextobjXaa\u003cCR\u003e\nnnoremap daa :\u003cC-U\u003eArgtextobjNdaa\u003cCR\u003e\nnnoremap caa :\u003cC-U\u003eArgtextobjNcaa\u003cCR\u003e\nnnoremap yaa :\u003cC-U\u003eArgtextobjNyaa\u003cCR\u003e\n\nxnoremap  ia :\u003cC-U\u003eArgtextobjXia\u003cCR\u003e\nnnoremap dia :\u003cC-U\u003eArgtextobjNdia\u003cCR\u003e\nnnoremap cia :\u003cC-U\u003eArgtextobjNcia\u003cCR\u003e\nnnoremap yia :\u003cC-U\u003eArgtextobjNyia\u003cCR\u003e\n\nnnoremap  [a :\u003cC-U\u003eArgtextobjNpa\u003cCR\u003e\nnnoremap  ]a :\u003cC-U\u003eArgtextobjNna\u003cCR\u003e\n```\n\n### Search limit:\nChange search limit:\n```\nlet g:argtextobj_search_limit = 1000\n```\n\n\n## Todo\n- add options to disable certain brackets , e.g. triangle brackets (bc they are used as greater/less symbol) (and other?)\n- select even when cursor is on bracket character\n- select more if some selection already exists (`vaaaa` - select one more argument)\n- select even more if all inside parentheses already selected\n- make `[a` goto begin of prev arg, not end\n- make `ia`, `aa` really text-object, not just binds\n- ? make it a bit smarter, so that it works as expected even when any of `\u003c`,`\u003e`,`\u003c=`,`\u003e=` is in arg, e.g. `func(arg1, x \u003c y, arg2)`\n\nIf you have some other suggestions, feel free to [open an issue](https://github.com/dmyTRUEk/argument-text-object/issues/new).\n\n## Ideas\n- shift args (`\u003ca` - move current arg to left, `\u003ea` - move current arg to right)\n\n\n## Alternatives\n- [PeterRincker/vim-argumentative](https://github.com/PeterRincker/vim-argumentative) - argument text object, move cursor between args, shift args to left/right\n- [hgiesel/vim-motion-sickness](https://github.com/hgiesel/vim-motion-sickness#field-text-objects) - contains motions for arguments in specified brackets\n- [AndrewRadev/sideways.vim](https://github.com/AndrewRadev/sideways.vim) - shift arg to left/right\n- [machakann/vim-swap](https://github.com/machakann/vim-swap) - shift arg to left/right, arg swap mode (ala sub-mode)\n- [mizlan/iswap.nvim](https://github.com/mizlan/iswap.nvim) - interactive swap args mode\n- [vim-scripts/swap-parameters](https://github.com/vim-scripts/swap-parameters) - swap args\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmytruek%2Fargument-text-object","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmytruek%2Fargument-text-object","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmytruek%2Fargument-text-object/lists"}