Commit Graph

1059 Commits

Author SHA1 Message Date
Tinmarino 34ceee8aaa Fix VimwikiTabDropLink mistakely removed in previous commit (tk Nudin) 2023-03-12 01:48:31 -03:00
Tinmarino cd5ef6c4c7 CI small change: add name to workflow to avoid the full path to display 2023-03-12 01:18:26 -03:00
Tinmarino 6d4208157d CI: Add Typos check and fix some typo 2023-03-12 01:15:28 -03:00
Tinmarino 48ce5b811d Cechk: add workfloa-diaptch trigger 2023-03-11 21:44:13 -03:00
Tinmarino acff8a5b1d Check: Change .travis CI to GitHub Actions CI (GHA) 2023-03-10 13:55:18 -03:00
Tinmarino 59402cdf8b Highlight markdown typeface more compliant with Github Flavoured Markdown 2023-03-10 13:54:40 -03:00
Brennen Bearnes fea8bee382 housekeeping: remove non-working / deprecated mirror.yml 2022-12-04 21:25:52 -07:00
Brennen Bearnes 6d87df76cb housekeeping: update issue template for new workflow, add branch mirroring 2022-12-04 19:38:42 -07:00
Brennen Bearnes 0629b39815 switch to calver; add g:vimwiki_version; tidy version hardcoding
Setting a global for g:vimwiki_version doesn't seem too egregious, and
lets us reference it cleanly elsewhere.

Removes version header from vimwiki.txt and hardcoding in tagfile
generation.

There's still one instance of that left in test/tag.vader that we should
clean up eventually.
v2022.12.02
2022-12-02 14:46:35 -07:00
Brennen Bearnes 221377f4fa version to 2.6.0; rewrite docs for rolling release
This:

  - Changes version number everywhere I could find it.
  - Reworks get_version() to dispense with stable / dev division.
  - Rewrites CONTRIBUTING.md to describe a new release workflow.

The development/release workflow stuff could use some thought.  It's
clunky at best.  There's sort of an inherent tension between semver-style
version numbers and the rolling release thing - maybe we should just use
commit hash or something date-based?

Still, it's a start.
2022-11-29 22:57:10 -07:00
Brennen Bearnes 487eb21385 Merge branch 'master' into release/2.6.0 2022-11-28 19:52:14 -07:00
xgpt 584f073a28 minor documentation improvement
Adds sentence to allow for keyword searches for "orphaned" to hit on this function to find missing links. "Orphaned" or "Orphan" is used to describe such files in similar PKM software used in the PKM community.
2022-08-23 16:48:01 -06:00
Brennen Bearnes c21c939b06 resolve_link(): check ext against version with dot (fixes #1256)
It turns out that the target extension here in `ext` has a dot prepended.

Under manual testing, this seems to fix the issue where a wiki with
`markdown_link_ext` set and using `.md` (for example) in links will wind up
taking people to pages with a repeated extension, like `foo.md.md`.

I feel like the repeated use of:

    vimwiki#vars#get_wikilocal('ext', link_infos.index)

here should probably be replaced with a named variable like `target_ext`,
but I wanted to touch the minimum lines of code possible for this fix.
2022-08-15 13:00:11 -06:00
Brennen Bearnes fc2e9f0dba vimwiki.txt: include jsn and Vimwiki2HTMLBrowse fix
For https://github.com/vimwiki/vimwiki/pull/1240
2022-07-18 20:52:08 -06:00
dmitry kim bd65f7dd7c make vimwiki#html#Wiki2HTML respect 'html_filename_parameterization'
Fixes `:Vimwiki2HTMLBrowse` when vimwiki_markdown is in use.
2022-07-18 20:50:00 -06:00
Brennen Bearnes d7ec12645a append extension to links containing "." (fixes #950) (#1236)
If a link contains `.`, then this:

  fnamemodify(link_text, ':e')

will return the last .-separated part of the name as extension, and nothing
else will get appended.  Instead, we check if the extension is empty _or_
doesn't match the extension for the target wiki, in which case we append
the correct one.

This seems like it works, and might not break anything else, given the
branch of the function that it's in.

Co-authored-by: Brennen Bearnes <code@p1k3.com>
2022-07-18 18:08:18 -06:00
Brennen Bearnes 7cfc3eee22 diary: use :drop for :VimwikiMakeDiaryNote
I find this is one of the more common reasons I wind up with way too many
copies of the same file open.

This adds 2 new magic numbers to vimwiki#diary#make_note()'s second
parameter: 4 for `tab drop` and 5 for `drop`.  It also checks to make sure
:drop exists in the current build.
2022-07-18 18:07:02 -06:00
Brennen Bearnes 8e4202847f follow_link: reuse existing tabs with tab drop (closes #238)
Replaces :e in `vimwiki#base#follow_link()` with :drop, making this the
default behavior for pressing <CR> on a link.  Checks for the existence
of :drop first, since this isn't available in some builds.

Adds a new :VimwikiTabDropLink and makes this a default for the keybindings
formerly occupied by :VimwikiTabnewLink; leaving :VimwikiTabnewLink
available for backwards compatibility and anyone who still wants the old
behavior.

Doesn't touch the split window reuse functionality, or the
:VimwikiGoBackLink behavior, although I can see an argument for adding
:drop to the latter.

I've wanted this for a while and happened to notice @davidlmontgomery's
patch from 2016 in #238.  Code has moved around a little since, but I
think this is correct.
2022-07-18 18:07:02 -06:00
Brennen Bearnes 3ac8e1ae14 fixed s:get_links so that it finds both link styles when using markdown syntax 2022-07-18 17:44:04 -06:00
Felix Wolfsteller 2a8775c21d update link to tagbar
fixes #1250
2022-07-15 10:17:37 -06:00
Philipp Oberdiek 61c513d8d0 Add vader test for updating generated tag links 2022-04-09 20:14:04 -04:00
Philipp Oberdiek 4a0901a811 Search for already present tag links
If the tag link section should only be updated, search for an already
existing section and use the present tags for updating the links.
2022-04-09 20:14:04 -04:00
Philipp Oberdiek 7ab9983ddd Make collect_headers a global plugin function
This way it can be used in `tags.vim` to retrieve the headers of the
generated tag link section.
2022-04-09 20:14:04 -04:00
Philipp Oberdiek a905ee71e0 Update tag link captions in tag vader tests 2022-04-09 20:14:04 -04:00
Philipp Oberdiek 0690d8ad51 Add description key to tag link entries 2022-04-09 20:14:04 -04:00
Brennen Bearnes 63af6e72dd README.md: point to libera.chat channel (#1167) (#1194)
Co-authored-by: KaiserBarbarossa <kaiser.barbarossa@yandex.com>
Co-authored-by: Brennen Bearnes <code@p1k3.com>
2022-03-10 03:04:13 +01:00
Tinmarino 4d7a4da2e8 Doc fix helptags all (#1181) 2021-12-19 00:49:16 -03:00
Philipp Oberdiek c19e63b1e9 Make tag links relative to current file #794 (#1162)
Also add a vader test case and update the changelog as well as the list
of contributors.

Co-authored-by: Tinmarino <tinmarino@gmail.com>
2021-12-18 12:11:01 -03:00
Jean-Luc Bastarache ee31d45553 Feature: Add wiki page to buffer list using badd (#1185)
Co-authored-by: Tinmarino <tinmarino@gmail.com>
2021-12-18 12:08:54 -03:00
Tinmarino ecce184493 VimwikiTOC: update-listing in buffer more lazy (after #1155) 2021-12-18 11:53:59 -03:00
Tobias Mersmann 1bea2ce40a fix(update_listing_in_buffer): don't update listing if there are no changes
Before updating a listing, check if the update differs from the existing state.
Only then update the buffer, otherwise return early.

Initial reasoning: If `let g:vimwiki_auto_toc = 1` is set, saving a buffer would always update
the `contents`-section, even if there were no updates in this section. This lead to undesired
undo-behavior.

NOTE: this fix was only tested for the toc-listing.
2021-12-18 11:43:31 -03:00
ysftaha 2141fde8b8 Addresses issue #621 (#1181)
* issue#621: html highlighter

* docs for issue#621

* removing windows support for issue#621

Co-authored-by: Tinmarino <tinmarino@gmail.com>
2021-12-18 11:40:17 -03:00
Thomas Leyh 064a8f7ade Fix wildcard expansion in find_autoload_file
When using vim's native mechanism for `packages`, wildcards (*) are used
in the `runtimepath` since package folders can have arbitrary names.
They were not expanded, thus a path to e.g. `default.tpl` could not be
resolved when calling Vimwiki2HTML.

Resolves vimwiki/vimwiki#1193
2021-12-18 11:31:38 -03:00
Tulio Brunoro 95dd2e0d2c Revert breaking changes to customwiki2html.sh file
There is an extra space when calling the `basename` command, which causes the following error:
```
Vimwiki: 'basename: extra operand ‘md’
Try ''basename --help'' for more information.
```
2021-12-11 20:32:27 -07:00
Tomas Janousek 5148f5f601 Fix: Typo VimwikiUmderline → VimwikiUnderline in nested_typeface
(No idea how this typo actually manifests, just stumbled upon this by
chance.)
2021-12-11 20:26:44 -07:00
thecliguy a3a3fbf95f Replaced references to Freenode IRC with Libera 2021-09-20 11:16:56 -06:00
Lily Foster f28fe1ae43 Fix: Links opening in qutebrowser multiple times #763 2021-09-01 01:08:37 -06:00
Brennen Bearnes 8b53bd4c73 README.md: point to libera.chat channel (#1167)
README.md: point to libera.chat channel

Per discussion in #1131.

README-cn.md still needs updated.  This removes mention of the Telegram
group, but I'm guessing that can be re-bridged to the correct IRC / Matrix channel.

Co-authored-by: KaiserBarbarossa <kaiser.barbarossa@yandex.com>
Co-authored-by: Brennen Bearnes <code@p1k3.com>
2021-09-01 00:58:16 -06:00
petrisch 174eca3f06 Typo
Sorry for not beeing able to read.
2021-09-01 00:56:42 -06:00
paperbenni 22dcb36618 remove echo usage from VimwikiPasteLink 2021-07-29 13:53:27 -06:00
paperbenni 7d937615c1 Feature: VimwikiPasteLink to get absolute wiki link to the current file 2021-07-29 13:53:27 -06:00
Stephan T 1aa417fbd8 Fix typo 2021-07-28 10:33:05 -04:00
Tinmarino 212a66fcd6 Fix: forbid \$ for equation region start or stop #150 2021-06-11 12:06:43 -04:00
Tinmarino 369130edd7 Feature: Add thunderlink to schemes_web #435 2021-06-11 11:24:18 -04:00
Tinmarino c4e78fe310 Fix: Calendar integration if no vinwikilist #290 2021-06-11 10:57:56 -04:00
Tinmarino 45c89ebca4 Feature: Table cells permiting escaped separator (i.e. \|) #281 2021-06-11 10:50:53 -04:00
Tinmarino d43fdd14d2 Test: Demo: Renaming link text in markdown #1138 2021-06-11 09:22:52 -04:00
Tinmarino a182f7db8f Test: Fix bad space removed 2021-06-10 17:28:46 -04:00
Tinmarino 70682fc52f Pretty: Delete trailing space 2021-06-10 17:23:20 -04:00
Tinmarino 7eb6fed581 Pretty: Delete trailing space 2021-06-10 17:17:57 -04:00