Shougo / defx.nvim

:file_folder: The dark powered file explorer implementation for neovim/Vim8
MIT License
1.17k stars 86 forks source link

Defx screenshots #18

Open Shougo opened 6 years ago

Shougo commented 6 years ago

I think defx.nvim needs screenshot in README.

If you have good screenshots for defx.nvim README, can you add it in this issue?

WarlockFish commented 3 years ago

test

how to open a img?

Shougo commented 3 years ago

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.
guessable commented 3 years ago

screenshots

Shougo commented 3 years ago

Thanks. But already many screenshots are exists in README...

Shougo commented 3 years ago

I have added the link instead.

thienpow commented 3 years ago

This's mine for now.

image

can share your configuration? love the icon and dark theme you have there.

thienpow commented 3 years ago

You can delete my previous screenshot.

screenshot

@kutsan wow! love this! can pls share the config file?

kutsan commented 3 years ago

@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.

Buckmeister commented 3 years ago

Screenshot of neovim nightly with defx opened in a centered and border decorated floating window running in kitty.

Repo: https://github.com/Buckmeister/nvim-nightly

Screenshot
CaryWill commented 2 years ago
image

defx search node and auto open parent nodes until root dir @Shougo

zouzonghua commented 2 years ago
Screen Shot 2022-07-06 at 09 31 18
WisdomCui commented 1 year ago

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')

Shougo commented 1 year ago

@snailtree008 Please create new issue for it with your minimal config. I will try it later.

Shougo commented 1 year ago

@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')
WisdomCui commented 1 year ago

@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),
>       \ })