question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not opening collapsed sections when selecting match

See original GitHub issue
  • vim or neovim?
    • vim
    • neovim
  • Operating system:
    • Linux
    • Mac OS X
    • Windows
    • Etc.
  • Configurations related to LeaderF in vimrc: I work in popup mode with LeaderfLine.

Describe your question, feature request, or bug.

Hi, when I select a match using <CR>, if it lies inside a collapsed region, it goes to the correct line in the buffer, but it doesn’t display it. It displays only the collapsed header of the region. Similarly to here:

https://user-images.githubusercontent.com/23480511/70097849-0a4a3500-1633-11ea-9e1b-b05133e4f778.png

(enter wouldn’t display the internals of the function)

So, I need to press ‘zA’ to make it happen.

I think the relevant code is python/leaderf/lineExpl.py in the function _acceptSelection , but adding lfCmd('norm! zA') there did nothing.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
obxhdxcommented, Feb 3, 2020

The same happens to me. In some files I use the following modeline: vim: set foldmethod=marker foldenable :.

I’m currently doing:

  1. Leaderf line
  2. Select some entry with <CR>

Then my cursor jumps to the correct place in the file, but the fold doesn’t open automatically.

I’m currently using Neovim 0.4.3 on Mac OS X, with iTerm 3.3.7.

1reaction
Yggdrootcommented, Feb 3, 2020

Still can not reproduce it. 1

Read more comments on GitHub >

github_iconTop Results From Across the Web

Video: Collapsible headings - Microsoft Support
Collapse or expand parts of a document. If you want the document to open with the headings collapsed, follow these steps. Place your...
Read more >
collapse/expand headings not collapsing everything under the
I'm wondering if there's a setting or something where I can select which text is collapsed under what heading. Thanks :) This thread...
Read more >
Collapsible headings: "Collapsed by default" is grayed out
The client requested that the headings be collapsed when the document is opened. However, when I want to select the "collapsed by default" ......
Read more >
Bootstrap: Collapse other sections when one is expanded
Whenever a BUTTON is clicked, all sections become collapsed. Then bootstrap opens the one you selected. ... It's collapsed already open section.
Read more >
How do I open only collapsed items that contain highlighted ...
Hello developers, In my code I have a function that matches words and highlights them with a yellow background and in the same...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found