Comments (7)
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.
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.
I'm hitting the same problem. My Markdown headers are shown in reverse order, which is non-intuitive.
from telescope-heading.nvim.
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.
Yeah I think I need to change the sorting strategy to flip things around.
from telescope-heading.nvim.
Yeah I think I need to change the sorting strategy to flip things around.
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.
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)
- Option for preview HOT 3
- Support Markdown Pandoc filetype HOT 1
- Telescope deprecation warning
- Possibility to support LaTeX tex files HOT 3
- Support for vim help file HOT 2
- Use TreeSitter to parse document for headings HOT 5
- Feature request: Support for custom filetypes using header characters (or just .vimrc / init.vim) HOT 7
- Vim help headings donβt show HOT 3
- Help treesitter parser has changed HOT 5
- feat: better preview with the heading line at the top of the window 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 telescope-heading.nvim.