Johannes Altmanninger
c81266d4f6
jump{,-next,-previous} cmds to navigate any grep-like buffer
...
`grep-next-match` works only on the `*grep*` buffer so it can't be used
on buffers that were preserved by renaming or on other grep-flavored
buffers created by 3rd party plugins kakoune-find and kakoune-lsp,
like `*find*` and `*references*`.
Let's generalize `grep-next-match` with a `jump-next` command that
takes a buffer argument.
This renames some options but I think they're not commonly used.
kakoune-lsp is an exception that uses grep_current_line but it's no big
deal, things will fail loud and early if options are missing.
Since grep.kak and friends now depend on jump.kak, move the jumpclient
declaration there as well.
2024-03-06 08:04:35 +11:00
Maxime Coste
2d8456db10
Move user mappings to <space> and keep/remove selection to ,
2022-07-05 08:43:40 +10:00
Maxime Coste
90043e7df0
Replace write -atomic
with write -method <method>
...
`-atomic` becomes `-method replace` and `-method overwrite` is now
supported explicitely instead of only available through the
writemethod option.
Fixes #3827
2020-10-27 20:20:18 +11:00
Maxime Coste
f84c550d30
Apply suggestions from code review
...
Co-authored-by: Screwtapello <thristian@gmail.com>
Co-authored-by: Johannes Altmanninger <aclopte@gmail.com>
2020-09-06 10:56:37 +10:00
Frank LENORMAND
0cd706254a
rc clang grep: Make docstrings more readable
2020-09-02 11:57:34 +03:00
Johannes Altmanninger
9a7d8df447
Avoid accidentally using environment variables in sh scopes
...
On the instances with altfile this was already the case, but this makes it more obvious.
Closes #3673
2020-08-24 19:01:05 +02:00
Maxime Coste
7d4ae422d2
Merge remote-tracking branch 'lenormf/docstring-pretty'
2020-02-05 20:40:10 +11:00
Frank LENORMAND
275abb227e
rc: Make docstrings more readable
...
This cosmetics commit makes use of the auto-deindentation syntax,
available to docstrings.
2020-02-03 20:53:28 +01:00
Alex Leferry 2
2f05aebfff
Use POSIX -E of sed for extended regular expressions
2020-01-21 14:45:33 +01:00
Maxime Coste
90ec9434b7
Fix clang completion output parsing
2019-12-15 10:32:14 +11:00
Frank LENORMAND
657eeb02d2
rc clang: Factorize multiple calls to gsub
2019-11-22 09:43:39 +01:00
Frank LENORMAND
3161a6255c
rc clang: Handle nested tags in completion
...
Some completion candidates have e.g. `{#…#}` tags in their
name/description. They can be nested, which the cleanup regex doesn't
take into account.
2019-11-22 09:30:30 +01:00
Maxime Coste
82e5346904
Add a -atomic switch to write and change clang.kak to take advantage
2019-11-21 23:38:32 +11:00
Frank LENORMAND
5b1f9255a1
rc: Use the standard fail
command to report errors
...
Merely using `echo` with markup doesn't log errors in the debug
buffers, and is also less readable.
2019-11-14 08:32:55 +01:00
Maxime Coste
271b1d4f2f
Add a clang_directory option to set PWD when completing
...
This matches the directory entry in compilation databases
format.
2019-09-17 21:50:21 +10:00
Maxime Coste
33a00c7031
Fix clang completion support with modern clang
2019-09-15 11:48:25 +10:00
Maxime Coste
6ee71191af
Merge remote-tracking branch 'codesoap/background_blocks'
2019-09-15 09:29:26 +10:00
Maxime Coste
4b7b5d077c
Make quoting opt-in by using $kak_quoted_...
2019-06-23 12:04:21 +10:00
codesoap
683c7c1fa5
Fix fifos for Linux
...
Those were accidentaly broken while fixing for OpenBSD.
2019-06-10 18:25:51 +02:00
codesoap
9ca9d40c03
Revert "Don't create subshells when unnecessary"
...
This reverts commit 6c05e6e0f8
.
Apparently the Linux sh needs subshells here.
2019-06-10 18:00:11 +02:00
codesoap
6c05e6e0f8
Don't create subshells when unnecessary
2019-06-09 13:24:30 +02:00
codesoap
009eb80ca0
Fix tools using fifos for OpenBSD
...
Without these changes, kak would hang on the corresponding commands,
displaying a 'waiting for shell command to finish' message.
2019-06-09 11:50:35 +02:00
Maxime Coste
0cc89b2b9f
Merge remote-tracking branch 'laelath/provides-requires'
2019-04-25 11:59:42 +01:00
Maxime Coste
9118a18d5d
Change completions option docstring element to be an arbitrary command
...
We can have the previous behaviour by just passing the docstring to
`info -placement menu`.
2019-04-17 08:38:52 +02:00
Maxime Coste
02fc42a12a
Rename info -placement to info -style and support modal style
...
Fixes #1375
Closes #1380
2019-04-17 08:38:52 +02:00
Justin Frank
1fab727f2b
Modified a bunch of language support files to use modules
2019-04-08 17:02:44 -07:00
Alex Leferry 2
c0dccdd90d
Add categories in rc/
...
Closes #2783
2019-03-21 01:06:16 +01:00