{"id":13682208,"url":"https://github.com/TravonteD/org-capture-filetype","last_synced_at":"2025-04-30T07:30:47.667Z","repository":{"id":119347290,"uuid":"450170430","full_name":"TravonteD/org-capture-filetype","owner":"TravonteD","description":"A nvim-orgmode plugin that enables custom filetypes in capture templates","archived":false,"fork":false,"pushed_at":"2023-03-05T05:09:36.000Z","size":7,"stargazers_count":14,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-08-02T13:33:50.561Z","etag":null,"topics":["neovim","neovim-plugin","orgmode","orgmode-nvim"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TravonteD.png","metadata":{"files":{"readme":"README.org","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}},"created_at":"2022-01-20T16:20:44.000Z","updated_at":"2024-06-28T11:18:38.000Z","dependencies_parsed_at":"2023-07-22T00:45:34.563Z","dependency_job_id":null,"html_url":"https://github.com/TravonteD/org-capture-filetype","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/TravonteD%2Forg-capture-filetype","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TravonteD%2Forg-capture-filetype/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TravonteD%2Forg-capture-filetype/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TravonteD%2Forg-capture-filetype/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TravonteD","download_url":"https://codeload.github.com/TravonteD/org-capture-filetype/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224201899,"owners_count":17272661,"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":["neovim","neovim-plugin","orgmode","orgmode-nvim"],"created_at":"2024-08-02T13:01:42.226Z","updated_at":"2024-11-12T01:31:18.783Z","avatar_url":"https://github.com/TravonteD.png","language":"Lua","funding_links":[],"categories":["Lua"],"sub_categories":[],"readme":"* org-capture-filetype\nA plugin that adds custom filetypes to orgmode captures\n** Why?\norgmode capture templates are my most used feature. \nI use it daily for journaling, bookmarking, task management, etc.\nOne thing that I also like to use it for is capturing ledger entries, \nbut since the templates all use the =org= filetype for capture I'd lose out on my completion and formatting.\nSo I wrote this plugin so that I could have the full capability of my ledger config when capturing.\n\n*** Usage\nThis plugins replaces the default =open_template= method in nvim-orgmode.\nSo it must be required /after/ your orgmode configuration.\n\n#+begin_src lua\nrequire('orgmode').setup(opts)\nrequire('org-capture-filetype')\n#+end_src\n\nAdding a filetype to a template is as simple as adding a =filetype= key.\nHere's my ledger template for example (I use fennel, but it should be easy to understand)\n\n#+begin_src fennel\n{:description \"Ledger Entry\"\n :template \"\\n%\u003c%m-%d\u003e %^{Description}\\n    %?\"\n :target (string.format \"~/.local/ledger/%s.ledger\" (vim.fn.strftime \"%Y-%m\"))\n :filetype :ledger}\n#+end_src\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTravonteD%2Forg-capture-filetype","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FTravonteD%2Forg-capture-filetype","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTravonteD%2Forg-capture-filetype/lists"}