Commit Graph

97 Commits

Author SHA1 Message Date
~hedy
254a9394af Update README.md
Fix typo
2023-11-08 09:50:10 +08:00
~hedy
2e19f421b8 Update README.md
Fix links
2023-11-08 09:47:44 +08:00
hedy
e95d0dda68 Update recipes 2023-11-08 09:37:00 +08:00
hedy
dea1d2896f Update recipes 2023-11-08 09:35:21 +08:00
hedy
6c47ebf0d7 fix: Extra left padding
Please see linked issues

- simrat39/symbols-outline.nvim/165
- simrat39/symbols-outline.nvim/178
- simrat39/symbols-outline.nvim/209
2023-11-08 08:36:17 +08:00
hedy
0e785762f7 feat: Line numbers next to symbols for quick jumping
See reasoning in:
simrat39/symbols-outline.nvim#212

This feature is turned off by default to avoid clutter, and many users
might not want this feature on by default.
2023-11-08 08:02:42 +08:00
hedy
8df5fbb320 Merge branch 'master' of github.com:hedyhli/symbols-outline.nvim 2023-11-07 21:14:45 +08:00
hedy
cb1c108a0c fix(markdown): Ensure content is followed by '#'
Before this commit, empty headings are taken into account:

   # a normal heading

   below is not a good heading:

   #

   below is also not a good heading:

   ##

   These should not be listed in the outline.
2023-11-07 21:14:39 +08:00
~hedy
eb9cfd6c4c Update README.md
Give credits :)
2023-11-06 09:38:56 +08:00
hedy
bbe56bf6ee Update readme 2023-11-06 09:31:56 +08:00
hedy
9e96b54de9 feat: Add follow_cursor and restore_location
New lua API function: follow_cursor (supports opts.focus_outline).
This sets location in outline to match location in code.

New keymap: restore_location (C-g) by default.
This provides the same functionality as follow_cursor.

I've also refactored other lua API functions for consistency of using
`opts.focus_outline`. If opts is not provided, focus_outline is
defaulted to true. To change this behaviour, set it to false.
2023-11-06 09:20:52 +08:00
hedy
ceb9a4841d Update readme 2023-11-03 10:18:46 +08:00
hedy
7b8bf86fc9 Fix typo 2023-11-03 09:47:00 +08:00
hedy
be0ee3d994 Update readme 2023-11-03 09:45:03 +08:00
hedy
8ddaa13443 Merge upstream PR #229
simrat39/symbols-outline.nvim#229
2023-11-03 09:43:02 +08:00
hedy
7ad4009d17 Update readme and reorganize 2023-11-03 09:28:44 +08:00
hedy
4d72eb53a3 readme: Fix ordering 2023-11-02 22:24:35 +08:00
hedy
46c1b8b84e readme: Fix typo 2023-11-02 22:22:55 +08:00
hedy
2ab81c2bd2 readme: Update PR status 2023-11-02 22:21:02 +08:00
hedy
2e05a842a8 readme: Fix typos 2023-11-02 22:18:16 +08:00
hedy
af8e219dbb readme: Add skip links 2023-11-02 22:15:50 +08:00
hedy
93dec0a61c Update readme 2023-11-02 22:13:53 +08:00
hedy
e3d622445e feat: Move and goto_location simultaneously, and highlight
See readme changes
2023-11-02 21:37:40 +08:00
hedy
fe98a8cf8a BREAKING: Rename focus_location -> peek_location
Avoids confusion with other uses of 'focus'.
2023-11-02 21:13:30 +08:00
hedy
4f64eeaef9 Update readme 2023-11-02 20:34:58 +08:00
hedy
b495ccc3ef Fix invalid buffer id 2023-11-02 20:17:51 +08:00
hedy
9289d59073 Update readme 2023-11-02 20:13:48 +08:00
hedy
bbe95d0c58 fix(auto_preview): Instantly preview whenever another node is selected
simrat39/symbols-outline.nvim#119

Rather than using another config option, this should be the default,
expected behaviour for auto_preview.

Also (another difference to the PR implementation is that) there is no
need to subscribe to both CursorHold and CursorMoved.
2023-11-02 20:06:06 +08:00
hedy
a87f73c3b2 BREAKING,feat: Customizable guide markers
See readme
2023-11-02 17:46:27 +08:00
hedy
841825b747 Document border option and publicize has_code_win 2023-11-02 17:31:37 +08:00
hedy
9fbeb0ed07 Add configuration recipes 2023-11-02 09:29:46 +08:00
hedy
c19b3bd571 feat: Add show_status 2023-11-01 21:09:06 +08:00
hedy
d78d94218a feat: Revamp preview window
Please see README diff for details and implications.
2023-11-01 21:04:26 +08:00
hedy
505e99e870 chore(docs): Update readme 2023-11-01 18:54:40 +08:00
hedy
0ad33c4842 feat(commands): Support bang on commands to force retain focus
See readme
2023-11-01 18:38:18 +08:00
hedy
8c42667fd0 Update readme 2023-11-01 17:25:38 +08:00
hedy
2df9662290 feat: Focus and unfocus outline window 2023-11-01 16:52:56 +08:00
hedy
0769cfe5c3 feat(cursorline): Add cursorline option 2023-11-01 16:20:51 +08:00
hedy
f7fc1905a4 fix(preview): Empty symbol preview
Fix simrat39/symbols-outline.nvim#176

I was going to pull @enddeadroyal's commit from their
'bugfix/symbol-hover-misplacement' branch in their fork but they changed
indentation so I had to apply the relevant changes myself instead.

However, credits for this fix goes to @enddeadroyal from the issue
commit in 176.

Also fixed the "No info available" markdown as it wasn't rendering
properly for me without a space after the '###'.
2023-11-01 15:33:26 +08:00
hedy
d2f0a4af6a Update readme 2023-11-01 14:39:49 +08:00
hedy
e98041c75f Use lua to create commands 2023-11-01 14:29:56 +08:00
hedy
7a7b45f477 Update readme 2023-11-01 13:58:37 +08:00
hedy
ce7330a200 Update readme 2023-11-01 13:54:24 +08:00
hedy
b0223611a1 Update readme 2023-11-01 13:53:51 +08:00
hedy
ae8c41be80 Update readme 2023-11-01 13:53:15 +08:00
hedy
4743ef6b19 Update readme 2023-11-01 13:44:21 +08:00
hedy
6e1e395499 Update readme 2023-11-01 13:40:16 +08:00
hedy
a240ba4483 Merge remote-tracking branch 'rqdmap/master'
simrat39/symbols-outline.nvim#218
simrat39/symbols-outline.nvim#217
2023-11-01 12:57:12 +08:00
hedy
ede61ebb86 Update readme 2023-11-01 12:55:59 +08:00
hedy
e569d73fea More README updates 2023-10-31 21:23:57 +08:00