Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 12 additions & 8 deletions config/nvim/lua/config/keymap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -93,24 +93,28 @@ km(
)
-- Search for files in cwd
km("n", "<leader>j", ":lua require'telescope.builtin'.find_files(require('telescope.themes').get_ivy({}))<cr>", opts)
--- Search through recent files

--- Search through recent files - mapped 3 ways
km("n", "<leader>'", ":lua require'telescope.builtin'.oldfiles(require('telescope.themes').get_ivy({}))<cr>", opts)
km("n", "<leader>ro", ":lua require'telescope.builtin'.oldfiles(require('telescope.themes').get_ivy({}))<cr>", opts)
km("n", "<leader>rr", ":lua require'telescope.builtin'.oldfiles(require('telescope.themes').get_ivy({}))<cr>", opts)

-- Search for a string under cursor - mapped twice
km("n", "<leader>g", ":lua require'telescope.builtin'.grep_string(require('telescope.themes').get_ivy({}))<cr>", opts)
vim.keymap.set("n", "<leader>.", function()
require("telescope.builtin").grep_string(require("telescope.themes").get_ivy({ hidden = true }))
end, opts)

-- Search for a string
km("n", "<leader>rg", ":lua require'telescope.builtin'.live_grep(require('telescope.themes').get_ivy({}))<cr>", opts)
-- Search for a string under cursor
km("n", "<leader>rc", ":lua require'telescope.builtin'.grep_string(require('telescope.themes').get_ivy({}))<cr>", opts)
-- Search for current word
vim.keymap.set("n", "<leader>g", function()

-- Search for current word in current buffer
vim.keymap.set("n", "<leader>rgg", function()
require("telescope.builtin").current_buffer_fuzzy_find(require("telescope.themes").get_ivy({
hidden = true,
default_text = vim.fn.expand("<cword>"),
}))
end, opts)
vim.keymap.set("n", "<leader>.", function()
require("telescope.builtin").grep_string(require("telescope.themes").get_ivy({ hidden = true }))
end, opts)

-- Oil
vim.keymap.set("n", "<leader>o", "<CMD>split | Oil<CR>")
Expand Down
11 changes: 11 additions & 0 deletions config/pi/AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
7 changes: 4 additions & 3 deletions config/pi/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"defaultProvider": "openrouter",
"defaultModel": "~google/gemini-pro-latest",
"defaultModel": "~moonshotai/kimi-latest",
"theme": "dracula",
"packages": [
"npm:@aliou/pi-guardrails",
Expand All @@ -10,5 +10,6 @@
"npm:pi-mono-status-line",
"npm:@guwidoe/pi-prompt-suggester"
],
"defaultThinkingLevel": "medium"
}
"defaultThinkingLevel": "medium",
"lastChangelogVersion": "0.79.1"
}
Loading