{"id":13895368,"url":"https://github.com/gustavo-hms/objetiva","last_synced_at":"2026-04-02T16:01:06.374Z","repository":{"id":54517260,"uuid":"338182878","full_name":"gustavo-hms/objetiva","owner":"gustavo-hms","description":"Some new object selections for Kakoune","archived":false,"fork":false,"pushed_at":"2021-08-29T00:17:25.000Z","size":43,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-28T00:56:56.149Z","etag":null,"topics":["kakoune","lua","plugin"],"latest_commit_sha":null,"homepage":"","language":"KakouneScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gustavo-hms.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}},"created_at":"2021-02-11T23:48:20.000Z","updated_at":"2025-08-18T16:43:45.000Z","dependencies_parsed_at":"2022-08-13T18:21:00.422Z","dependency_job_id":null,"html_url":"https://github.com/gustavo-hms/objetiva","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gustavo-hms/objetiva","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gustavo-hms%2Fobjetiva","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gustavo-hms%2Fobjetiva/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gustavo-hms%2Fobjetiva/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gustavo-hms%2Fobjetiva/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gustavo-hms","download_url":"https://codeload.github.com/gustavo-hms/objetiva/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gustavo-hms%2Fobjetiva/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31309578,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"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":["kakoune","lua","plugin"],"created_at":"2024-08-06T18:02:10.231Z","updated_at":"2026-04-02T16:01:06.356Z","avatar_url":"https://github.com/gustavo-hms.png","language":"KakouneScript","funding_links":[],"categories":["KakouneScript"],"sub_categories":[],"readme":"# Objetiva\n\nObjetiva is a plugin for the [Kakoune](http://kakoune.org/) editor that defines some new [object selections](https://github.com/mawww/kakoune/blob/master/doc/pages/keys.asciidoc#object-selection).\n\n## Usage\n\nTo use it, you first need to require the `objetiva` module:\n\n```kak\nrequire-module objetiva\n```\n\nThen, read the sections bellow to know how to define mappings for its object selections.\n\n## Line object\n\nA line object is defined with the command `objetiva-line`. You may wonder why a line object is needed if we already have the `x` key. Well, the `x` key defines a *movement* whereas `objetiva-line` defines an *object selection*, allowing you to select, for instance, an *inner line* (a line without the surrounding whitespaces), or select to the line end using the `]` key (instead of having to learn yet another key combination like `Gl`).\n\nAlso, if you are in an empty line, the `x` key moves the cursor to the *next line* instead of staying in the current one. This command, on the other hand, makes the cursor stays in the current line. \n\nSuggested mapping:\n\n```kak\nmap global object x '\u003ca-;\u003eobjetiva-line\u003cret\u003e' -docstring line\n```\n\nThat mapping allows you to select a line with `\u003ca-a\u003ex`, or select to the inner line start with `\u003ca-[\u003ex`\n\n## Matching object\n\nA matching object is like the `m` key for object selections. The command `objetiva-matching` selects the text enclosed by matching characters (respecting the built-in option `matching_pairs`).\n\nSuggested mapping:\n\n```kak\nmap global object m '\u003ca-;\u003eobjetiva-matching\u003cret\u003e' -docstring matching\n```\n\nNow, you can use, say, `\u003ca-i\u003em` to select everything inside parentheses (or braces, or whatever is defined by the option `matching_pairs`) but excluding the parentheses themselves, or `\u003ca-a\u003em` to select *including* parentheses. In the same vein, `]m` selects from the cursor to the end of the region enclosed by parentheses.\n\n## Case object\n\nThe command `objetiva-case` selects a segment of a word written in any of the following conventions: camelCase, snake_case and kebab-case. The plugin detects automatically the convention used for each word and behaves accordingly. So, you can have a single file with many case conventions and everything will work as expected.\n\nSuggested mapping:\n\n```kak\nmap global object \u003cminus\u003e '\u003ca-;\u003eobjetiva-case\u003cret\u003e' -docstring case\n```\n\nNow you can use `\u003ca-a\u003e-` to select a segment of a word and `\u003ca-i\u003e-` to select the segment excluding `_` (for snake case words) and `-` (for kebab case words).\n\n## Case movement\n\nAlthough not an object selection, this plugin also defines commands for a *case movement* since it comes in handy. If you define the following mappings:\n\n```kak\nmap global normal \u003cminus\u003e ': objetiva-case-move\u003cret\u003e'\nmap global normal _ ': objetiva-case-expand\u003cret\u003e'\nmap global normal \u003ca-minus\u003e ': objetiva-case-move-previous\u003cret\u003e'\nmap global normal \u003ca-_\u003e ': objetiva-case-expand-previous\u003cret\u003e'\n```\n\nYou can move between segments of words in the forward direction using `\u003cminus\u003e` and in the backward direction using `\u003ca-minus\u003e`. You can also expand selection in the forward direction using `_` and in the backward direction using `\u003ca-_\u003e`.\n\n## Installation\n\nObjetiva requires [luar](https://github.com/gustavo-hms/luar). If you use [Almoxarife](https://github.com/gustavo-hms/almoxarife), you can install both adding this to your `almoxarife.yaml`:\n\n```yaml\nluar:\n  location: https://github.com/gustavo-hms/luar\n\n  objetiva:\n    location: https://github.com/gustavo-hms/objetiva\n    config: |\n      # Suggested mappings\n\n      map global object x '\u003ca-;\u003eobjetiva-line\u003cret\u003e' -docstring line\n      map global object m '\u003ca-;\u003eobjetiva-matching\u003cret\u003e' -docstring matching\n      map global object \u003cminus\u003e '\u003ca-;\u003eobjetiva-case\u003cret\u003e' -docstring case\n      map global normal \u003cminus\u003e ': objetiva-case-move\u003cret\u003e'\n      map global normal _ ': objetiva-case-expand\u003cret\u003e'\n      map global normal \u003ca-minus\u003e ': objetiva-case-move-previous\u003cret\u003e'\n      map global normal \u003ca-_\u003e ': objetiva-case-expand-previous\u003cret\u003e'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgustavo-hms%2Fobjetiva","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgustavo-hms%2Fobjetiva","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgustavo-hms%2Fobjetiva/lists"}