79 Commits

Author SHA1 Message Date
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
d83877ea87 chore:update the doc to current version 2023-06-17 12:42:52 +03:30
mohsen
26b6195b7a feat:make x_bias configurable 2023-06-17 12:21:43 +03:30
mohsen
c4f555f162 feat:added the command and documentations 2023-06-10 10:43:49 +03:30
mohsen
92c6829a45 chore:add documentation for inline hints and dim unmatched 2023-06-07 18:18:03 +03:30
yehuohan
65ce506384 Add excluded_filetypes to avoid invalid windows and buffers 2022-10-16 00:53:24 +08:00
Dimitri Sabadie
9b2df92594 Update the main doc. 2022-10-09 14:07:25 +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
9a304667b5 Remove inclusive_jump from the documentation. 2022-07-05 18:28:21 +02:00
Dimitri Sabadie
5044ba6bfa Update version / date in hop.txt. 2022-07-05 17:31:28 +02:00
Dimitri Sabadie
886ef08f38 Rename HopLinePosition -> HopVertical and add doc. 2022-07-05 16:23:59 +02:00
Dimitri Sabadie
a3cf6684bc Typo in the documentation. 2022-06-21 12:15:51 +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
3699394
1003f22213 Add hint_offset support. 2022-06-21 09:46:21 +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
Dimitri Sabadie
e2f978b50c Fix a typo in the doc. 2022-03-22 17:02:49 +01:00
Dimitri Sabadie
78c19cd242 Realign doc links. 2022-03-22 10:15:46 +01:00
Maas Lalani
fa205b6d58 doc: hint_words should be hint_anywhere 2022-03-21 23:40:19 -04: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
Dimitri Sabadie
c1df61353d Merge pull request #205 from yehuohan/multi-windows
Add multi_windows support
2022-01-08 20:41:54 +01:00
Dimitri Sabadie
8612a96993 Update README and documentation (multi-windows). 2022-01-08 20:38:14 +01:00
Dimitri Sabadie
b06914e777 Add :checkhealth support.
Relates to #207.
2021-12-26 20:33:00 +01:00
yehuohan
f37e36d662 Add multi_windows support 2021-12-19 01:08:55 +08:00
Dimitri Sabadie
de656ebdc7 Update Vim help pages. 2021-11-21 12:06:18 +01:00
Dimitri Sabadie
7fb2504044 Support falling back to 1-char from 2-char mode.
Relates to #166.
2021-11-17 01:07:39 +01:00
Dimitri Sabadie
e2846f246c Add (displayed) uppercase label support.
Relates to #167.
2021-11-16 20:08:00 +01:00
Dimitri Sabadie
10ba1fbb31 Implement callback support for hint reducing.
Relates to #164.
2021-11-15 20:18:03 +01:00
Dimitri Sabadie
1a8adc0cc6 Inclusive / exclusive motion support.
This allows to use Hop in either the `f` way or `t` way. This is mostly
useful for operator-pending modes such as `y` and `d`.

Relates to #82.
2021-11-15 19:17:32 +01:00
Dimitri Sabadie
b41052571c Code hygiene. 2021-11-15 19:08:55 +01:00
Dimitri Sabadie
474cc189ba Forgot to update the help page timestamp :]. 2021-11-03 01:55:28 +01:00
Dimitri Sabadie
131507ace1 Add extension support. 2021-10-31 20:43:23 +01:00
Dimitri Sabadie
720b03baee Documentation. 2021-10-31 19:28:55 +01:00
Dimitri Sabadie
208ec87763 Merge pull request #140 from spamwax/current-line-only
Add current-line only motion.
2021-10-23 13:42:39 +02:00
Hamid Ghadyani
e12cbb7a4a Fix anchors in hop.txt 2021-10-22 21:47:07 -04:00
Brady Phillips
8e60b4649f Add a virtual cursor when hopping.
Add highlighting or a block character to show where the cursor was
before the hop was initiated.
2021-10-04 04:37:34 +01:00
Hamid Ghadyani
fcd24e23f3 Add current-line only motion.
- HopChar1Line will only grey out current line and perform the motion
  based on 1 character.
- This PR adds a new field to hint_mode table to track & preform this
  current-line only mode. I couldn't find a better way of doing it
  without doing rather big refactoring of the code base. And it seems
  pull#123 is stalled at the moment.
2021-08-19 12:59:19 -04:00
Tae Sandoval
4379e58e50 Make hop.hint_word depend on iskeyword
By using \k, which depends on the iskeyword value, hop.hint_word
behaviour's becomes consistent with all the native words' commands, like
* and [i.
2021-07-05 23:37:24 +02:00
Dimitri Sabadie
0e9d4b4585 Merge pull request #112 from iago-lito/feature/explicit-hint-pattern
User can specify pattern to not be prompted with `hint_patterns`.
2021-07-01 15:56:17 +02:00
Jonathan Ringer
94f608eed2 Fix doc tags 2021-06-29 23:10:03 -07:00
Iago-lito
405ad15537 User can specify pattern to not be prompted. #105 2021-06-29 11:42:12 +02:00
Dimitri Sabadie
00b0f865ef Merge pull request #108 from iago-lito/feature/hop-line-first-nwchar
Implement HopLineStart
2021-06-28 00:11:20 +02:00
Dimitri Sabadie
17cfcd9963 Explain the use of the setup function. 2021-06-28 00:09:05 +02:00
Iago-lito
8516112c4b Add support for HopLineStart. #106
Implement easy case with no hint-mode state. Blank lines are skipped over.
2021-06-27 11:21:03 +02:00
Brady Phillips
aa48acb8bc Add quit_key configuration option.
Pressing quit_key will quit hop without feeding the key through to nvim.
2021-06-23 21:19:50 +01:00
Brady Phillips
b3f7dcbe4f Make special keys quit hop.
Previously, special keys like <C-Space> would be eaten by hop without
doing anything.
2021-06-23 21:19:31 +01:00
Dimitri Sabadie
d9c15b1d32 Update documentation and remove unused options.
`winblend` was removed as it wasn’t used anymore.
2021-06-19 14:56:17 +02:00
Dimitri Sabadie
505f3b05a8 Add BC / AC variations of commands; also, doc. 2021-06-19 02:45:48 +02:00
Dimitri Sabadie
7eefd95ff1 Document and add create_hl_autocmd.
This allows to enable or disable inserting highlighting autocommands.

Relates to #70.
2021-06-01 23:14:55 +02:00
Dimitri Sabadie
872bb18ee3 Add support for case-insensitive input patterns.
Relates to #32.
2021-03-23 19:21:38 +01:00