From 788bbabd60fbbea184555fe3dd550fd30ded8953 Mon Sep 17 00:00:00 2001 From: jghauser Date: Wed, 16 Oct 2024 18:14:35 +0200 Subject: [PATCH 1/2] fix(at-cursor): also strip white space at beginning and end of ref --- lua/papis/at-cursor/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/papis/at-cursor/init.lua b/lua/papis/at-cursor/init.lua index 0951e20..13a3aa8 100644 --- a/lua/papis/at-cursor/init.lua +++ b/lua/papis/at-cursor/init.lua @@ -58,8 +58,8 @@ local function get_ref_under_cursor() end end - -- remove all punctuation characters at the beginning and end of string - ref = ref:gsub("^[%p]*(.-)[%p]*$", "%1") + -- remove all punctuation characters and white space at the beginning and end of string + ref = ref:gsub("^[%p%s]*(.-)[%p%s]*$", "%1") return ref end From bc2dd5faae277560a3bd0bb1fd4d4dcd03d00b66 Mon Sep 17 00:00:00 2001 From: jghauser Date: Wed, 16 Oct 2024 16:15:22 +0000 Subject: [PATCH 2/2] chore(docs): auto generate docs --- doc/papis.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/papis.txt b/doc/papis.txt index 5312a4c..444c3a3 100644 --- a/doc/papis.txt +++ b/doc/papis.txt @@ -1,4 +1,4 @@ -*papis.txt* For NVIM v0.8.0 Last change: 2024 October 13 +*papis.txt* For NVIM v0.8.0 Last change: 2024 October 16 ============================================================================== Table of Contents *papis-table-of-contents*