diff --git a/config/nvim/lua/config/keymap.lua b/config/nvim/lua/config/keymap.lua index 1edef45..fbf9ace 100644 --- a/config/nvim/lua/config/keymap.lua +++ b/config/nvim/lua/config/keymap.lua @@ -93,24 +93,28 @@ km( ) -- Search for files in cwd km("n", "j", ":lua require'telescope.builtin'.find_files(require('telescope.themes').get_ivy({}))", opts) ---- Search through recent files + +--- Search through recent files - mapped 3 ways km("n", "'", ":lua require'telescope.builtin'.oldfiles(require('telescope.themes').get_ivy({}))", opts) km("n", "ro", ":lua require'telescope.builtin'.oldfiles(require('telescope.themes').get_ivy({}))", opts) km("n", "rr", ":lua require'telescope.builtin'.oldfiles(require('telescope.themes').get_ivy({}))", opts) + +-- Search for a string under cursor - mapped twice +km("n", "g", ":lua require'telescope.builtin'.grep_string(require('telescope.themes').get_ivy({}))", opts) +vim.keymap.set("n", ".", function() + require("telescope.builtin").grep_string(require("telescope.themes").get_ivy({ hidden = true })) +end, opts) + -- Search for a string km("n", "rg", ":lua require'telescope.builtin'.live_grep(require('telescope.themes').get_ivy({}))", opts) --- Search for a string under cursor -km("n", "rc", ":lua require'telescope.builtin'.grep_string(require('telescope.themes').get_ivy({}))", opts) --- Search for current word -vim.keymap.set("n", "g", function() + +-- Search for current word in current buffer +vim.keymap.set("n", "rgg", function() require("telescope.builtin").current_buffer_fuzzy_find(require("telescope.themes").get_ivy({ hidden = true, default_text = vim.fn.expand(""), })) end, opts) -vim.keymap.set("n", ".", function() - require("telescope.builtin").grep_string(require("telescope.themes").get_ivy({ hidden = true })) -end, opts) -- Oil vim.keymap.set("n", "o", "split | Oil") diff --git a/config/pi/AGENTS.md b/config/pi/AGENTS.md index 031ef4c..c06b0ab 100644 --- a/config/pi/AGENTS.md +++ b/config/pi/AGENTS.md @@ -33,6 +33,17 @@ If you are making code changes from a plan, update the plan as part of your code Plans should include a section on `## Steps` which lists in order the work needed. +Plan structure: + +- Short description +- Steps +- Background +- Decision register +- Open decisions +- Any other required sections + +Favour markdown bullet lists over tables where appropriate. Use multiple levels in the bullet lists to structure the lists. + ## Programming - When you write Python code, make it type safe, so that it would pass strict type checking with a tool like basedpyright. Prefer using `list` or `dict` over `typing.List` or `typing.Dict` (same for all other objects like this - avoid `import typing` if possible). diff --git a/config/pi/settings.json b/config/pi/settings.json index 6212984..14bc6e8 100644 --- a/config/pi/settings.json +++ b/config/pi/settings.json @@ -1,6 +1,6 @@ { "defaultProvider": "openrouter", - "defaultModel": "~google/gemini-pro-latest", + "defaultModel": "~moonshotai/kimi-latest", "theme": "dracula", "packages": [ "npm:@aliou/pi-guardrails", @@ -10,5 +10,6 @@ "npm:pi-mono-status-line", "npm:@guwidoe/pi-prompt-suggester" ], - "defaultThinkingLevel": "medium" -} + "defaultThinkingLevel": "medium", + "lastChangelogVersion": "0.79.1" +} \ No newline at end of file