1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-24 16:15:38 +03:00
Commit Graph

38 Commits

Author SHA1 Message Date
Frank LENORMAND
e482b3f14c share kakrc: Use fail in the :colorscheme command
When an invalid colorscheme is selected from the user configuration
file, the editor doesn't report any errors at startup unless the
`fail` command is used.
2019-10-29 09:51:16 +01:00
Maxime Coste
90dd084993 Only embed gdb script on ELF targets, and add missing gdb symlink 2019-01-23 20:59:32 +11:00
Justin Frank
ab6bc41358 Added shell command completion support to define-command and prompt
This commit also introduces a regression in that I decided that the best way to
avoid overly long and confusing names was to rename the current shell-*
switches to script-*, and have the shell command completion be
shell-completion.

renamed script-{completion,candidates} to shell-script-*

Updated docs with new switch names

Added -shell-completion switch to x11-repl and kitty-repl
2018-10-03 09:46:31 -07:00
Maxim Baz
25b49b9ae1
Improve kakoune startup time by 33% 2018-07-08 16:03:00 +02:00
Maxime Coste
ec16969609 Do not reparse %sh{...} strings
Automatic reparsing of %sh{...}, while convenient in many cases,
can be surprising as well, and can lead to security problems:

'echo %sh{ printf "foo\necho bar" }' runs 'echo foo', then 'echo bar'.
we make this danger explicit, and we fix the 'nop %sh{...}' pattern.

To reparse %sh{...} strings, they can be passed to evaluate-commands,
which has been fixed to work in every cases where %sh{...} reparsing
was used..
2018-07-05 07:54:28 +10:00
Maxime Coste
1c4f3534e1 kakrc: refactor colorscheme implementation
Style tweaks, and remove check for parameter count as this is already
done by Kakoune itself (the command is specified to take 1 parameter)
2018-02-24 16:43:42 +11:00
Frank LENORMAND
a870210e77 kakrc: Allow colorscheme to search directories recursively 2018-02-22 15:30:18 +03:00
Maxime Coste
e7cbf38af7 Introduce a $kak_config env var containing the Kakoune user config dir
Makes it easier for users who want to locate their kakrc file, and
does not require to go through shell expansion to get it as
"${XDG_CONFIG_DIR:-${HOME}/.config}/kak"

Fixes #1740
2018-01-19 10:05:08 +11:00
Maxime Coste
633a1b207b Doc: add missing symlink to access ocumentation pages
a share/kak/doc symlink to doc/pages was not committed, preventing
non-installed kakoune from accessing the on line documentation.
2017-11-08 14:57:06 +08:00
Frank LENORMAND
d5726c0cfd kakrc: Simplify and optimize the autoload function 2017-05-15 22:27:22 +03:00
Chloe Kudryavtsev
b6555d07a9 Rename kakrc::autoload to kakrc::autoload_directory
`autoload` is a reserved keyword in the ksh family of shells.
Some of these are common `/bin/sh` providers (e.g mksh).
Renaming it to have a prefix fixes autoloading on such systems (see #1353).
This should not have any side effects due to the limited scope.
2017-05-09 11:36:32 -04:00
Maxime Coste
306243e8d9 Remove the runtime command 2017-01-05 11:13:57 +00:00
Maxime Coste
5af29b0254 Fix python comment copy logic in python.kak
And introduce the first unit test that sources bundled support
scripts.

Fixes #860
2016-10-13 20:13:05 +01:00
Maxime Coste
9a19f18bc0 Use shell-candidates for :colorscheme completion 2016-09-05 23:39:13 +01:00
Frank LENORMAND
d5a8d9bf3a Fix the error message display in the colorscheme function 2016-04-23 10:00:36 +03:00
Maxime Coste
55d381999e Avoid stderr message from cut when completing colorschemes 2016-04-11 21:12:36 +01:00
Maxime Coste
c8490c4e86 Try to load an eventual kakrc.local next to the common kakrc 2016-03-27 19:34:59 +01:00
Maxime Coste
c27778497e Avoid spurious error on empty autoload folders 2016-01-29 08:48:26 +00:00
Maxime Coste
273b541959 Use printf instead of echo in colorscheme completer 2016-01-10 10:27:02 +00:00
Maxime Coste
e019d7cccd Posix compliance in colorscheme command completer 2016-01-06 11:28:57 +00:00
Enrico Lumetti
11276ffa66 Report debug information on failed autoloading 2015-12-11 01:54:29 +01:00
Maxime Coste
550a95a3d7 Change def -shell-params to def -params and take the counts as parameters 2015-12-01 14:00:55 +00:00
Maxime Coste
79562a614e Fix colorscheme completion that triggered a shell syntax error
When the user colors dir was missing, expr was failing, with
the error ending up in the *debug* buffer
2015-07-20 13:14:08 +01:00
Eike Plack
0674a56af2 Load default.kak as default color scheme 2015-07-19 05:38:52 +02:00
Eike Plack
778b9dcf79 Autoload color schemes in userspace
* if a color scheme exists system wide the one in userspace will take
  precedence
2015-07-17 16:54:40 +02:00
Maxime Coste
9e39aab325 Formatting fix 2015-07-03 21:14:34 +01:00
Maxime Coste
466410529a Add a colorscheme command and a first zenburn them in the colors directory 2015-07-02 13:56:38 +01:00
Maxime Coste
1ff0fbb4e2 Fix autoload symlink, was absolute instead of relative 2015-06-02 19:04:50 +01:00
Maxime Coste
fcd0b8524b Remove debug messages from kakrc 2015-05-31 21:45:26 +01:00
Maxime Coste
2426384360 Autoload site wide kak scripts if the user does not have his own autoload folder 2015-05-30 14:32:04 +01:00
Maxime Coste
d8802e5f01 Indentation fix in kakrc 2015-05-29 13:50:35 +01:00
Maxime Coste
f3fe97c8fa Do not override meta face when defining markup color scheme 2015-05-12 09:50:03 +01:00
Benoît Laurent
4ab01ff80d Use named colors in highlighting configuration for markup languages. 2015-05-09 22:03:41 +02:00
Alex Leferry 2
4801ee22a2 source all .kak in autoload/ 2014-07-19 13:41:26 +01:00
Maxime Coste
ac5cbba0ae Remove region highlighter, rename multi_regions to regions, cleanup 2014-07-14 21:42:19 +01:00
Maxime Coste
518c494104 Rename 'macro' face to more general 'meta'
As it is used in python/ruby for 'import' which is not really
a macro.
2014-07-13 16:57:49 +01:00
Maxime Coste
d0d4108085 Rename :colalias to :face and update documentation 2014-07-12 10:55:50 +01:00
Maxime Coste
fa72d27f9a Make kak more installable
* Kak relies on the kakrc file to be in ../share/kak/kakrc relative
to kak binary rather than in the same directory
* Added an install target to the Makefile
2013-12-23 21:36:05 +00:00