clone of my dotfiles.ssp.sh
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

update

sspaeti 87d3c1dd 5b652e46

+12 -13
+10 -11
nvim/.config/nvim/lua/sspaeti/remap.lua
··· 15 15 vim.keymap.set('n', 'sS', ':Telescope lsp_document_symbols<CR>') 16 16 vim.keymap.set('n', 'so', ':Telescope lsp_document_symbols<CR>') 17 17 vim.keymap.set('n', 'go', ':Telescope lsp_document_symbols<CR>') 18 - vim.keymap.set('n', 'sg', ':GFiles<CR>') 18 + vim.keymap.set('n', 'sg', function() 19 + vim.ui.input({ prompt = "File filter (e.g. *.md, hypr/): " }, function(input) 20 + if not input or input == "" then return end 21 + local pattern = input 22 + if input:match("/$") then 23 + pattern = input .. "**" 24 + end 25 + require("telescope.builtin").live_grep({ glob_pattern = pattern }) 26 + end) 27 + end, { desc = "Filtered grep (file pattern first, then search)" }) 19 28 vim.keymap.set('n', 'sG', ':GFiles?<CR>') 20 29 vim.keymap.set('n', 'sr', ':History<CR>') 21 30 vim.keymap.set('n', 'gr', ':Telescope lsp_references<CR>') ··· 38 47 -- vim.keymap.set('n', 'sp', function() Snacks.picker.smart() end, { desc = "Grep" }) 39 48 vim.keymap.set('n', 'sf', function() Snacks.picker.grep() end, { desc = "Grep" }) 40 49 -- Two-step grep: specify file/dir filter, then live search within matches 41 - vim.keymap.set('n', 'sG', function() 42 - vim.ui.input({ prompt = "File filter (e.g. *.md, hypr/): " }, function(input) 43 - if not input or input == "" then return end 44 - local pattern = input 45 - if input:match("/$") then 46 - pattern = input .. "**" 47 - end 48 - require("telescope.builtin").live_grep({ glob_pattern = pattern }) 49 - end) 50 - end, { desc = "Filtered grep (file pattern first, then search)" }) 51 50 vim.keymap.set('n', '<leader>ft', function() Snacks.picker.resume() end, { desc = "Resume Find" }) 52 51 -- vim.keymap.set('n', 'sf', ':Telescope live_grep<CR>') --search for typing string 53 52 vim.keymap.set('n', 'sw', ':Telescope grep_string<CR>') --search for word/string under cursor
+2 -2
zsh/.dotfiles/zsh/configs.shrc
··· 63 63 eval "$(mise activate)" 64 64 65 65 # Custom FZF keybindings - must be AFTER fzf is sourced to override defaults 66 - # Ctrl+f to fuzzy find files by name and open in nvim 66 + # C-F: Ctrl+f to fuzzy find files by name and open in nvim 67 67 fzf-file-widget() { 68 68 local file 69 69 file=$(find . -type f 2>/dev/null | fzf) && nvim "$file" ··· 71 71 zle -N fzf-file-widget 72 72 bindkey '^F' fzf-file-widget 73 73 74 - # Ctrl+g to search file contents with fzf and open in nvim at the line 74 + # C-G: Ctrl+g to search file contents with fzf and open in nvim at the line 75 75 fzfvim-widget() { 76 76 local result file line 77 77 result=$(rg --line-number --color=always . | fzf --ansi)