{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":553200,"defaultBranch":"main","name":"command-t","ownerLogin":"wincent","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2010-03-08T22:11:39.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/7074?v=4","public":true,"private":false,"isOrgOwned":false},"refInfo":{"name":"","listCacheKey":"v0:1677706606.411071","currentOid":""},"activityList":{"items":[{"before":"b8bcea8d40866bfa33a7f7b24979781039bfc76f","after":"e4618dc08695fbf3a1171f12e0fc803ac4a3a19b","ref":"refs/heads/master","pushedAt":"2024-03-28T23:00:47.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"wincent","name":"Greg Hurrell","path":"/wincent","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/7074?s=80&v=4"},"commit":{"message":"chore: update links","shortMessageHtmlLink":"chore: update links"}},{"before":"b8bcea8d40866bfa33a7f7b24979781039bfc76f","after":"e4618dc08695fbf3a1171f12e0fc803ac4a3a19b","ref":"refs/heads/main","pushedAt":"2024-03-28T22:26:12.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"wincent","name":"Greg Hurrell","path":"/wincent","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/7074?s=80&v=4"},"commit":{"message":"chore: update links","shortMessageHtmlLink":"chore: update links"}},{"before":"a2ff356633bfc2b4638925eee172d43173420d3b","after":"b8bcea8d40866bfa33a7f7b24979781039bfc76f","ref":"refs/heads/master","pushedAt":"2023-11-17T11:00:35.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"wincent","name":"Greg Hurrell","path":"/wincent","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/7074?s=80&v=4"},"commit":{"message":"docs: fix references to `max_depth` (→ `max_files`)\n\nI don't know if this was just bad autocomplete or bad braininating, but\neither way, it was wrong.","shortMessageHtmlLink":"docs: fix references to max_depth (→ max_files)"}},{"before":"a2ff356633bfc2b4638925eee172d43173420d3b","after":"b8bcea8d40866bfa33a7f7b24979781039bfc76f","ref":"refs/heads/main","pushedAt":"2023-11-17T10:32:32.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"wincent","name":"Greg Hurrell","path":"/wincent","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/7074?s=80&v=4"},"commit":{"message":"docs: fix references to `max_depth` (→ `max_files`)\n\nI don't know if this was just bad autocomplete or bad braininating, but\neither way, it was wrong.","shortMessageHtmlLink":"docs: fix references to max_depth (→ max_files)"}},{"before":"23d2860931dcbcbdfb3543bed002e35d7b3b898b","after":"a2ff356633bfc2b4638925eee172d43173420d3b","ref":"refs/heads/master","pushedAt":"2023-10-24T22:24:57.000Z","pushType":"push","commitsCount":10,"pusher":{"login":"wincent","name":"Greg Hurrell","path":"/wincent","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/7074?s=80&v=4"},"commit":{"message":"refactor: make error handling a bit more consistent in scanner.c","shortMessageHtmlLink":"refactor: make error handling a bit more consistent in scanner.c"}},{"before":"8e5e827754b255452b21b8acf31afedb3e123e1c","after":"a2ff356633bfc2b4638925eee172d43173420d3b","ref":"refs/heads/main","pushedAt":"2023-10-18T19:44:34.000Z","pushType":"push","commitsCount":7,"pusher":{"login":"wincent","name":"Greg Hurrell","path":"/wincent","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/7074?s=80&v=4"},"commit":{"message":"refactor: make error handling a bit more consistent in scanner.c","shortMessageHtmlLink":"refactor: make error handling a bit more consistent in scanner.c"}},{"before":"94e719608db484f4644164dfab676a7df8f29055","after":"a2ff356633bfc2b4638925eee172d43173420d3b","ref":"refs/heads/next","pushedAt":"2023-10-17T06:58:59.000Z","pushType":"push","commitsCount":3,"pusher":{"login":"wincent","name":"Greg Hurrell","path":"/wincent","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/7074?s=80&v=4"},"commit":{"message":"refactor: make error handling a bit more consistent in scanner.c","shortMessageHtmlLink":"refactor: make error handling a bit more consistent in scanner.c"}},{"before":"479306a3b114b23836322a50277976608ec977ad","after":"94e719608db484f4644164dfab676a7df8f29055","ref":"refs/heads/next","pushedAt":"2023-10-15T22:24:45.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"wincent","name":"Greg Hurrell","path":"/wincent","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/7074?s=80&v=4"},"commit":{"message":"docs: update stale comment","shortMessageHtmlLink":"docs: update stale comment"}},{"before":"660d2417ad86860830cbfb2b64d3a8830a7ebceb","after":"479306a3b114b23836322a50277976608ec977ad","ref":"refs/heads/next","pushedAt":"2023-10-15T22:18:18.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"wincent","name":"Greg Hurrell","path":"/wincent","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/7074?s=80&v=4"},"commit":{"message":"test: make GitHub use same version of clang-format as I am locally","shortMessageHtmlLink":"test: make GitHub use same version of clang-format as I am locally"}},{"before":"8ac6c961accda4316618cd48d0b7a86f3bb8bfba","after":"660d2417ad86860830cbfb2b64d3a8830a7ebceb","ref":"refs/heads/next","pushedAt":"2023-10-15T22:09:54.000Z","pushType":"push","commitsCount":95,"pusher":{"login":"wincent","name":"Greg Hurrell","path":"/wincent","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/7074?s=80&v=4"},"commit":{"message":"feat: implement max_files option in a number of places\n\nUnlike in the Ruby version, the Lua version allows you to set a\ndifferent limit for each scanner, becauase different scanners have\ndifferent performance characteristics.\n\n commandt.setup({\n scanners = {\n file = {\n max_files = 100000, -- A \"big\" limit.\n },\n find = {\n max_files = 10, -- A small limit.\n },\n git = {\n max_files = 0, -- Same as no limit.\n },\n rg = {\n -- No setting, no limit.\n },\n }\n\nA subsequent commit will explain the details of how to set this up, but\nin brief, setting the limit to \"0\" (or omitting the limit) means no\nlimit. If you have circular symlinks in a filesystem, then the limit\nstops Command-T for scanning forever (particularly in the case of the\n`:CommandT` — \"find\" — scanner).\n\nIf you have a custom command-based scanner, then you can supply a\n\"max_files\" limit in your return value; eg. a limit of 10,000 like so:\n\n finders = {\n ack = {\n command = function(directory)\n local command = 'ack -f --print0'\n if directory ~= '' and directory ~= '.' and directory ~= './' then\n directory = vim.fn.shellescape(directory)\n command = command .. ' -- ' .. directory\n end\n local drop = 0\n local max_files = 10000\n return command, drop, max_files\n end,\n },\n },\n\nDisclaimer: this is only exceedingly lightly tested, so I'm going to\npark it on the \"next\" branch for a bit before merging to \"main\".\n\nNote: formatting changes due to running \"bin/format\" included.","shortMessageHtmlLink":"feat: implement max_files option in a number of places"}},{"before":"459e9c6e7d5bd8f559bbf8101869d0c9e800b154","after":"8e5e827754b255452b21b8acf31afedb3e123e1c","ref":"refs/heads/main","pushedAt":"2023-10-08T14:43:15.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"wincent","name":"Greg Hurrell","path":"/wincent","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/7074?s=80&v=4"},"commit":{"message":"docs: remove old link","shortMessageHtmlLink":"docs: remove old link"}},{"before":"9a1343c396178dc55ccc1166bf1eb434b5c18c43","after":"459e9c6e7d5bd8f559bbf8101869d0c9e800b154","ref":"refs/heads/main","pushedAt":"2023-08-07T20:48:54.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"wincent","name":"Greg Hurrell","path":"/wincent","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/7074?s=80&v=4"},"commit":{"message":"refactor: rework health checks\n\nBecause of new Neovim deprecation warnings:\n\n - WARNING health#report_start is deprecated, use vim.health.start instead. :help |deprecated|\n This feature will be removed in Nvim version 0.11\n\n(etc)\n\n`health#report_start` -> `vim.health.start`\n`health#report_ok` -> `vim.health.ok`\n`health#report_error` -> `vim.health.error`\n`vim.health.report_start` -> `vim.health.start`\n`vim.health.report_ok` -> `vim.health.ok`\n`vim.health.report_warn` -> `vim.health.warn`\n`vim.health.report_error` -> `vim.health.error`","shortMessageHtmlLink":"refactor: rework health checks"}},{"before":"23d2860931dcbcbdfb3543bed002e35d7b3b898b","after":"9a1343c396178dc55ccc1166bf1eb434b5c18c43","ref":"refs/heads/main","pushedAt":"2023-07-14T19:10:55.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"wincent","name":"Greg Hurrell","path":"/wincent","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/7074?s=80&v=4"},"commit":{"message":"fix: teach buffer finder to see all buffers passed on command-line\n\nAs noted in the comment on the issue, the Ruby version used to\njust grab buffer names with `:ls`. The Lua version instead uses\n`nvim_list_bufs()`, which the help claims is more like `:ls!` because it\nincludes unlisted (unloaded/deleted) buffers:\n\n Includes unlisted (unloaded/deleted) buffers, like `:ls!`. Use\n |nvim_buf_is_loaded()| to check if a buffer is loaded.\n\nUnfortunately, what \"unlisted\" means is a bit ambiguous, because the\nhelp for `:ls` says this:\n\n When the [!] is included the list will show unlisted buffers\n (the term \"unlisted\" is a bit confusing then...).\n\nSo, I think I just added the `nvim_buf_is_loaded()` check (in\n0b8c9ed39c1352e3, \"feat(lua): continue sketching out UI\", July 20, 2022)\nbecause the help said I should use that to avoid unloaded buffers.\n\nThe docs for `nvim_buf_is_loaded()` say:\n\n Checks if a buffer is valid and loaded. See |api-buffer| for more info\n about unloaded buffers.\n\nSo, it's checking for loaded _and_ \"valid\", whatever that means. It\nturns out there is a `nvim_buf_is_valid()` function, so perhaps we\nshould just use that!\n\n Checks if a buffer is valid.\n\n Note:\n Even if a buffer is valid it may have been unloaded. See\n |api-buffer| for more info about unloaded buffers.\n\n Parameters: ~\n • {buffer} Buffer handle, or 0 for current buffer\n\n Return: ~\n true if the buffer is valid, false otherwise.\n\nThe risk here is that we let somebody try switching to an unloaded\nbuffer, which presumably might not work. In my experimenting at least,\nwhen I run `:bunload` on a buffer and then try switching to it with\nCommand-T, it seems to work fine. Presumably it is loading it again.\n\nCloses: https://github.com/wincent/command-t/issues/418","shortMessageHtmlLink":"fix: teach buffer finder to see all buffers passed on command-line"}}],"hasNextPage":false,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"cursor":"djE6ks8AAAAEIjt-6gA","startCursor":null,"endCursor":null}},"title":"Activity · wincent/command-t"}