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

Support bold and italic #52

Closed
gonzalocasas opened this issue Feb 5, 2018 · 8 comments
Closed

Support bold and italic #52

gonzalocasas opened this issue Feb 5, 2018 · 8 comments

Comments

@gonzalocasas
Copy link

It would be nice to have bold and italics support using markdown, in a similar way Atom and Code have.

@Redmega
Copy link
Contributor

Redmega commented Feb 9, 2018

in a similar way Atom and Code have

Atom and Code don't allow you to bold from within the text editor, I believe. If you're talking about the markdown preview they support, that's compiling (transpiling?) your written .md into markdown and showing it in the window. Not quite the same.

However, I believe bold can be implemented anyway and would be good in order to emphasize text within Left.

@neauoire Do you feel like you should have to *type* asterisks around the word you want bolded, or should a cmd/ctrl + b toggle bold text? Or both? If asterisks, would the asterisks hide themselves? What do you think @gonzalocasas ?

Which do you think would work best with the minimalistic control scheme?

@neauoire
Copy link
Member

neauoire commented Feb 9, 2018

Ideally cmd/ctrl + b would append * before and after the selected word. I want left to always display all characters. It's a plain-text editor more than anything else.

@gonzalocasas
Copy link
Author

Atom and Code don't allow you to bold from within the text editor, I believe.

They do, and it does not require compiling/transpiling+previews, it's inlined.

Atom:
image

Code:
image

The shortcut is secondary imo, it does not add a lot of value.

@Redmega
Copy link
Contributor

Redmega commented Feb 9, 2018

That depends on your syntax theme, as that's part of the syntax highlighting, and probably not the editor.

For example, the theme I'm using actually supports the bold and italics like yours, but my titles aren't bold.

In any case, thanks for showing me that, I never realized! I don't use it for markdown much outside of README's.

@gonzalocasas
Copy link
Author

I don't recall exactly, but I think VS Code comes with these settings/syntax highlighting out of the box. Atom I probably customized, you're right.

@neauoire
Copy link
Member

I will not add syntax highlight, or font styles to Left.
Sorry

@pacocoursey
Copy link
Contributor

What if wrapping text with certain characters triggered a style being applied? The text would be still be stored as plain-text but it would show up as having styles.

For example:

This passage of text has a *bold* string.

When typing the asterisks around a bit of text, a <span class="bold"></span> could be applied. The file would still contain the plain text string.

*text* bold
/text/ italics
-text- strikethrough
_text_ underline

etc...

I believe Bear Writer does this.

@neauoire
Copy link
Member

neauoire commented Sep 11, 2018

It's a slippery slope to getting asked to implement tables and images and other things.
I personally don't use Left to write markup text.

If you would like to try and implement bold, underline and italic, give it a shot.
There are some really good markup templating tools out there, I prefer to think of Left as a tool made just for writing.

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

4 participants