mohsen
1e346d025b
fix:properly select unmatched ranges to dim
2023-06-12 20:49:49 +03:30
mohsen
325ac2f34e
refactor:cleanup window context
2023-06-12 12:34:49 +03:30
mohsen
d8e495623a
Merge branch 'fix-cursor-on-empty-line'
2023-06-10 10:54:03 +03:30
mohsen
c4f555f162
feat:added the command and documentations
2023-06-10 10:43:49 +03:30
mohsen
4f146ebfcf
feat:paste in hinted position
2023-06-08 21:09:25 +03:30
mohsen
5edd29ef71
feat:yank the range specified by hop hints
2023-06-08 21:09:25 +03:30
mohsen
dd8a4ca9d8
refactor:replace vimscripts with lua
2023-06-08 20:47:24 +03:30
mohsen
e901f60d2f
refactor:added type annotation and minor refactors
2023-06-08 18:21:15 +03:30
mohsen
32866676c7
feat:add a config option for user to control dimming unmatched areas
2023-06-07 17:50:50 +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
yanshay
f095a9ed49
fix issues when cursor on empty line ( #351 )
2023-04-08 12:15:09 +03: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
Dimitri Sabadie
68c20cdb59
feat: Lazy load everything.
2022-10-30 16:54:35 +01:00
yehuohan
65ce506384
Add excluded_filetypes to avoid invalid windows and buffers
2022-10-16 00:53:24 +08:00
Dimitri Sabadie
6591b3656b
Merge pull request #297 from phaazon/fix-multi-window-floats
...
Fix quitting in MW when a float is present.
2022-10-09 18:31:05 +02: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
a79ad3de18
Merge pull request #148 from BlakeJC94/feature/cursorline-toggle
...
added a cursorline flag and automatic toggling when entering/exiting hop
2022-10-09 12:50:54 +02:00
Dimitri Sabadie
292298190e
Merge pull request #315 from aznhe21/fix-mb
...
Fix incorrect behavior in multi-byte chars
2022-10-09 12:47:34 +02:00
Dimitri Sabadie
caaccee814
Merge pull request #314 from aznhe21/counted-motion
...
Support `count`-ed motion
2022-10-09 12:46:22 +02:00
Dimitri Sabadie
2c5e2fd430
Merge pull request #300 from terrortylor/feature/user-input
...
expose get_input_pattern to be called externally
2022-10-09 12:38:13 +02:00
BlakeJC94
84c53a8e93
Merge branch 'master' into feature/cursorline-toggle
2022-09-17 11:15:34 +10:00
aznhe21
6ed29f1c2d
Fix incorrect behavior in multi-byte chars
2022-09-14 14:31:46 +09:00
aznhe21
6f802037f1
Support motion with count
2022-09-13 11:56:20 +09:00
Dimitri Sabadie
34c06c70d1
Fix quitting in MW when a float is present.
...
Some buffers will be unloaded, and we need to check that when quitting.
That commit fixes that issue, which is not strictly #278 but very
similar.
We might not something else to completely fix their problem but that was
a bug for sure hiding in the shadows.
2022-07-31 03:45:23 +02:00
Dimitri Sabadie
2a1b686aad
Merge pull request #265 from ChristianChiarulli/fix-pending-operation-col-increment
...
fix: pending operation col increment
2022-07-31 03:14:25 +02:00
Dimitri Sabadie
ced6c94204
Merge pull request #279 from ii14/fix_col_range_error
...
fix: fix "col value outside range" error
2022-07-22 10:28:06 +02:00
alex.tylor
a9960b58c9
expose get_input_pattern to be called externally
2022-07-19 21:41:55 +01:00
Dimitri Sabadie
a7ad781962
Merge pull request #281 from ii14/prompt_nl_ctrl_h
...
feat: <NL> and <C-H> support in :HopPattern prompt
2022-07-18 16:00:29 +02:00
ii14
3133cbef34
feat: <NL> and <C-H> support in :HopPattern prompt
...
Support <NL> (<C-J>) as an alternative to <CR>, and <C-H> as an
alternative to <BS>.
2022-07-10 01:24:50 +02:00
ii14
afaec06372
fix: make ctrl-c equivalent to esc in :HopPattern prompt
...
Pressing CTRL-C was not properly aborting :HopPattern, because it still
returned some pattern from the function. Make it equivalent to CR.
2022-07-10 01:14:24 +02:00
ii14
da3affb1dc
fix: fix "col value outside range" error
...
getcurpos()'s curswant refers to the _preferred_ column, and it
signifies to what column the cursor should get back to after moving over
empty or shorter lines. It does not refer to the actual cursor position,
and cannot be used here because it can report a column that does not
actually exist on the current line.
virtcol() would be more correct, as it reports the actual column.
However, it counts hard tabs as their screen width, could still cause
out of range errors.
Instead get the current line up to the cursor and calculate the column
with strwidth().
Fixes #261
2022-07-10 00:50:40 +02:00
Dimitri Sabadie
886ef08f38
Rename HopLinePosition -> HopVertical and add doc.
2022-07-05 16:23:59 +02:00
Christian Chiarulli
568c43addc
increase hop column by 1 if in pending operation mode only if jumping forward
2022-06-24 14:28:04 -04:00
Christian Chiarulli
64ece09df0
remove pending operator shift
2022-06-24 01:38:32 -04:00
Emmanuel M. Smith
7168620354
feat(HopLine): add new commands for maintaining cursor position
2022-06-22 15:51:54 +02:00
Dimitri Sabadie
a79aa62aba
Typo.
2022-06-21 10:50:23 +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
yehuohan
f65093fd13
refactor: modify hint_state structure
2022-06-21 10:49:54 +02:00
Dimitri Sabadie
04d3c37408
Fix hint_offset.
2022-06-21 10:48:57 +02:00
Dimitri Sabadie
092ab3f0ca
Fix BEFORE_CURSOR virtual edit.
...
We computed the dimming wrong because we were trying to set an extmark
in place in the buffer that doesn’t exist (the place where the
virtualedit + 1 column takes effect).
2022-06-21 10:32:09 +02:00
Dimitri Sabadie
2a4ad8c675
Optimize and fix move_cursor_to regarding hint offsets.
2022-06-21 09:51:27 +02:00
3699394
1003f22213
Add hint_offset support.
2022-06-21 09:46:21 +02:00
Dimitri Sabadie
03675eba34
Merge pull request #234 from yehuohan/multi-windows-fix
...
Fixs for multi-windows
2022-06-09 12:32:53 +02:00
Felipe Lema
cea9642387
adjust end column and bottom line for HopChar1BC
2022-04-29 17:40:21 -04:00
yehuohan
c1f1c61917
fix: Disable multi_windows when hop on visual mode
2022-04-27 00:25:12 +08:00
Hsuan-An Weng Lin
cc316d5be7
Add new HopAnywhere commands. #144
2022-01-30 18:26:51 -06:00