{"id":30004388,"url":"https://github.com/phrmendes/todotxt.nvim","last_synced_at":"2026-01-18T04:45:42.733Z","repository":{"id":270236739,"uuid":"909717012","full_name":"phrmendes/todotxt.nvim","owner":"phrmendes","description":"A todo.txt plugin for Neovim.","archived":false,"fork":false,"pushed_at":"2025-10-02T00:22:19.000Z","size":77,"stargazers_count":31,"open_issues_count":1,"forks_count":6,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-02T02:30:56.239Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Lua","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/phrmendes.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-12-29T15:19:09.000Z","updated_at":"2025-10-02T00:22:22.000Z","dependencies_parsed_at":"2025-04-24T00:21:40.509Z","dependency_job_id":"34949a68-c057-4a61-a1c0-d9b23ad5e86e","html_url":"https://github.com/phrmendes/todotxt.nvim","commit_stats":null,"previous_names":["phrmendes/todotxt.nvim"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/phrmendes/todotxt.nvim","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phrmendes%2Ftodotxt.nvim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phrmendes%2Ftodotxt.nvim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phrmendes%2Ftodotxt.nvim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phrmendes%2Ftodotxt.nvim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phrmendes","download_url":"https://codeload.github.com/phrmendes/todotxt.nvim/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phrmendes%2Ftodotxt.nvim/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28530152,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"online","status_checked_at":"2026-01-18T02:00:07.578Z","response_time":98,"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":[],"created_at":"2025-08-05T07:02:26.782Z","updated_at":"2026-01-18T04:45:42.724Z","avatar_url":"https://github.com/phrmendes.png","language":"Lua","readme":"# todotxt.nvim\n\nA lua version of [`todotxt.vim`](https://github.com/freitass/todo.txt-vim) with enhanced functionality for managing todo.txt files in Neovim.\n\n## Features\n\n- **File Management**: Toggle between todo.txt and done.txt files in floating windows\n- **Task Operations**: Mark tasks as complete/incomplete, cycle task priorities (A-C)\n- **New Task Creation**: Quick task capture with automatic date formatting\n- **Task Organization**: Multiple sorting options (priority, context, project, due date)\n- **Task Movement**: Automatically move completed tasks to done.txt file\n- **Ghost Text**: Visual priority hints with customizable mappings and toggle support\n- **Treesitter Support**: Enhanced syntax highlighting with todotxt parser\n\n## Installation\n\nUsing [`mini.deps`](https://github.com/echasnovski/mini.deps):\n\n```lua\nMiniDeps.now(function()\n  MiniDeps.add({ source = \"phrmendes/todotxt.nvim\" })\n\n  require(\"todotxt\").setup({\n    todotxt = vim.env.HOME .. \"/Documents/notes/todo.txt\",\n    donetxt = vim.env.HOME .. \"/Documents/notes/done.txt\",\n    ghost_text = {\n      enable = true,\n      mappings = {\n        [\"(A)\"] = \"now\",\n        [\"(B)\"] = \"next\",\n        [\"(C)\"] = \"today\",\n      },\n    },\n  })\nend)\n```\n\nUsing [`lazy.nvim`](https://lazy.folke.io/installation):\n\n```lua\nreturn {\n  \"phrmendes/todotxt.nvim\",\n  cmd = { \"TodoTxt\", \"DoneTxt\" },\n  opts = {\n    todotxt = \"path/to/the/todo.txt\",\n    donetxt = \"path/to/the/done.txt\",\n    ghost_text = {\n      enable = true,\n      mappings = {\n        [\"(A)\"] = \"now\",\n        [\"(B)\"] = \"next\",\n        [\"(C)\"] = \"today\",\n      },\n    },\n  },\n}\n```\n\nAdd these options:\n\n```lua\nvim.filetype.add({\n  filename = {\n    [\"todo.txt\"] = \"todotxt\",\n    [\"done.txt\"] = \"todotxt\",\n  },\n})\n```\n\nSuggested keybindings:\n\n```lua\nvim.keymap.set(\"n\", \"\u003cleader\u003etn\", \"\u003ccmd\u003eTodoTxt new\u003ccr\u003e\", { desc = \"New todo entry\" })\nvim.keymap.set(\"n\", \"\u003cleader\u003ett\", \"\u003ccmd\u003eTodoTxt\u003ccr\u003e\", { desc = \"Toggle todo.txt\" })\nvim.keymap.set(\"n\", \"\u003cleader\u003etd\", \"\u003ccmd\u003eDoneTxt\u003ccr\u003e\", { desc = \"Toggle done.txt\" })\nvim.keymap.set(\"n\", \"\u003cleader\u003etg\", \"\u003ccmd\u003eTodoTxt ghost\u003ccr\u003e\", { desc = \"Toggle ghost text\" })\nvim.keymap.set(\"n\", \"\u003ccr\u003e\", \"\u003cPlug\u003e(TodoTxtToggleState)\", { desc = \"Toggle task state\" })\nvim.keymap.set(\"n\", \"\u003cc-c\u003en\", \"\u003cPlug\u003e(TodoTxtCyclePriority)\", { desc = \"Cycle priority\" })\nvim.keymap.set(\"n\", \"\u003cleader\u003etm\", \"\u003cPlug\u003e(TodoTxtMoveDone)\", { desc = \"Move done tasks\" })\nvim.keymap.set(\"n\", \"\u003cleader\u003etss\", \"\u003cPlug\u003e(TodoTxtSortTasks)\", { desc = \"Sort tasks (default)\" })\nvim.keymap.set(\"n\", \"\u003cleader\u003etsp\", \"\u003cPlug\u003e(TodoTxtSortByPriority)\", { desc = \"Sort by priority\" })\nvim.keymap.set(\"n\", \"\u003cleader\u003etsc\", \"\u003cPlug\u003e(TodoTxtSortByContext)\", { desc = \"Sort by context\" })\nvim.keymap.set(\"n\", \"\u003cleader\u003etsP\", \"\u003cPlug\u003e(TodoTxtSortByProject)\", { desc = \"Sort by project\" })\nvim.keymap.set(\"n\", \"\u003cleader\u003etsd\", \"\u003cPlug\u003e(TodoTxtSortByDueDate)\", { desc = \"Sort by due date\" })\n```\n\nThis plugin works without dependencies, but for enhanced functionality (like syntax highlighting), the [`nvim-treesitter`](https://github.com/nvim-treesitter/nvim-treesitter) plugin with the [`todotxt`](https://github.com/arnarg/tree-sitter-todotxt) parser is recommended:\n\n```lua\nrequire(\"nvim-treesitter.configs\").setup({\n  ensure_installed = { \"todotxt\" },\n  highlight = { enable = true },\n})\n```\n\nThe default path for `todo.txt` is `~/Documents/todo.txt`. Check the [help file](./doc/todotxt.txt) for more information.\n\n## Ghost Text Feature\n\nThe ghost text feature displays visual hints next to tasks based on their priority levels. This can be customized with your own mappings:\n\n```lua\nghost_text = {\n  enable = true,\n  mappings = {\n    [\"(A)\"] = \"now\",      -- High priority tasks\n    [\"(B)\"] = \"next\",     -- Medium priority tasks\n    [\"(C)\"] = \"today\",    -- Lower priority tasks\n    [\"(D)\"] = \"tomorrow\", -- Even lower priority\n    [\"(E)\"] = \"this week\",\n    [\"(F)\"] = \"next week\",\n  },\n  prefix = \" \",           -- Text prefix\n  highlight = \"Comment\",  -- Highlight group\n}\n```\n\nYou can toggle ghost text on/off using `:TodoTxt ghost` or the suggested keybinding.\n\n## Commands\n\n- `:TodoTxt` - Toggle todo.txt file in floating window\n- `:TodoTxt new` - Create a new todo entry\n- `:TodoTxt ghost` - Toggle ghost text display\n- `:DoneTxt` - Toggle done.txt file in floating window\n\n## References\n\n- [`todo.txt`](https://github.com/todotxt/todo.txt)\n","funding_links":[],"categories":["Note Taking"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphrmendes%2Ftodotxt.nvim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphrmendes%2Ftodotxt.nvim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphrmendes%2Ftodotxt.nvim/lists"}