LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-28-2015, 11:03 AM   #16
turboscrew
Member
 
Registered: Apr 2009
Location: Nokia (town), Finland
Distribution: Mint, Debian
Posts: 601

Original Poster
Rep: Reputation: 46

Thanks, moesasji, I needed that encouragement. ;-)
My head is already lumpy from banging it against all kinds of walls... ;-)
It's now installing which-key...
It's progressing... (I do have 10M/1M ADSL)
 
Old 11-28-2015, 11:51 AM   #17
turboscrew
Member
 
Registered: Apr 2009
Location: Nokia (town), Finland
Distribution: Mint, Debian
Posts: 601

Original Poster
Rep: Reputation: 46
It's there. Now I have to find out how it works. I'm familiar with Emacs (although I haven't used it lately) and vi (not so familiar with vim).
 
Old 11-28-2015, 12:32 PM   #18
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Umm...

Why not just make a branch in git, put your README.md update in that branch. Push the branch to github and look at the README.md there. If you like what you see, merge what you did in that branch to the branch that you want to keep and remove the old branch from your local repo and github.
 
Old 11-28-2015, 12:37 PM   #19
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,259

Rep: Reputation: 5338Reputation: 5338Reputation: 5338Reputation: 5338Reputation: 5338Reputation: 5338Reputation: 5338Reputation: 5338Reputation: 5338Reputation: 5338Reputation: 5338
vim-instant-markdown
 
Old 11-28-2015, 02:17 PM   #20
moesasji
Member
 
Registered: May 2008
Distribution: Slackware Current / OpenBSD
Posts: 322

Rep: Reputation: 104Reputation: 104
Quote:
Originally Posted by turboscrew View Post
It's there. Now I have to find out how it works. I'm familiar with Emacs (although I haven't used it lately) and vi (not so familiar with vim).
The beauty of spacemacs is that it is pretty well documented and can behave like vim or emacs. Typically you hit "SPC f e h" and search for the thing you need. In these case "markdown". That brings up the needed documentation. In this case hitting ",cp"(short for compile preview) would give the preview as long as you have enabled the markdown layer. Good luck.

Last edited by moesasji; 11-28-2015 at 02:18 PM.
 
1 members found this post helpful.
Old 11-28-2015, 02:36 PM   #21
a4z
Senior Member
 
Registered: Feb 2009
Posts: 1,727

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
Quote:
Originally Posted by moesasji View Post
The beauty of spacemacs is that it is pretty well documented and can behave like vim or emacs. Typically you hit "SPC f e h" and search for the thing you need. In these case "markdown". That brings up the needed documentation. In this case hitting ",cp"(short for compile preview) would give the preview as long as you have enabled the markdown layer. Good luck.
coding should be fun, but emacs requires to use defun, so I can not use it

 
Old 11-29-2015, 02:43 AM   #22
turboscrew
Member
 
Registered: Apr 2009
Location: Nokia (town), Finland
Distribution: Mint, Debian
Posts: 601

Original Poster
Rep: Reputation: 46
OMG! Emacs has really changed while I wasn't looking... only in about 15 years... :-)
I couldn't even find help - the <meta> seems to have changed. It used to be <esc>...
I'll re-learn later. Now I don't have the time.

I'd just like to see what my Readme looks like when pushed to github before I push it, but it seems to be too hard. Maybe (after pushing next commit) I'll just push the readme and see there...
It just kind of bothers me to use a public site like github for debugging 'simple text'.

Last edited by turboscrew; 11-29-2015 at 02:48 AM.
 
Old 11-29-2015, 04:28 AM   #23
turboscrew
Member
 
Registered: Apr 2009
Location: Nokia (town), Finland
Distribution: Mint, Debian
Posts: 601

Original Poster
Rep: Reputation: 46
Atom seems to work, but even with gfm-grammar selected, it doesn't show stuff the way github gfm documents say. Like ** doesn't seem to make anything bold and ''' doesn't make code block.

[edit]
Aha, gfm examples showed a bit more... Seems to work...
[/edit]

Last edited by turboscrew; 11-29-2015 at 04:57 AM.
 
Old 11-29-2015, 01:04 PM   #24
ryanpcmcquen
Member
 
Registered: Apr 2013
Distribution: DistroWanderer
Posts: 381

Rep: Reputation: Disabled
I'm a big fan of Zed. Ctrl + P gets you into preview mode, which renders markdown.

http://slackbuilds.org/apps/zed/

I still use Vim on the console though.
 
Old 11-29-2015, 08:33 PM   #25
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Quote:
Originally Posted by turboscrew View Post
OMG! Emacs has really changed while I wasn't looking... only in about 15 years... :-)
I couldn't even find help - the <meta> seems to have changed. It used to be <esc>...
It still is, AFAIK. Note that it's "hit esc" not "press-and-hold esc". If you have a windowsish keyboard, the "windows" key is commonly mapped to meta (as in "press-and-hold" meta).

Help is cntrl-h (as it always has been).

(IMO, if you want to use emacs for this sort of thing, you should look into org-mode to write the documentation in *that* and export into markdown. That is not even close to the problem that you are trying to solve right now. If I were you, I'd use github to look at the markdown; it seems stupid, but the only place that knows how github will render markdown is github itself.)

Last edited by Richard Cranium; 11-29-2015 at 08:37 PM.
 
Old 11-30-2015, 02:04 AM   #26
MadMaverick9
Member
 
Registered: Aug 2010
Posts: 353
Blog Entries: 4

Rep: Reputation: Disabled
VIm and Hoedown or Markdown.
 
Old 11-30-2015, 03:49 AM   #27
turboscrew
Member
 
Registered: Apr 2009
Location: Nokia (town), Finland
Distribution: Mint, Debian
Posts: 601

Original Poster
Rep: Reputation: 46
Quote:
Originally Posted by Richard Cranium View Post
It still is, AFAIK. Note that it's "hit esc" not "press-and-hold esc". If you have a windowsish keyboard, the "windows" key is commonly mapped to meta (as in "press-and-hold" meta).

Help is cntrl-h (as it always has been).

(IMO, if you want to use emacs for this sort of thing, you should look into org-mode to write the documentation in *that* and export into markdown. That is not even close to the problem that you are trying to solve right now. If I were you, I'd use github to look at the markdown; it seems stupid, but the only place that knows how github will render markdown is github itself.)
What I meant was that <esc>-x didn't get me anywhere. And neither did ctrl-X b or <esc>-b or ctrl-X 1. It looked like <esc><char> sequence were changed to <alt>-<char>.

I selected Emacs Holy, but I found myself using basically Vim (':' brought me to command buffer) and I had to use 'a', 'i' or 'o' to write anything. I checked the dot-file and the settings were consistent with my selections.

Last edited by turboscrew; 11-30-2015 at 03:52 AM.
 
Old 11-30-2015, 03:57 AM   #28
turboscrew
Member
 
Registered: Apr 2009
Location: Nokia (town), Finland
Distribution: Mint, Debian
Posts: 601

Original Poster
Rep: Reputation: 46
I'm checking Atom now. I already edited the file and I'll push and see the results after I've fixed something first. Then I'll see if Atom is good for that.

How the heck can it be so difficult to make a simple viewer... Maybe I'll look into it when I finish my current project - unless there are plenty of simple viewers by then. ;-)
 
Old 11-30-2015, 04:24 AM   #29
MadMaverick9
Member
 
Registered: Aug 2010
Posts: 353
Blog Entries: 4

Rep: Reputation: Disabled
Quote:
Originally Posted by turboscrew View Post
How the heck can it be so difficult to make a simple viewer...
Huh?? Your web browser ain't working for viewing html?
Code:
hoedown README.md > /tmp/readme.html
firefox /tmp/readme.html
I would not be surprised if Github uses "hoedown" (or a similar tool) to generate the html when displaying the "README.md" file. And "hoedown" correctly converts "```" to "<code>" tags.
 
1 members found this post helpful.
Old 11-30-2015, 08:22 AM   #30
ryanpcmcquen
Member
 
Registered: Apr 2013
Distribution: DistroWanderer
Posts: 381

Rep: Reputation: Disabled
Quote:
Originally Posted by turboscrew View Post
I'm checking Atom now. I already edited the file and I'll push and see the results after I've fixed something first. Then I'll see if Atom is good for that.

How the heck can it be so difficult to make a simple viewer... Maybe I'll look into it when I finish my current project - unless there are plenty of simple viewers by then. ;-)
Look at:

https://github.com/chenzhiwei/chrome-markdown-editor
https://jbt.github.io/markdown-editor/
https://github.com/jpadilla/ember-poe
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: The search for a usable Markdown editor for my Linux desktop LXer Syndicated Linux News 0 10-07-2014 12:11 PM
LXer: The search for a usable Markdown editor for my Linux desktop LXer Syndicated Linux News 0 10-06-2014 09:33 PM
LXer: Markdown Editor Roundup: gedit vs. UberWriter vs. ReText LXer Syndicated Linux News 0 02-28-2014 07:40 AM
LXer: ReText 3.0 Released (Text Editor For Markdown And reStructuredText) LXer Syndicated Linux News 0 03-09-2012 03:41 PM
LXer: ReText: A Text Editor with Support for reStructuredText and Markdown LXer Syndicated Linux News 0 11-24-2011 08:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration