Open Shougo opened 6 years ago
how to open a img?
Please read the documentation.
preview *defx-action-preview*
Preview the file. Close the preview window if it is already
exists.
Note: "ueberzug" and "bash" commands are needed to preview
image files.
https://pypi.org/project/ueberzug/
Note: The image preview is for X11 only.
Thanks. But already many screenshots are exists in README...
I have added the link instead.
This's mine for now.
can share your configuration? love the icon and dark theme you have there.
You can delete my previous screenshot.
@kutsan wow! love this! can pls share the config file?
@thienpow
See;
Although I removed them in https://github.com/kutsan/dotfiles/commit/b937b16, so you will not be able find them in master. I use a different file explorer right now. Feel free to ask me if you need something different.
Colorscheme was https://github.com/cocopon/iceberg.vim by the way.
Screenshot of neovim nightly with defx opened in a centered and border decorated floating window running in kitty.
defx search node and auto open parent nodes until root dir @Shougo
Hello,I want to achieve the floating window preview effect in macVim, but it doesn't seem to work?
nnoremap <buffer><expr> P defx#do_action('previewpopup')
@snailtree008 Please create new issue for it with your minimal config. I will try it later.
@snailtree008 I get it. Please read the documentation.
*preview-popup*
Alternatively, a popup window can be used by setting the 'previewpopup'
option. When set, it overrules the 'previewwindow' and 'previewheight'
settings. The option is a comma-separated list of values:
height maximum height of the popup
width maximum width of the popup
highlight highlight group of the popup (default is Pmenu)
Example: >
:set previewpopup=height:10,width:60
And this.
nnoremap <buffer><expr> P defx#do_action('preview')
@snailtree008 I get it. Please read the documentation.
*preview-popup* Alternatively, a popup window can be used by setting the 'previewpopup' option. When set, it overrules the 'previewwindow' and 'previewheight' settings. The option is a comma-separated list of values: height maximum height of the popup width maximum width of the popup highlight highlight group of the popup (default is Pmenu) Example: > :set previewpopup=height:10,width:60
And this.
nnoremap <buffer><expr> P defx#do_action('preview')
Thanks,I found the answer to this question from a Japanese friend.
> " Defx config
> nnoremap <silent>ff :<C-u>Defx -listed -columns=mark:indent:git:icons:filename:type<CR>
>
> call defx#custom#option('_', {
> \ 'split': 'floating',
> \ 'vertical_preview': v:true,
> \ 'floating_preview': v:true,
> \ 'preview_width': float2nr(&columns * g:floating_win_width_percent / 2),
> \ 'preview_height': float2nr(&lines * g:floating_win_height_percent),
> \ 'wincol': float2nr((&columns - (&columns * g:floating_win_width_percent)) / 2),
> \ 'winrow': float2nr((&lines - (&lines * g:floating_win_height_percent)) / 2),
> \ 'winwidth': float2nr(&columns * g:floating_win_width_percent / 2),
> \ 'winheight': float2nr(&lines * g:floating_win_height_percent),
> \ })
I think defx.nvim needs screenshot in README.
If you have good screenshots for defx.nvim README, can you add it in this issue?