Commit Graph

23 Commits

Author SHA1 Message Date
Alex Vear
6a29a2e961 Better Org mode hyperlink syntax highlighting and disabled link conceal
Org mode hyperlinks are now fully syntax highlighted (similar to
Markdown links).

The `org_conceal_links` option has been removed in favour of using
built-in Vim options to enable concealing (with a short section in the
`doc/org.txt` file on how to do this).  This was done because concealed
text makes navigating "hard-wrapped" documents difficult (especially
when the concealed text is as long as most URLs).
2020-02-15 03:17:49 +00:00
Alex Vear
d671e862e4 Syntax highlight and correctly format/manipulate lists
Adds support for syntax highlighting and formatting both ordered and
unordered lists (excluding unordered lists delimited with `*`, as they
conflict with headings and are generally not recommended).

e.g.

    1. Foo
    2. Bar
       1) Biz
       2) Baz

    - Foo
      - Bar
    + Biz
      + Baz
2020-02-15 02:19:15 +00:00
Alex Vear
f8d010c672 Significantly improved accuracy of in-line delimiter matching
Previously the following would've caused everything after the `/` to be
italicised (until it found a second `/`).

    foo/bar

The same happened with all of the other in-line delimiters.  This was
clearly not good enough.

The new in-line delimiter matching is now much closer to Emacs' than
before while maintaining Unicode support (as well as Vim can offer).
2020-01-05 00:29:14 +00:00
Alex Vear
0a98223c0b Fix in-line verbatim and code delimiters 2019-12-06 22:19:45 +00:00
Alex Vear
b8eb8a82d0 Enable italic text rendering by default 2019-10-05 16:59:55 +01:00
Alex Vear
a5f5784970 Allow verbatim and monospace delimiters to work across multiple lines 2019-09-28 17:34:56 +01:00
Alex Vear
71b097df62 Slight clean up of the syntax files 2019-09-28 17:15:13 +01:00
Alex Vear
f7e1410f09 Remove org_clean_folds' and org_highlight_table_background' options
Both of these options were pointless and
`org_highlight_table_background' had visual issues.
2019-09-22 22:58:54 +01:00
Alex Vear
9e067addad Improve Vim start-up time and allow buffer specific state keywords 2019-09-22 22:15:28 +01:00
Alex Vear
1ee078feb3 Allow bold, italic, underlined text to span across multiple lines 2019-09-22 20:58:35 +01:00
Alex Vear
569371ce1a Don't match empty bold, italic, underline and strike through delimiters 2019-09-22 20:44:25 +01:00
Alex Vear
8f83aae020 Add configuration option to conceal links and enabling cleaner folds 2019-09-22 19:25:25 +01:00
Alex Vear
c47ffd4ec6 Relicence under the Vim licence, add legal info and update file headers 2019-09-22 18:01:36 +01:00
Alex Vear
8890503965 Add port of GNU Emacs' Outline mode
<https://www.gnu.org/software/emacs/manual/html_node/emacs/Outline-Mode.html>
2019-09-22 16:36:45 +01:00
Alex Vear
52085b419f Use same highlight groups used by the Markdown syntax highlighting file 2019-04-06 18:13:11 +01:00
Alex Vear
957f6597b9 Add inactive timestamps 2019-02-25 22:53:48 +00:00
Alex Vear
fbbf533338 Improve syntax highlighting colours and remove heading length limit 2019-02-25 22:43:49 +00:00
Alex Vear
6c1bd97a04 Allow configuring TODO state keywords 2019-02-25 21:12:17 +00:00
Alex Vear
c25e89e1e6 Update file headers 2019-02-25 21:11:33 +00:00
Alex Vear
481fde5dc4 Fix issues with spell check and disable italic font by default
- Fixes issues with Vim's spell checker not spell checking regular text
  in Org-mode files.
- Disables the use of italic fonts by default (an option is now
  provided to change this behaviour).
- Disabled conceal for all elements except hyperlinks.
- Concealed elements are now only unconcealed when editing the text.
- Re-organised blocks in the syntax file.
2019-02-24 14:59:22 +00:00
Alex Vear
0fc590b293 Fix issues with hyperlinks 2019-02-24 13:23:19 +00:00
Alex Vear
308e105630 Add table syntax highlighting 2019-02-24 11:57:26 +00:00
Alex Vear
0406612877 Initial commit 2018-12-08 22:40:13 +00:00