Code Monkey home page Code Monkey logo

Comments (4)

Shougo avatar Shougo commented on August 17, 2024

You must specify UI name like sources.

call ddu#custom#patch_global(
\ {
\    'ff': {
\      'uiParams': {'prompt': '> '}
\    }
\ })

from ddu-ui-ff.

blithefeng avatar blithefeng commented on August 17, 2024

Thanks! I found that in ddc-source-rg. I tried using the floating preview window. But after I added filterSplitDirection, it prompted an error while opening the filter window. Configuration likes

call ddu#custom#patch_global(
\ {
\'ff': {
\'uiParams': {'prompt': '> ', 'split': 'floating', 'filterSplitDirection': 'floating'}
\}
\})

I think ddu is complicated and not enough for me for now. So I turned to the telescope. Major point: defx is now in maintenance and uses python. ddu-ui-filer is just a UI for ddu and not as much as defx.

from ddu-ui-ff.

Shougo avatar Shougo commented on August 17, 2024

@blithefeng Please create the minimal config.

I have tested below config and it works.

set rtp+=~/work/denops.vim
set rtp+=~/work/ddu.vim
set rtp+=~/work/ddu-commands.vim
set rtp+=~/work/ddu-ui-ff
set rtp+=~/work/ddu-kind-file
set rtp+=~/work/ddu-filter-matcher_substring
set rtp+=~/work/ddu-source-file

call ddu#custom#patch_global({
      \   'ui': 'ff',
      \   'sourceOptions' : {
      \     '_' : {
      \       'matchers': ['matcher_substring'],
      \     }
      \   },
      \   'uiParams': {
      \     'ff': {
      \       'prompt': '>',
      \       'split': 'floating',
      \       'filterSplitDirection': 'floating',
      \     }
      \   },
      \   'kindOptions': {
      \     'file': {
      \       'defaultAction': 'open',
      \     },
      \   },
      \ })

autocmd FileType ddu-ff call s:ddu_my_settings()
function! s:ddu_my_settings() abort
  nnoremap <buffer> <CR>
        \ <Cmd>call ddu#ui#ff#do_action('itemAction')<CR>
  nnoremap <buffer> i
        \ <Cmd>call ddu#ui#ff#do_action('openFilterWindow')<CR>
  nnoremap <buffer> q
        \ <Cmd>call ddu#ui#ff#do_action('quit')<CR>
endfunction

from ddu-ui-ff.

Shougo avatar Shougo commented on August 17, 2024

ddu-ui-filer is just a UI for ddu and not as much as defx.

ddu-ui-filer is under the construction. It is too early that it is not as much as defx.

from ddu-ui-ff.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.