markdown-folder icon indicating copy to clipboard operation
markdown-folder copied to clipboard

Title is not displayed after folding

Open sarkissm opened this issue 8 years ago • 25 comments

When I toggle folding I see the last line rather than the title itself, e.g. if I have

head1

line1 line2 line3

Then after folding I see

> line3

sarkissm avatar Jun 08 '16 15:06 sarkissm

+1

Everything seems cool in v1.8.0, but I'm seeing the same behavior in v1.9.0-beta0.

paul-howard avatar Jun 23 '16 14:06 paul-howard

Same problem here since 1.9.0

JoseBlanca avatar Aug 13 '16 07:08 JoseBlanca

I've asked to the Atom folk about the problem here. The folding behaviour has been changed, so this package is not going to work properly unless is modified. I've tried to do it and I've manage to go a little in the proper direction, but I lack Atom package debugging skills, so I've not been able to fix it.

JoseBlanca avatar Aug 17 '16 09:08 JoseBlanca

I really need this package, so I've tried to implent some of its funcionallity. I don't promise anything. It is my first javascript, my first coffeescript and my first Atom package. But the cycle command is working for me in atom 1.9.8 The code is here I'd really prefer that somebody that know more than me fixes this package, but for the time being my hack could be of some use.

JoseBlanca avatar Aug 17 '16 16:08 JoseBlanca

I too am finding the package unusable now, but it is crucial for my workflow. The package author hasn't responded here at all since June. Is the package maintained still or has s/he abandoned it?

monotasker avatar Sep 05 '16 12:09 monotasker

I'm sorry for the neglect. I wasn't getting Github's notifications. I don't have access to my machine until the middle of the week. If someone finds a fix before I get to it, you can always post a PR.

tshort avatar Sep 05 '16 13:09 tshort

The problem originated because there was a change in Atom's folding API. Now you can fold a section of a line. I tried to fix your code, but I didn't know enough, so I tried to do something with the new API just to learn how everything worked. You can find the code in markdown-folding. The code is working for me, but it has not been throughly tested and it does not has all the functionality that your package has. It is just working for me.

JoseBlanca avatar Sep 05 '16 13:09 JoseBlanca

Thanks @JoseBlanca,

Folding markdown is the reason I install atom, but sad to find it broken. Thanks for your work, It works for me as well, and I'm happy.

suntong avatar Sep 13 '16 02:09 suntong

@JoseBlanca unfortunately your package didn't work for me but appreciate the effort! Would be really really great if owner could debug this small but clutch feature. Thanks!

ghost avatar Sep 14 '16 21:09 ghost

I just pushed a few changes that attempts to fix this. They were not big changes. Let me know if it works.

All of the tests are broken. I think it's unrelated. I didn't write the tests, so it may take a bit to fix those. In the near term, we may have to release a version with broken tests.

tshort avatar Sep 15 '16 23:09 tshort

Awesome, we all very much appreciate your efforts in resolving this. Unfortunately, the issue still persists for me. If you need it, I am happy to help you bug test.

ghost avatar Sep 16 '16 13:09 ghost

Does it act any differently? Did you use git to manually pull in the latest update?

On Friday, September 16, 2016, Orebeer [email protected] wrote:

Awesome, we all very much appreciate your efforts in resolving this. Unfortunately, the issue still persists for me. If you need it, I am happy to help you bug test.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/tshort/markdown-folder/issues/19#issuecomment-247599394, or mute the thread https://github.com/notifications/unsubscribe-auth/AAm2BAPTEU9Qk9gVoM0EaYQEuMaeB-M1ks5qqphygaJpZM4IxHNK .

tshort avatar Sep 16 '16 14:09 tshort

Sorry! It works now THANKS SO MUCH! Nota bene for others wanting to manually install from Terminal:

git clone https://github.com/tshort/markdown-folder.git
cd markdown-folder
apm install
apm link 

ghost avatar Sep 16 '16 15:09 ghost

Could we get the changes without using git, just by using the atom install?

Nodragem avatar Sep 18 '16 10:09 Nodragem

Of course, but I wanted to take a stab at fixing the tests first.

tshort avatar Sep 18 '16 11:09 tshort

Is this fix still working?

I thought I had it working, but it's acting funny for me. Unfortunately, I'm not able to access my machine where I originally made the change.

tshort avatar Sep 27 '16 00:09 tshort

Yes it still works for me using GitHub Markdown.

ghost avatar Sep 29 '16 21:09 ghost

In case it helps, try adding this to your keymap:

# markdown-folder
'atom-text-editor[data-grammar="source gfm"]:not([mini])':
  'alt-t': 'markdown-folder:toggle'

ghost avatar Oct 01 '16 19:10 ghost

It still does not work for me but I have the version from "atom install". That may be why.

Nodragem avatar Oct 03 '16 14:10 Nodragem

works for me in Atom 1.11.1 installing from a fresh clone following https://github.com/tshort/markdown-folder/issues/19#issuecomment-247628036

mw-coursera avatar Oct 15 '16 20:10 mw-coursera

Fixes the header problem for me in Atom 1.12.7, but now cmd-k cmd-0 doesn't unfold properly on any header except the bottom one.

colemanbroad avatar Dec 15 '16 14:12 colemanbroad

it did not work for me using the regular installation, but worked from a fresh cloning, as suggested by @Orebeer.

lincolnfrias avatar Jan 08 '17 12:01 lincolnfrias

I found and installed the package on 1.15.0 using Atom > Preferences > Install (on OS X) and I'm seeing the same "last line instead of heading" behavior. I'll try a clone as per above.

I then tried uninstalling markdown-folder and installing from GitHub using the instructions in #19. That works, but it appears to break the ability to see some of the packages that I have installed. I see a blue "Loading packages" bar for Git Packages and for Deprecated Packages. Checking for Updates results in a red message "Fetching outdated packages and themes failed." The Show output… link displays a message of "undefined." I didn't check updates before doing the Git install so I'm not positive that the markdown-folder install is implicated.

@lincolnfrias do checking for Updates and viewing installed Packages work for you?

DouglasUrner avatar Apr 11 '17 22:04 DouglasUrner

Not working for me, in that I'm getting the last line instead of first line as a fold label. Did the git pull for the latest version thing, but is that still relevant?

ETA: Atom 1.17.2

mediapathic avatar Jun 11 '17 03:06 mediapathic

@DouglasUrner very sorry for the delay, I missed the notification.

Yes, the checking for updates and viewing installed packages works fine for me. But my setup is different from yours, I am on ubuntu and atom 1.17.

lincolnfrias avatar Jun 11 '17 03:06 lincolnfrias