scrod / nv

Notational Velocity: modeless, mouseless Mac OS X note-taking application
http://notational.net
GNU General Public License v3.0
2.06k stars 404 forks source link

Formatting created on nvalt (for mac) is lost when sync with simplenote (for android) #368

Open brunolajoie opened 6 years ago

brunolajoie commented 6 years ago

If I format part of a note (ex: bold) on nvalt (2.2.7) on my mac (OS 10.12.6), and activate synchronization with simplenote on my android (7), the formatting is not saved: neither on my mac, nor on my android.

If synch is turned off, the formatting is saved.

alex-seosavvy commented 6 years ago

@brunolajoie I had the same problem. It worked fine but then for some reason stopped going bold. I fixed it by going to Settings -> Notes -> "Store and read notes on disk as:" Rich Text Format

screenshot 2017-12-06 12 20 50

lippytak commented 6 years ago

Still not working for me:

  1. Bold text
  2. Quit nvALT
  3. Re-open result: Text is not bold

Storage is set to .rtf:

screen shot 2018-01-09 at 1 36 28 pm

If I turn off SimpleNote syncing the formatting is retained.

On 2.2.8 nvALT and 10.13.2 High Sierra if that matters...

Any ideas?

brunolajoie commented 6 years ago

I have the same trouble, unfortunately, it seems that is impossible to fix by design: According to @ttscoff "Simplenote does not maintain rich formatting. And all of the features in nvALT were designed to work with Markdown, so there's technically no rich text support."

lippytak commented 6 years ago

Got it. But what does 'designed to work with Markdown' mean exactly? If I start a line with # for example, the text style doesn't change at all. Also IIRC this wasn't an issue in classic NV if that offers a hint.

ttscoff commented 6 years ago

Most of the features added in nvALT are built around Markdown. Nothing changes in the editor, but there are shortcuts and autocompletions for writing Markdown, and a preview for rendering it in a separate window as you type.

On 9 Jan 2018, at 16:41, Jake Solomon wrote:

Got it. But what does 'designed to work with Markdown' mean exactly? If I start a line with # for example, the text style doesn't change at all.

-- You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub: https://github.com/scrod/nv/issues/368#issuecomment-356438256

lippytak commented 6 years ago

Ok, thanks for clarifying. So just to confirm - there's no way to retain text formatting in the editor with simplenote sync? Any other creative ideas for how to enable editing on iOS without running into this issue?

Obviously not a huge deal but definitely a nice-to-have.

Thanks!

ttscoff commented 6 years ago

(my suggestion would obviously be to use Markdown instead of RTF. But that's just me.)

On 9 Jan 2018, at 17:25, Jake Solomon wrote:

Ok, thanks for clarifying. So just to confirm - there's no way to retain text formatting in the editor with simplenote sync? Any other creative ideas for how to enable editing on iOS without running into this issue?

Obviously not a huge deal but definitely a nice-to-have.

Thanks!

-- You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub: https://github.com/scrod/nv/issues/368#issuecomment-356447667

lippytak commented 6 years ago

@ttscoff I'm actually HAPPY to use markdown for formatting but I think I'm missing something obvious here. Should the editor actually show markdown formatting? I neither see formatting when I use markdown syntax in the editor nor is there a .md storage option:

screen shot 2018-01-10 at 11 44 01 am screen shot 2018-01-10 at 11 44 07 am

Am I doing something wrong here?

Sorry for all the back-and-forths!

ttscoff commented 6 years ago

The editor doesn't show anything different. You need to store as plain text files, and optionally add ".md" to extensions, using the checkmark to make that the default. Enable Markdown Completions (Preview menu or ⌘⇧M). ⌃⌘P will open the HTML preview window.

I would suggest continuing this thread on the ttscoff/nv repo as it's not pertinent to Notational Velocity.

-Brett

On 10 Jan 2018, at 13:48, Jake Solomon wrote:

@ttscoff I'm actually HAPPY to use markdown for formatting but I think I'm missing something obvious here. Should the editor actually show markdown formatting? I neither see formatting when I use markdown syntax in the editor nor is there a .md storage option: <img width="204" alt="screen shot 2018-01-10 at 11 44 01 am" src="https://user-images.githubusercontent.com/2533112/34792171-09b3f670-f5fc-11e7-9073-f0a8821df2c8.png"> <img width="328" alt="screen shot 2018-01-10 at 11 44 07 am" src="https://user-images.githubusercontent.com/2533112/34792170-0964af02-f5fc-11e7-801d-a550f924c026.png">

Am I doing something wrong here?

Sorry for all the back-and-forths!

-- You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub: https://github.com/scrod/nv/issues/368#issuecomment-356715760

lippytak commented 6 years ago

Apologies, I thought this was the nvALT repo all along!

afeblot commented 6 years ago

But what is the meaning of such direct formatting in a markdown editor? When applying ⌘B on a word, instead of getting bold in the editor with no change in the preview window, shouldn't it be transformed to **word** in the editor, and appear bold in the preview?

brunolajoie commented 6 years ago

The point is to use the editor to both write and read your text. The whole point of nvalt being for me to use as few clicks as possible to read or write notes on the go

Googlehupf commented 5 years ago

I had the same problem but never used SimpleNote syncing. I store my nvALT notes as plain text in a Dropbox folder. Once the file is autosaved, direct formatting was lost.

However, I found that under "Editing", if I choose to keep copied formatting, the direct formatting is not lost when saving / syncing. Not sure why but, well, there it is.

ttscoff commented 5 years ago

There has been no change to sync behavior. Rich text formatting is not preserved in plain text files, as per nomenclature.

-Brett

On 6 Jul 2018, at 8:03, Googlehupf wrote:

I have the same problem but never used SimpleNote syncing. I store my nvALT notes as plain text in a Dropbox folder. Once the file is autosaved, direct formatting is lost.

This behavior was not present in older nvALT versions, I'm sure of that. Changes to the sync routine must have introduced it with TXT files.

However, in my case, setting the storage to RTF worked. I am not really happy, though, since I like to keep everything TXT as much as possible and I had to manually work my way through 250 notes or so where I require direct formatting.

-- You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub: https://github.com/scrod/nv/issues/368#issuecomment-403027868

Googlehupf commented 5 years ago

Thank you for making it clear that there was no change to sync behavior. Yeah, well, as you can see, doubts got the better of me and I had edited my post (before your reply).

But to clarify, I was referring to nvALT's ability to save a note as plain text---no rich text formatting---but in nvALT nevertheless have direct formatting.

This now was lost during autosave. I don't think that was the case in previous versions. The solution is to choose to keep copied formatting in the "Editing" options. I only made the connection after I had already posted the wrong guess.

thiemehennis commented 5 years ago

same problem here. I don't use Simplenote to sync, but have my notes stored in Dropbox. I've updated to High Sierra (using a refurbished 2010 MBP) but unlike my other mac with the same settings running El Capitan, here the formatting in NValt is directly lost.

EDIT: I save them as plaintext .md files (if that makes sense) and use 1Writer on IOS to open and edit them on my phone.