mirror of
https://github.com/aquatix/dotfiles.git
synced 2025-12-06 21:45:10 +01:00
Search files, showing a preview window
This commit is contained in:
9
.vimrc
9
.vimrc
@@ -164,11 +164,16 @@ command! -bang -nargs=* Rg
|
|||||||
\ : fzf#vim#with_preview('right:50%:hidden', '?'),
|
\ : fzf#vim#with_preview('right:50%:hidden', '?'),
|
||||||
\ <bang>0)
|
\ <bang>0)
|
||||||
|
|
||||||
|
" Files command with preview window
|
||||||
|
command! -bang -nargs=? -complete=dir FilesPreview
|
||||||
|
\ call fzf#vim#files(<q-args>, fzf#vim#with_preview(), <bang>0)
|
||||||
|
|
||||||
" Simply type ; to search through buffers, leader-o to search through file
|
" Simply type ; to search through buffers, leader-o to search through file
|
||||||
" names, \t for tags, \c for (Git) commits and \f to search through contents
|
" names, leader-O to search through file names, showing a preview window,
|
||||||
" of files
|
" \t for tags, \c for (Git) commits and \f to search through contents of files
|
||||||
nmap ; :Buffers<CR>
|
nmap ; :Buffers<CR>
|
||||||
nmap <Leader>o :Files<CR>
|
nmap <Leader>o :Files<CR>
|
||||||
|
nmap <Leader>O :FilesPreview<CR>
|
||||||
nmap <Leader>t :Tags<CR>
|
nmap <Leader>t :Tags<CR>
|
||||||
nmap <Leader>c :Commits<CR>
|
nmap <Leader>c :Commits<CR>
|
||||||
nmap <Leader>f :Find<CR>
|
nmap <Leader>f :Find<CR>
|
||||||
|
|||||||
Reference in New Issue
Block a user