Code Monkey home page Code Monkey logo

Comments (7)

Shougo avatar Shougo commented on July 18, 2024 1

Fixed. Please update ddu-ui-filer.

from ddu-source-markdown.

Shougo avatar Shougo commented on July 18, 2024

You must disable sort like this.

call ddu#custom#patch_local('filer', {
      \   'ui': 'filer',
      \   'sources': [
      \     {
      \       'name': 'markdown',
      \       'params': {},
      \     },
      \   ],
      \   'sourceOptions': {
      \     '_': {
      \       'columns': ['icon_filename'],
      \     },
      \   },
      \   'uiParams': {
      \     'filer': {
      \       'winWidth': 40,
      \       'sort': 'none',
      \       'sortDirectoriesFirst': v:false,
      \       'split': 'vertical',
      \       'splitDirection': 'topleft',
      \     }
      \   },
      \ })

from ddu-source-markdown.

mikanIchinose avatar mikanIchinose commented on July 18, 2024

Thank you.
The order of headers problem is fixed.

from ddu-source-markdown.

Shougo avatar Shougo commented on July 18, 2024

expandItem problem is fixed?

from ddu-source-markdown.

mikanIchinose avatar mikanIchinose commented on July 18, 2024

It is still happened..

minimal setting

set runtimepath^=path/to/denops.vim
set runtimepath^=path/to/ddu.vim
set runtimepath^=path/to/ddu-kind-file
set runtimepath^=path/to/ddu-ui-filer
set runtimepath^=path/to/ddu-source-markdown

augroup Ddu
  autocmd!
  autocmd FileType ddu-filer nnoremap <buffer> o <Cmd>call ddu#ui#filer#do_action('expandItem', {'mode': 'toggle'})<CR>
augroup END

call ddu#custom#patch_global({
      \ 'sources': [{'name': 'markdown'}],
      \ 'ui': 'filer',
      \ 'uiParams': {
      \   'filer': {
      \     'sort': 'none',
      \     'sortDirectoriesFirst': v:false,
      \   },
      \ },
      \ })

sample.md

same

instruction

  1. open sample.md
  2. :call ddu#start()
  3. move cursor to header1
  4. press o
  5. press o again
  6. move cursor to header2
  7. press o
  8. move cursor to header3
  9. press o
  10. move cursor to header1
  11. press o
    expected: close tree
    actual: move cursor to header3
Screen.Recording.2022-10-31.at.20.58.23.mov

from ddu-source-markdown.

Shougo avatar Shougo commented on July 18, 2024

Fixed. Please update.

from ddu-source-markdown.

mikanIchinose avatar mikanIchinose commented on July 18, 2024

It fixed ๐ŸŽ‰ ๐ŸŽ‰ . Wonderful!!
Thank you.

from ddu-source-markdown.

Related Issues (5)

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.