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

smart squotes and apostrophe #313

Closed
wants to merge 9 commits into from
Closed

smart squotes and apostrophe #313

wants to merge 9 commits into from

Conversation

rwxrob
Copy link

@rwxrob rwxrob commented Jan 27, 2020

No description provided.

@rwxrob
Copy link
Author

rwxrob commented Feb 1, 2020

Hey there, would you mind giving me an update as to the possibility of this being accepted? If it is not something you are interested in I understand. I just want to know if I should reconfigure my lab systems to use my fork or remain with your main one. Thank you.

@alerque
Copy link
Member

alerque commented Feb 1, 2020

Sorry this is just a big change to review and I haven't been on the right systems to do it. Also next time please make changes in the original branch, opening new PR's makes it hard to follow the history and see what changed between reviews.

That being said I think this looks good overall. I'm sure we'll be able to include it here so no need to fork. There might be a few things to tweak first. Let me try to get it running locally.

" corrects distracting conceal (ligature) background colors, blue makes
" it obvious that the character is a ligature instead of an actual Unicode
" character since both can exist in the same file
hi Conceal ctermbg=none ctermfg=Blue
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this be linked to an existing highlight group of some sort rather than hard coding a color? That way it will play nice with themes. Special, Macro, or Character might work.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually I think this might be better left to color schemes entirely. I get that the vim defaults are pretty bad, but for any color scheme that does try to set the colors for Conceal having a plugin hard code an override for that is kind of rough luck. I think I'd rather see this bit contributed to whatever colorscheme you use and/or added to users' vim-rc file.

@rwxrob
Copy link
Author

rwxrob commented Feb 13, 2020

This is not an enhancement. As you will find many of my changes correct omissions in ranges that are expected.

I am closing this ticket and will be maintaining my own fork from now on and adding several other critical formatting and color fixes to those you have already rejected, as well as several other things that have bothered me for some time:

  • Removing distracting, hard to read, often unsupported ligatures
  • Fixing the broken table syntax highlighting.
  • Adding a theme system for those who need to tweek their colors.

These changes and others constitute a significant diversion from the existing project so I feel forking is best. In fact, because I will be removing a lot of functionality and catering to my simplified (Ezmark) Pandoc variation I'll change the name to vim-pandoc-syntax-ez instead. It is 100% compatible with Pandoc Markdown but removes redundancy reducing the time to learn. (I work with many young people learning Pandoc and Markdown for the first time.)

Hopefully someone will find my fixes helpful and decide one day to implement them in whatever way seems best to them. Thanks for your consideration and time.

@rwxrob rwxrob closed this Feb 13, 2020
@alerque
Copy link
Member

alerque commented Feb 14, 2020

You are welcome to maintain your own fork with tweaks suitable for your usage. But at the same time we do still want to pull in the fixes and improvements you've presented here. The only request we made is that it not also mess with overriding themes. If you don't want to make that change to contribute here I'm happy to fix it up myself, and then you can fork with only a minimal set of changes including the theming bit.

@alerque alerque reopened this Feb 14, 2020
@alerque alerque closed this Feb 14, 2020
@alerque
Copy link
Member

alerque commented Feb 14, 2020

(PR re-closed because I just realized it is against your master branch and I can't pull in the latest or fix stuff there, so I'll had to do this in another branch).

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

Successfully merging this pull request may close these issues.

2 participants