{"id":17846577,"url":"https://github.com/isbadawi/badavi","last_synced_at":"2025-09-21T17:32:07.404Z","repository":{"id":24656938,"uuid":"28067091","full_name":"isbadawi/badavi","owner":"isbadawi","description":"vi-like text editor","archived":false,"fork":false,"pushed_at":"2025-01-06T04:52:12.000Z","size":434,"stargazers_count":15,"open_issues_count":25,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-06T05:22:36.502Z","etag":null,"topics":["c","editor","terminal","text-editor","vim"],"latest_commit_sha":null,"homepage":"","language":"C","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/isbadawi.png","metadata":{"files":{"readme":"README.md","changelog":"history.c","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":"2014-12-16T02:42:25.000Z","updated_at":"2025-01-06T04:52:15.000Z","dependencies_parsed_at":"2024-10-27T22:28:39.823Z","dependency_job_id":"a36a37ce-34f9-43fd-80a5-3262f375205e","html_url":"https://github.com/isbadawi/badavi","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/isbadawi%2Fbadavi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isbadawi%2Fbadavi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isbadawi%2Fbadavi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isbadawi%2Fbadavi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/isbadawi","download_url":"https://codeload.github.com/isbadawi/badavi/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233678663,"owners_count":18712982,"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":["c","editor","terminal","text-editor","vim"],"created_at":"2024-10-27T21:40:24.131Z","updated_at":"2025-09-21T17:32:02.090Z","avatar_url":"https://github.com/isbadawi.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# badavi\n\n[![Build Status](https://github.com/isbadawi/badavi/workflows/CI/badge.svg)](https://github.com/isbadawi/badavi/actions)\n\n`badavi` is a vi-like terminal mode text editor, implemented in C and using the\n[`termbox`](https://github.com/tomas/termbox) library to draw to the terminal.\n\nIt's meant to be a learning exercise and fun project to hack on rather than a\nserious day-to-day editor, although who knows where it'll end up.\n\n### Features supported so far\n\n* Normal, insert, and visual modes.\n\n* Motions -- `h`, `j`, `k`, `l`, `0`, `$`, `^`, `{`, `}`, `b`, `B`, `w`, `W`,\n`e`, `E`, `G`, `g_`, `ge`, `gE`, `gg`, `%`, and more. Motions can be prefixed\nwith an optional count.\n\n* `:` commands -- `:w [path]`, `:wq`, `:q`, `:e path` and more.\n\n* Split windows with `:split` (horizontal) and `:vsplit` (vertical). You can\nnavigate between them with `\u003cC-w\u003e hjkl`, resize the current window with\n`\u003cC-w\u003e +` and `\u003cC-w\u003e -`, and equalize the layout with `\u003cC-w\u003e =`.\n\n* Delete (`d`), change (`c`) and yank (`y`) operators, which can be applied to\nany of the motions, or the visual mode selection. (Text objects aren't\nimplemented yet). The affected region is saved into the unnamed register, used\nby `p` to paste text. Named registers from `a` to `z` are also implemented, and\ncan be specified by prefixing the operator (or `p`) with `\"a` through `\"z`.\n\n* Undo (`u`) and redo (`\u003cc-r\u003e`) (only single-level for now, unlike vim).\n\n* `ctags` support -- on startup badavi looks for a tags file called `tags` in\nthe current directory (`'tags'` option not supported yet). The `:tag` command\njumps to the specified tag, and `\u003cc-]\u003e` jumps to the tag of the word under\nthe cursor. `\u003cc-t\u003e` and `:tag` can be used to walk up and down the tag stack.\nThe `-t` command line option can also be passed in to start editing at the\ngiven tag, as in e.g. `badavi -t main`.\n\n* A small subset of the options are implemented. You can manipulate them with\n`:set`, `:setlocal` and `:setglobal`. These commands accept a similar syntax\nas vim, e.g. `:set number`, `:set number!`, `:set nonumber`, `:set number?`,\netc. Options can be read from a file with `:source path`. At startup a file\ncalled `~/.badavimrc` is sourced.\n\n* Search forwards with `/`, backwards with `?`. Standard POSIX regexes are\nused, so the syntax is not exactly the same as vim's. For instance, word\nboundaries are specified with `[[:\u003c:]]` and `[[:\u003e:]]` instead of `\\\u003c` and\n`\\\u003e`. `n` and `N` can be used to cycle through matches. `*` and `#` can be\nused to search forwards or backwards for the next occurrence of the word\nunder the cursor. Searching is a motion, so it works with the operators. The\n`'incsearch'` and `'hlsearch'` options are also implemented.\n\n### Building\n\nJust run `make`.\n\n### License\n\nMIT -- see `LICENSE` file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisbadawi%2Fbadavi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fisbadawi%2Fbadavi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisbadawi%2Fbadavi/lists"}