Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Title is not displayed after folding #19

Open
sarkissm opened this issue Jun 8, 2016 · 25 comments
Open

Title is not displayed after folding #19

sarkissm opened this issue Jun 8, 2016 · 25 comments

Comments

@sarkissm
Copy link

sarkissm commented Jun 8, 2016

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

@paul-howard
Copy link

+1

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

@JoseBlanca
Copy link

Same problem here since 1.9.0

@JoseBlanca
Copy link

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
Copy link

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.

@monotasker
Copy link

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?

@tshort
Copy link
Owner

tshort commented Sep 5, 2016

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.

@JoseBlanca
Copy link

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.

@suntong
Copy link

suntong commented Sep 13, 2016

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.

@ghost
Copy link

ghost commented Sep 14, 2016

@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!

@tshort
Copy link
Owner

tshort commented Sep 15, 2016

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.

@ghost
Copy link

ghost commented Sep 16, 2016

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.

@tshort
Copy link
Owner

tshort commented Sep 16, 2016

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
#19 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAm2BAPTEU9Qk9gVoM0EaYQEuMaeB-M1ks5qqphygaJpZM4IxHNK
.

@ghost
Copy link

ghost commented Sep 16, 2016

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 

@Nodragem
Copy link

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

@tshort
Copy link
Owner

tshort commented Sep 18, 2016

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

@tshort
Copy link
Owner

tshort commented Sep 27, 2016

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.

@ghost
Copy link

ghost commented Sep 29, 2016

Yes it still works for me using GitHub Markdown.

@ghost
Copy link

ghost commented Oct 1, 2016

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'

@Nodragem
Copy link

Nodragem commented Oct 3, 2016

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

@mw-coursera
Copy link

works for me in Atom 1.11.1 installing from a fresh clone following #19 (comment)

@colemanbroad
Copy link

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.

@lincolnfrias
Copy link

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

@DouglasUrner
Copy link

DouglasUrner commented Apr 11, 2017

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?

@mediapathic
Copy link

mediapathic commented Jun 11, 2017

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

@lincolnfrias
Copy link

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests