Commit Graph

17 Commits

Author SHA1 Message Date
clstb
7461d2bc4e feat: add test for save-block 2023-05-17 11:13:19 -04:00
Gabriel Horner
decbc12c53 Add a test to ensure there's no regression on bug
Also introduce helper fn for common db fixture setup
2023-05-16 11:35:18 +08:00
Gabriel Horner
818e735d7c Tag menu should stay open for multiple tags
Fixes #6805 and #8175
2023-02-13 15:34:26 +08:00
Gabriel Horner
32d23a7f44 Fix command and hashtag not triggering at start of a multi-line 2023-02-12 09:49:15 +08:00
Gabriel Horner
90003c0622 Move default case for keyup-handler out
Managing 10+ bindings in a fn is a recipe for bugs
2023-02-12 09:49:15 +08:00
Gabriel Horner
361e61efc7 Slash command closes after one space, fixes #5510 2023-02-12 09:49:15 +08:00
Gabriel Horner
475d4ce7d9 Fix command completion firing too often
Only fire at the beginning of a line or when starting a new word
2023-02-12 09:49:15 +08:00
Gabriel Horner
3440a3d433 Add back fix from #6147 along with its test cases
Also fix testing sexp and reset state
2022-11-23 12:21:36 +08:00
Andelf
674022d4fb test(editor): page-search-hashtag at handle-last-input 2022-11-23 12:21:36 +08:00
Andelf
e31cfb1c65 fix: lint 2022-11-23 12:21:36 +08:00
Andelf
40366f6dbf fix(test): use e2e to test hashtag 2022-11-23 12:21:36 +08:00
Gabriel Horner
b66ec9cd9f Add tests to confirm property completion fix
Move current-line to specific clause for performance as fn is run on every keystroke
2022-08-04 13:43:10 +08:00
Gabriel Horner
6a64cdf4b3 Fix tag completion at start of line or whitespace before cursor 2022-07-26 20:47:36 +08:00
Gabriel Horner
5f8a4ed0bf Don't autocomplete tags within backtick Fix #6135
Also fix autocompleting while cursor is part of a word
2022-07-26 20:47:36 +08:00
Yue Yang
3e36b4f216 refactor: rearrange cycle-marker (#4661)
* refactor: rearrange cycle-marker

Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>

* fix: remove unused markdown?

Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>

* fix: marker-switch

Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>

* fix: add missing arg

Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>

* docs: cycle-marker and set-marker

Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>

* chore: address comments

Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>

* chore: format code

Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
2022-03-21 12:47:59 +08:00
Gabriel Horner
7f78c8d933 Rewrite tests from #4382 to use with-redefs
No need to have set-marker impl copied with with-redefs. Move tests to
its corresponding test ns
2022-03-02 15:52:03 -05:00
Gabriel Horner
757ac40fdd Add tag and url support for follow-link-under-cursor cmd
Plain urls, markdown urls and org mode urls all work
2022-01-22 00:01:11 +08:00