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

Already on GitHub? Sign in to your account

ability to determine markup format from file variables #37

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
5 participants

piranha commented Jan 30, 2011

It would be really nice to have ability to name README as just README without any extensions, putting file format declaration in so-called file variables, like:

.. -*- mode: rst -*-
# -*- mode: markdown -*-

I believe that file variables are used widely enough to make them recognizable (i.e. they are used by Python to determine source file encoding).

I'm not sure my code is good enough for you, but I'm not used to writing Ruby unfortunately. If the request as a whole makes sense, but implementation is questionable, I'll be glad to fix it.

piranha commented Aug 16, 2011

Are there any reasons against such a change? I would really love to see that working on github...

+1 -- Much cleaner than extension-based dispatch in my opinion.

+1 Would love to have this too (sorry, if I missed some star or follow mechanism to support this pull request). I could also live with the changes suggested by this pull request (uses vim mode lines).

zwass commented Dec 18, 2012

Is there a reason this pull request has been sitting here without merge or comment for a year? Seems like a sensible feature.

@gjtorikian gjtorikian closed this Sep 24, 2013

zwass commented Sep 30, 2013

@gjtorikian Can you please comment on why you are closing this request?

Member

gjtorikian commented Sep 30, 2013

Mostly because

  1. It's a request from over three years ago
  2. Introduces an overhead for any file without an extension to be opened up, looked at, and parsed
  3. Doesn't really introduce any new functionality

I'm sorry that extensions are bothersome to some but it's the world we live in.

zwass commented Sep 30, 2013

While I disagree with your conclusion, I do appreciate understanding why it was made. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment