Skip to content

Commit

Permalink
change find
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenyangze committed May 26, 2023
1 parent fc3005c commit 12034c1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions layers/common/theme-colors.vim
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Plug 'liuchengxu/space-vim-theme'
Plug 'rakr/vim-two-firewatch'
Plug 'sainnhe/gruvbox-material'
Plug 'glepnir/oceanic-material'
Plug 'folke/tokyonight.nvim', { 'branch': 'main' }
if has('mac')
Plug 'ryanoasis/vim-devicons'
if !has('nvim')
Expand Down
2 changes: 1 addition & 1 deletion layers/common/tool-fzf.vim
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ endif
if executable('rg')
let $FZF_DEFAULT_COMMAND = 'rg --files --hidden --follow --glob "!.git/*"'
set grepprg=rg\ --vimgrep
command! -bang -nargs=* Find call fzf#vim#grep('rg --column --line-number --no-heading --fixed-strings --ignore-case --hidden --follow --glob "!.git/*" --color "always" '.shellescape(<q-args>).'| tr -d "\017"', 1, <bang>0)
"command! -bang -nargs=* Find call fzf#vim#grep('rg --column --line-number --no-heading --fixed-strings --ignore-case --hidden --follow --glob "!.git/*" --color "always" '.shellescape(<q-args>).'| tr -d "\017"', 1, <bang>0)
command! -bang RgFiles
\ call fzf#run(fzf#wrap('RgFiles', {'source':'rg --files --sort=path --hidden --follow --glob "!.git/*" 3>/dev/null | grep -v ".gitkeep" | grep -v ".gitignore"' , 'options': ['--ansi', '--delimiter', '/', '--nth', '-2..,..']}, 0))

Expand Down
2 changes: 1 addition & 1 deletion layers/user/keymap.vim
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ map f <Plug>(easymotion-bd-w)
"let g:Lf_ShortcutB = '<Leader>fb'
"let g:Lf_ShortcutF = '<Leader>ff'
"nmap <Leader>ff :call ShowfindFiles()<CR>
command! -nargs=1 Find call Find("find . -iname '*'" . shellescape('<args>') . "'*'")
command! -nargs=1 Find call Find("find . -type f | grep " . shellescape('<args>'))
command! -nargs=1 Gfind call Find('git ls-files | grep -E ' . shellescape('<args>'))
command! -nargs=1 Gtfind call Find('git rev-parse --show-toplevel && git ls-files | grep -E ' . shellescape('<args>'))
command! -nargs=1 Locate call Find('locate ' . shellescape('<args>'))
Expand Down

0 comments on commit 12034c1

Please sign in to comment.