Coder Social home page Coder Social logo

Comments (7)

sankantsu avatar sankantsu commented on June 28, 2024 5

This issue is already closed, but I will comment about my current setting.
I think following setting is what @angelidis, @pmatulis want.
Hope this helps!

require("telescope").setup({
  extensions = {
    heading = {
      picker_opts = {
        sorting_strategy = "ascending", -- "descending" by default
      },
    },
  }
})

from telescope-heading.nvim.

crispgm avatar crispgm commented on June 28, 2024

IMO, telescope extensions are either pickers or sorters. telescope-heading is picker and sorted by file sorter (otherwise, generic sorter). I may control the default order, now it's the same as its position, the most natural way. You may also customize the default sorter by yourself but it change only the order when you are inputting.

from telescope-heading.nvim.

pmatulis avatar pmatulis commented on June 28, 2024

I'm hitting the same problem. My Markdown headers are shown in reverse order, which is non-intuitive.

from telescope-heading.nvim.

crispgm avatar crispgm commented on June 28, 2024

I'm hitting the same problem. My Markdown headers are shown in reverse order, which is non-intuitive.

Would you mind showing your triage information? I think the implementation is in order not reverse order.

from telescope-heading.nvim.

pmatulis avatar pmatulis commented on June 28, 2024

Yeah I think I need to change the sorting strategy to flip things around.

image

from telescope-heading.nvim.

crispgm avatar crispgm commented on June 28, 2024

Yeah I think I need to change the sorting strategy to flip things around.

image

It looks that the result is correct, in which HEADING ONE is the first approachable. You can change the layout/UI of your telescope.nvim to make it look in order.

IMO, telescope.nvim does not provide ordering mechanism but we can define option to enable different sorting method.

from telescope-heading.nvim.

crispgm avatar crispgm commented on June 28, 2024

telescope-heading lists in order, as you expected. The behavior of your screenshot is because the default theme of telescope, which shows everything reversely. If you setup ivy theme like my screenshot on README, it would be in order. cc @angelidis

from telescope-heading.nvim.

Related Issues (11)

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.