Commit Graph
253 Commits
Author SHA1 Message Date
mohsen 5594f7834d fix: respect case_insensitive 2024-05-23 19:50:20 +03:30
Henry Hsiehandmohsen 6ff23501a1 feat: make hl_mode of hints configurable (#72)
* feat: add hl_mode to change highlight of hint char

* chore: fix typo in docs

---------

Co-authored-by: mohsen <smoka7@hotmail.com>
2024-04-25 20:42:09 +03:30
Henry Hsieh 059e88e9dc feat: add windows-list to allow custom window candidates (#70)
* feat: add windows-list to allow custom window candidates

* fix: always check focusable window
2024-04-21 10:19:37 +03:30
johnlevidyandmohsen 1b355b0834 feat: allow users to supply custom distance functions #66 (#67)
* feat: allow users to supply custom distance functions #66

* docs:add the docs and read wise method

---------

Co-authored-by: mohsen <smoka7@hotmail.com>
2024-04-20 21:00:42 +03:30
mohsen 6d853addd6 fix: Inform user when hop isn't initialized
closes #63
2024-01-01 22:42:14 +03:30
mohsen df0b5b693e feat: Make virtual cursor configurable 2023-11-08 17:21:22 +00:00
yehuohan 64184f6792 refactor: add jump_target_generator 2023-11-08 17:21:22 +00:00
yehuohan 5c1e406a04 fix: move jump target should offset in row first, then in cell 2023-11-08 17:21:22 +00:00
yehuohan 396d755816 refactor: add clip_line_context 2023-11-08 17:21:22 +00:00
mohsen dacac13fa2 refactor: update get_input_pattern 2023-11-08 17:21:22 +00:00
mohsen ef78b32ef3 fix: include cursor column when dimming before cursor 2023-11-08 17:21:22 +00:00
yehuohan fa89b3a6d6 fix: take the first folded line as an empty line 2023-11-08 17:21:22 +00:00
yehuohan 25b2e390e3 refactor: remove MatchContext and make JumpContext thin 2023-11-08 17:21:22 +00:00
yehuohan 2a9bc73808 refactor: compute unmatched area with LineRange and ColumnRange 2023-11-08 17:21:22 +00:00
mohsen a1cfb6d1c1 refactor: minor edits 2023-11-08 17:21:22 +00:00
yehuohan ca2b0ba8be refactor: add move_jump_target to compute hint_offset 2023-11-08 17:21:22 +00:00
yehuohan c4a59e6ba2 refactor: add jump_regex.lua 2023-11-08 17:21:22 +00:00
yehuohan cca8aced27 refactor: make hop-treesitter and hop-yank as hop extensions according to hop framework 2023-11-08 17:21:22 +00:00
yehuohan ae5e9128be refactor: add WindowRow,WindowCol,WindowCell and WindowChar to make position computation less confused 2023-11-08 17:21:22 +00:00
mohsen 3b982dfa39 fix: Don't override existing highlight definition 2023-11-08 18:39:23 +03:30
yehuohan ccf8e08dcc fix:change windows in multi windows mode only it's necessery (#57)
* fix: call winsaveview with nvim_win_call to avoid switching window cursor

* fix: rename buf_handle and win_handle to be consistent with JumpContext
2023-11-01 17:31:37 +00:00
yehuohan 275dcbc84e fix: don't checkout mappings when they're not loaded (#56) 2023-10-31 12:44:02 +00:00
yehuohanandmohsen a75b915955 feat: support match mappings (#51)
* feat: support match mappings

* feat: add testcases for match_mappings

* added farsi mapping

* fix hop vertical

---------

Co-authored-by: mohsen <smoka7@hotmail.com>
2023-10-30 05:54:29 +00:00
mohsen 1cbaa79457 fix: don't disable multi windows for terminal mode
fixes #49
2023-10-02 20:33:41 +03:30
mohsen f2508f415b fix: change yank range to inclusive (#46) 2023-09-19 08:56:35 +00:00
mohsen be75e7c596 refactor: don't reinvent table.concat 2023-09-13 14:54:41 +03:30
mohsen 5681edd36c feat: Jump to Treesitter nodes (#37) 2023-09-12 11:31:26 +00:00
afterlook d4f954e8b1 fix: Don't toggle cursorline state (#40)
Due to highlighting changing, phaazon#148 issue is no longer relevant
and any logic related to changing user's cursorline can be removed.

This also fixes any previous bugs that were result of saving hint state
after cursorline was toggled off.

Signed-off-by: afterlook <29754364+afterlook@users.noreply.github.com>
2023-09-12 07:56:27 +00:00
mohsen 88516dde51 fix:check empty buffers
closes #38
2023-08-29 13:14:41 +03:30
mohsen 2d80315010 fix: fix invalid col for before cursor (#35) 2023-08-23 07:29:20 +00:00
mohsen 877e175669 fix: fix invalid col on empty lines (#33) 2023-08-19 06:46:52 +00:00
mohsen 0b250bf412 fix:don't get current char when searching after cursor 2023-08-16 21:57:06 +03:30
Felipe Lemaandmohsen 5c60add246 chore: add ci action to run tests on pull requests
Co-authored-by: mohsen <36933074+smoka7@users.noreply.github.com>
2023-08-11 09:04:32 +00:00
mohsen e41c04125f fix: remove unpack 2023-07-24 08:28:33 +03:30
mohsen 31e0e42e62 refactor!: fix lint errors (#17)
* refactor!: fix lint errors
update deprecated api calls

* refactor!: update minimum nvim version to 9.0
2023-06-22 10:27:28 +00:00
mohsen 0569092d44 fix: out of range on empty lines (#16) 2023-06-21 18:56:11 +00:00
mohsen 26b6195b7a feat:make x_bias configurable 2023-06-17 12:21:43 +03:30
mohsen 8a54ca52b7 fix:add the cursor position to jump list 2023-06-15 20:39:38 +03:30
mohsen f37744f938 change default hint_type to overlay 2023-06-14 17:36:36 +03:30
mohsen 6197f750e5 fix:match empty lines only on line wise hints 2023-06-14 10:38:48 +03:30
mohsen 77af13fa1f fix:clear highlight namespaces before 2023-06-14 10:36:53 +03:30
mohsen b5ba588bbf refactor:cleanup init 2023-06-14 09:59:36 +03:30
mohsen 1e346d025b fix:properly select unmatched ranges to dim 2023-06-12 20:49:49 +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 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