mohsen
e41c04125f
fix: remove unpack
2023-07-24 08:28:33 +03:30
mohsen
26b6195b7a
feat:make x_bias configurable
2023-06-17 12:21:43 +03:30
mohsen
6197f750e5
fix:match empty lines only on line wise hints
2023-06-14 10:38:48 +03:30
mohsen
b5ba588bbf
refactor:cleanup init
2023-06-14 09:59:36 +03:30
mohsen
a29ac72227
fix:do not hint current char
2023-06-12 20:13:26 +03:30
mohsen
37a9742b98
fix:exclude current line in linewise hints
2023-06-12 19:20:07 +03:30
mohsen
292a4abd25
refactor:cleanup jump targets
2023-06-12 17:27:35 +03:30
mohsen
325ac2f34e
refactor:cleanup window context
2023-06-12 12:34:49 +03:30
mohsen
e901f60d2f
refactor:added type annotation and minor refactors
2023-06-08 18:21:15 +03:30
mohsen
74c240cabc
feat:show jump hints as inline text
2023-06-07 16:53:39 +03:30
mohsen
ba390f2ee5
chore:added stylua config
2023-06-07 10:22:48 +03:30
mohsen
4020cee85b
Merge pull request #3 from aznhe21/fix-vertical
...
Fix vertical
2023-06-07 06:13:12 +00:00
mohsen
7a1a5dd881
Merge pull request #5 from yehuohan/feat-excluded-filetypes
...
Add excluded_filetypes to avoid invalid windows and buffers
2023-06-07 06:10:12 +00:00
Guangxu Li
2dc28da9ef
feat: add new commands for hopping camel case words #155
2022-12-13 11:16:09 +08:00
aznhe21
0bf9a197a6
fix: exclude current line in hint_vertical
2022-11-08 23:50:55 +09:00
aznhe21
0b4d639102
feat: add context for additional processing in matches
2022-11-08 23:50:55 +09:00
aznhe21
9eed9b2bef
fix: allow empty matches for jump targets
2022-11-08 23:50:55 +09:00
yehuohan
65ce506384
Add excluded_filetypes to avoid invalid windows and buffers
2022-10-16 00:53:24 +08:00
Dimitri Sabadie
ef37a76f87
Cleanup some regexes.
...
Extract them once instead of compiling them for every visual lines.
2022-10-09 14:05:33 +02:00
Dimitri Sabadie
39a18f21f7
Fix column out of range for HopLine*.
...
This commit has the disavantage of preventing people from jumping to
empty lines if they have shifted their view. However, I think it’s okay
because we cannot place a hint in a buffer that is not visible, unless
we start hacking around with the text_column thing, and I don’t think
it’s worth it for now.
Fixes #292 .
2022-10-09 13:54:53 +02:00
Dimitri Sabadie
e23fdb83ff
Typo.
2022-07-21 19:18:27 +02:00
Dimitri Sabadie
886ef08f38
Rename HopLinePosition -> HopVertical and add doc.
2022-07-05 16:23:59 +02:00
Emmanuel M. Smith
7168620354
feat(HopLine): add new commands for maintaining cursor position
2022-06-22 15:51:54 +02:00
yehuohan
a84e8b1991
Add preview support for HopPattern
...
With this feature, we can also cancel HopPattern with <Esc> and <C-c>.
2022-06-21 10:49:54 +02:00
Felipe Lema
53612b6386
fix #237
...
`line` & `column` are repeated (thx, sumneko lua lsp)
2022-04-29 16:24:21 -04:00
yehuohan
3659a86bcb
fix: skip foldline's targets
2022-04-25 14:08:09 +02:00
Zhanibek Adilbekov
8ac8b914da
Added new option to select hint position in match.
...
For example, now you can use this command to hint word endings:
```lua
:lua require"hop".hint_words({hint_position = require"hop.hint".HintPosition.END})
```
2022-04-05 07:10:23 +06:00
Hsuan-An Weng Lin
cc316d5be7
Add new HopAnywhere commands. #144
2022-01-30 18:26:51 -06:00
Dimitri Sabadie
17f67f7a3d
Fix current_line_only bug.
...
This was introduced in #205 . The way window contexts are passed around
was altered (the get_window_context() function doesn’t return the
context immediately but now returns every contexts right away, unless a
flag is passed — multi_windows = false or nil).
Also, I realized why fixing that bug that opts.multi_windows and
opts.current_line_only are unsound used together. I don’t block the
behavior (yet? it’s weird) but I notify the user not to do that.
Fixes #214 . Relates and probably fixes #213 as well.
2022-01-09 18:07:03 +01:00
yehuohan
f37e36d662
Add multi_windows support
2021-12-19 01:08:55 +08:00
Dimitri Sabadie
aaa2c3cc71
Fix broken case-sensitivy with spaces.
...
When the first character of a pattern is a space, we assume the pattern
is not case-sensitive.
Fixes #74 .
2021-11-05 20:41:03 +01:00
Dimitri Sabadie
d443d7d80a
buffer -> window in the jump targets.
2021-11-01 20:08:01 +01:00
Dimitri Sabadie
720b03baee
Documentation.
2021-10-31 19:28:55 +01:00
Dimitri Sabadie
8af1839f1a
Fix dimming for current_line_only.
2021-10-31 18:02:11 +01:00
Dimitri Sabadie
4961b5957a
Enhance documentation.
2021-10-31 17:09:16 +01:00
Dimitri Sabadie
1bdc291614
Use a table instead of tuples for jump targets.
2021-10-31 16:54:08 +01:00
Dimitri Sabadie
e93052884e
Add support for current-line only modes.
2021-10-31 12:38:00 +01:00
Dimitri Sabadie
bb4ef4ce84
Move out window clipping from get_window_context.
...
It now lives in hop.window.clip_window_context.
2021-10-31 12:00:17 +01:00
Dimitri Sabadie
79ff383991
Simplify create_jump_targets_for_line (context).
...
The context is not entirely needed here, so it’s better to just make
this function take several arguments. Also, for some other jump target
generators, where the context is not actually needed, but we would still
want to use that create_jump_targets_for_line function (for instance for
modes using only the current line), passing the context is a waste of
time. So better to do it that way.
2021-10-31 11:50:18 +01:00
Dimitri Sabadie
d4e63ab638
Extract the Manhattan distance scoring function.
...
This is now publicly available to score indirect jump targets.
2021-10-30 01:15:27 +02:00
Dimitri Sabadie
4a17e643f7
Fix weird line jump target regression.
2021-10-30 01:04:51 +02:00
Dimitri Sabadie
8fd347b663
Cleanup unused variables / refactor a bit.
2021-10-29 21:02:32 +02:00
Dimitri Sabadie
2a4ef1ba09
Refactor jump targets and introduce gen-based API.
...
Also, start removing the concept of lined jump targets.
2021-10-29 01:01:47 +02:00
Dimitri Sabadie
7e5e57af7f
Improve documentation for jump targets.
2021-10-26 11:46:36 +02:00
Dimitri Sabadie
055cf45090
Extract window context in window mod & cleanup.
2021-10-26 11:36:09 +02:00