Giter Club home page Giter Club logo

ddu-source-markdown's Introduction

ddu-source-markdown's People

Contributors

mikanichinose avatar shougo avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

shougo

ddu-source-markdown's Issues

bug: ddu-ui-filer

environment

nvim: v0.9.0-dev-198+g75ec1b720
mac: 12.6

minimal setting

" 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': 'size'}}
      \ })

sample.md

# header1

hoge

## header2

fuga

### header3

hoge

# headerA

hgoe

## subHeaderA-1

hgoe

## subHeaderA-2

hgoe

### subSubHeaderA

hgoe

# headerB

hgoe

## subHeaderB

hgoe

instruction

  1. open sample.md
  2. call ddu#start()
    • The order of headers is not expected
      expected
      # header1
      ## header2
      ### header3
      # headerA
      ## subHeaderA-1
      ## subHeaderA-2
      ### subSubHeaderA
      # headerB
      ## subHeaderB
      
      actual
      # header1
      ## header2
      # headerA
      ## subHeaderA-2
      # headerB
      ### header3
      ## subHeaderA-1
      ### subSubHeaderA
      ## subHeaderB
      
  3. move cursor at headerB
  4. press o
  5. press o
  6. move cursor at subHeaderB
  7. press o
  8. move cursor at headerB
  9. press o
    expected: expandItem
    actual: cursor down
Screen.Recording.2022-10-31.at.15.00.22.mov

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.