# I am the Watcher. I am your guide through this vast new twtiverse.
# 
# Usage:
#     https://watcher.sour.is/api/plain/users              View list of users and latest twt date.
#     https://watcher.sour.is/api/plain/twt                View all twts.
#     https://watcher.sour.is/api/plain/mentions?uri=:uri  View all mentions for uri.
#     https://watcher.sour.is/api/plain/conv/:hash         View all twts for a conversation subject.
# 
# Options:
#     uri     Filter to show a specific users twts.
#     offset  Start index for quey.
#     limit   Count of items to return (going back in time).
# 
# twt range = 1 36
# self = https://watcher.sour.is/conv/6ywpjna
Testing posting from yarnc using the new $EDITOR function. πŸ‘Œ
I do love my Vim (or maybe it's Stockholm Syndrome 🀣) so this is pretty neat.
Woops, yarnc did not like my newline in that post (even though it's not showing as a newline in the web interface).

@eldersnake Haha glad you like it 😁
@eldersnake Haha glad you like it 😁
@eldersnake (because vim won't let you out again? ;)
@eldersnake I love Vim too 😍
@eldersnake I love Vim too 😍
@prologic Did you get to try https://github.com/martanne/vis in the meantime?
@adi Not sure about prologic, but I have tried Vis a bit. It's not bad, the only thing that bugs me a bit is everytime it's started there's a bit of a "flash" while it applies settings, like set number, setting a theme etc.
It's not at all a problem, I'm just a bit OCD about it I guess πŸ˜‚
@eldersnake Eh sorry what do you mean? πŸ€”
@eldersnake Eh sorry what do you mean? πŸ€”
@adi No not particularly interested in that tbh
@adi No not particularly interested in that tbh
@prologic All the text after the newline doesn't show in the yarnc timeline.
@eldersnake Oh really?! 😳
@eldersnake Oh really?! 😳
@prologic Yeah, including posts made from the web interface



There's an entire line missing from that post, eg:

> It’s not at all a problem, I’m just a bit OCD about it I guess πŸ˜‚

Although in that post I didn't think that was a newline, so I'm not too sure what's going on.
@eldersnake That particular Twt comes in from the API as:\n\n
#!json\n    {\n      "twter": {\n        "nick": "eldersnake",\n        "url": "https://yarn.andrewjvpowell.com/user/eldersnake/twtxt.txt",\n        "avatar": "https://yarn.andrewjvpowell.com/user/eldersnake/avatar",\n        "tagline": ""\n      },\n      "text": "Testing posting from 
yarnc using the new $EDITOR function. πŸ‘Œ\\nI do love my Vim (or maybe it's Stockholm Syndrome 🀣) so this is pretty neat.",\n "created": "2021-11-04T16:00:04+11:00",\n "markdownText": "Testing posting from yarnc using the new $EDITOR function. πŸ‘Œ\\nI do love my Vim (or maybe it's Stockholm Syndrome 🀣) so this is pretty neat.",\n "hash": "6ywpjna",\n "tags": [],\n "subject": "(#6ywpjna)",\n "mentions": [],\n "links": []\n },\n
\n\nHmmm looks alright, must be a display bug with yarnc itself πŸ€”
@eldersnake That particular Twt comes in from the API as:

n
    {
      "twter": {
        "nick": "eldersnake",
        "url": "https://yarn.andrewjvpowell.com/user/eldersnake/twtxt.txt",
        "avatar": "https://yarn.andrewjvpowell.com/user/eldersnake/avatar",
        "tagline": ""
      },
      "text": "Testing posting from 
yarnc.", "created": "2021-11-04T16:00:04+11:00", "markdownText": "Testing posting from yarnc.", "hash": "6ywpjna", "tags": [], "subject": "(#6ywpjna)", "mentions": [], "links": [] },


Hmmm looks alright, must be a display bug with yarnc itself πŸ€”
@eldersnake That particular Twt comes in from the API as:

n
    {
      "twter": {
        "nick": "eldersnake",
        "url": "https://yarn.andrewjvpowell.com/user/eldersnake/twtxt.txt",
        "avatar": "https://yarn.andrewjvpowell.com/user/eldersnake/avatar",
        "tagline": ""
      },
      "text": "Testing posting from 
yarnc.", "created": "2021-11-04T16:00:04+11:00", "markdownText": "Testing posting from yarnc.", "hash": "6ywpjna", "tags": [], "subject": "(#6ywpjna)", "mentions": [], "links": [] },


Hmmm looks alright, must be a display bug with yarnc itself πŸ€”
@eldersnake Exactly!
@eldersnake Didn't notice that. Maybe you can file a bug report. Anyway, I prefer it due to it being lighter.
Need @xuu 's help on this one πŸ˜… WIP PR => https://git.mills.io/yarnsocial/yarn/pulls/501=
Need @xuu 's help on this one πŸ˜… WIP PR => https://git.mills.io/yarnsocial/yarn/pulls/501=
@prologic make the text field twt.LiteralText() instead of twt.FormatText() and you should be good. https://i.imgur.com/FIpSnkj.png
@prologic make the text field twt.LiteralText() instead of twt.FormatText() and you should be good. https://i.imgur.com/FIpSnkj.png
@xuu Oh I see! πŸ€” Hmm but what is .FormatText doing here to strip the other lines out? πŸ€”
@xuu Oh I see! πŸ€” Hmm but what is .FormatText doing here to strip the other lines out? πŸ€”
@prologic Its not FormatText stripping out the lines. That formats with \\n newlines so when unmarshalling it tries to parse the text and sees that as the end of twt. LiteralText keeps the newlines as \\u2028
@prologic Its not FormatText stripping out the lines. That formats with \n newlines so when unmarshalling it tries to parse the text and sees that as the end of twt. LiteralText keeps the newlines as \u2028
@prologic Its not FormatText stripping out the lines. That formats with \\n newlines so when unmarshalling it tries to parse the text and sees that as the end of twt. LiteralText keeps the newlines as \\u2028
line in question: https://git.mills.io/yarnsocial/yarn/src/branch/master/types/lextwt/ast.go#L793
line in question: https://git.mills.io/yarnsocial/yarn/src/branch/master/types/lextwt/ast.go#L793
@xuu Oh I see! πŸ‘Œ
@xuu Oh I see! πŸ‘Œ
Good work @xuu !