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

Add support for org mode files #81

Closed
nukeop opened this issue May 31, 2018 · 8 comments
Closed

Add support for org mode files #81

nukeop opened this issue May 31, 2018 · 8 comments
Labels
💥 feature "Good luck, you're gonna need it." wontfix

Comments

@nukeop
Copy link

nukeop commented May 31, 2018

Displaying correctly formatted org mode (or maybe even Markdown) files would be incredible.

@senorprogrammer senorprogrammer added 💥 feature "Good luck, you're gonna need it." medium labels May 31, 2018
@senorprogrammer
Copy link
Collaborator

The formatting part, not too tough I suspect (at least for Markdown, not entirely sure about org mode). But how do you see this working? Actually implementing an functionality of org mode would be pretty difficult. Are you thinking just display only?

@nukeop
Copy link
Author

nukeop commented Jun 9, 2018

Yes, displaying formatted text would be enough. I don't know if there are any Go modules for highlighting org mode syntax, I'm sure there must be something for displaying markdown in shell though.

@senorprogrammer senorprogrammer changed the title Improvement: Add support for org mode files Add support for org mode files Jun 13, 2018
@rhnvrm
Copy link
Contributor

rhnvrm commented Jul 19, 2018

This package https://godoc.org/github.com/zyedidia/highlight provides syntax highlighting information, although a yaml file for Org is missing. They have given an example in their README which prints to the screen using the color package. I can contribute a widget using this that does what is shown in their example. Does this sound fine? Or I could also add this functionality to the https://github.com/senorprogrammer/wtf/blob/master/textfile/widget.go

What would be better?

@senorprogrammer
Copy link
Collaborator

Let's add it to textfile/widget.go. I really like the idea of that module being able to format/highlight its contents based on the filetype without the user having to do anything special to make it work.

@senorprogrammer
Copy link
Collaborator

And thanks for looking into this! It would be an awesome improvement.

@rhnvrm
Copy link
Contributor

rhnvrm commented Jul 20, 2018

Have added this here: #250

Although, +1 for org mode,

I have opened an issue at zyedidia/highlight#11

@rhnvrm
Copy link
Contributor

rhnvrm commented Jul 20, 2018

Sample

screenshot from 2018-07-20 12-36-30

senorprogrammer added a commit that referenced this issue Jul 23, 2018
feat: Added syntax highlighting to textfile widget. #81
@stale
Copy link

stale bot commented Jan 11, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jan 11, 2022
@nukeop nukeop closed this as completed Jan 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💥 feature "Good luck, you're gonna need it." wontfix
Development

No branches or pull requests

3 participants