danielmagnussons / orgmode

orgmode is for keeping notes, maintaining TODO lists, planning projects, and authoring documents with a fast and effective plain-text system.
MIT License
753 stars 70 forks source link

Pressing enter after a link at the end of the file opens the file whose name is the content of the document #51

Open lorenzhs opened 9 years ago

lorenzhs commented 9 years ago

Example:

* foo bar baz
  -> yay [[https://github.com/danielmagnussons/orgmode]]

Cursor is at the very last position (after the ]]). Pressing enter will open the file ./* foo bar baz\n -> yay [[https (it strips at the colon, for whatever reason).

Expected behaviour: If the link is in any other position in the document, the same action inserts a newline.

danielmagnussons commented 9 years ago

I had problems reproducing this one. But then I noticed, if this example line is last line in the file and no newlines after this example line, weird things happens. Nice find =)