Comments (4)
You must specify UI name like sources.
call ddu#custom#patch_global(
\ {
\ 'ff': {
\ 'uiParams': {'prompt': '> '}
\ }
\ })
from ddu-ui-ff.
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.
@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.
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)
- When getPreviewer returns TerminalPreviewer, previewContentsTerminal raises error HOT 3
- [Feature Request] Ability to switch autoAction during ddu launch HOT 1
- Filter window not updated properly for split='no' HOT 1
- Filter does not work properly HOT 2
- Opening a file when auto preview and floating window are set prevents writing to the file. HOT 12
- Opening a file when auto preview and floating window are set prevents open buffer or file. HOT 3
- TerminalPreviewer shows the preview in both of the preview window and ff window HOT 2
- UI try to be maximized HOT 2
- after fireing action with chooseAction, the mode is INSERT not NORMAL HOT 1
- `filterFloatingTitle` is not setted after `updateOptions` HOT 1
- `input()` does not work in custom action when `startFilter` is true. HOT 1
- `i` is inserted in custom action's `insert()` when `startFilter` is true and it is called from chooseAction. HOT 2
- Any first keystroke inside the filter being discarded after resuming with startFilter HOT 4
- Incorrect selection target when selecting candidates HOT 4
- Config Preview and filter window in vim HOT 4
- when fire the action via chooseAction with `startFilter=true` options, the mode will be INSERT. HOT 2
- Error messages are shown when a ddu source adds items while in cmdwin HOT 3
- Moving the cursor does not update the preview (action-cursorNext/cursorPrevious) HOT 1
- when I close ddu, the mode is INSERT not NORMAL. HOT 1
- preview window's width is not arranged correctly when setting border HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ddu-ui-ff.