Dan Rosén
5a403a9611
Increase modelinefmt configuration power
2017-03-11 21:43:51 +01:00
Maxime Coste
34da4bf08b
Add dilbert in the ui_options doctring
2017-03-10 12:09:09 +00:00
Maxime Coste
564da076a6
Merge remote-tracking branch 'lenormf/assistant-dilbert'
2017-03-10 12:06:35 +00:00
Maxime Coste
0faa5567ca
Fix crash on non utf8 files trigering highlighting of backward ranges
...
Fixes #1274
2017-03-09 23:40:34 +00:00
Maxime Coste
a0b42323ed
Add a -debug flag to :edit to set the buffer as debug data
...
As for the *debug* buffer, buffers with the debug flag wont get
used for cycling through buffer, or word completion.
2017-03-08 19:33:25 +00:00
Frank LENORMAND
59b65bb9fb
ncurses: Add a Dilbert assistant
...
Drawn by myself.
2017-03-08 20:03:29 +03:00
Maxime Coste
da206d9323
Try to please clang-3.5
2017-03-07 17:21:55 +00:00
Maxime Coste
dc7c5f6e67
Collapse undo groups during an eval command
2017-03-07 16:18:09 +00:00
Maxime Coste
89fa6d4fbf
Small code simplification
2017-03-07 16:11:40 +00:00
Maxime Coste
30c9b3c426
Merge branch 'patch-1' of git://github.com/guillaumecherel/kakoune
2017-03-07 15:52:44 +00:00
Maxime Coste
a1a566e921
Cleanup hash_map code
2017-03-07 15:48:04 +00:00
Maxime Coste
ba02498576
Expand a bit the hash map profiling code
2017-03-07 14:01:01 +00:00
guillaumecherel
81e7158bc1
Update Makefile
2017-03-07 14:20:09 +01:00
Maxime Coste
f3fdc24383
Remove temporary stats code from HashMap
2017-03-07 01:15:41 +00:00
Maxime Coste
f0ae0b8410
Replace IdMap with HashMap
2017-03-07 01:12:37 +00:00
Maxime Coste
6373338c50
Replace uses of UnorderedMap with HashMap
2017-03-07 01:03:26 +00:00
Maxime Coste
e9f93f1b2f
Add support for HashMap options types
2017-03-06 22:25:08 +00:00
Maxime Coste
420373475e
Introduce a custom HashMap implementation along with a quick benchmark
2017-03-06 22:25:08 +00:00
Maxime Coste
6757ddc6cb
Simplify AliasRegistry::remove_alias
2017-03-06 19:44:36 +00:00
Maxime Coste
ed2d50ecef
Remove unused AliasRegistry::flatten_aliases method
...
We do not complete alias names anymore, so this method is not
needed.
2017-03-04 19:45:41 +00:00
Maxime Coste
cc88b0f586
Change word object selector to fail if the cursor is not on a word char
2017-03-04 18:33:50 +00:00
Maxime Coste
887232987c
Refactor surround unit test code
2017-03-04 17:43:24 +00:00
Maxime Coste
ed3c48057d
Refactor regex based selection code
2017-03-03 23:43:54 +00:00
Maxime Coste
1728c67fef
Fix indent selection respect for original selection cursor position
...
Fixes #1233
2017-03-03 22:03:20 +00:00
Maxime Coste
2fa98e04c3
Merge remote-tracking branch 'ekie/hook'
2017-03-03 21:14:14 +00:00
Maxime Coste
f8a625bc2f
Merge remote-tracking branch 'occivink/master'
2017-03-03 21:13:16 +00:00
Maxime Coste
134a5d1f3e
Merge remote-tracking branch 'lenormf/fix-spell'
2017-03-03 21:10:51 +00:00
Maxime Coste
ddc5e958e6
Return an optional selection in most selectors, fail rather than keep current
...
Instead of returning the current selection when a selector fails, return
an empty Optional<Selection>. That means object selections will now
remove the selections that dont match the object.
2017-03-03 20:17:11 +00:00
Maxime Coste
6759511b9e
Ensure main selection index is correct directly in SelectionList::remove
2017-03-03 20:17:11 +00:00
Maxime Coste
8a1e5d12ac
Make <a-space> throw on invalid index or last selection
2017-03-03 20:17:11 +00:00
Maxime Coste
e3cfde6d07
Add docstring support for mappings, and use them in autoinfo
...
Fixes #105
Fixes #1100
Closes #1165
2017-03-03 20:16:36 +00:00
Olivier Perret
033b259e5b
<space>, <a-space>: throw on invalid preconditions
2017-03-03 13:50:00 +01:00
Frank LENORMAND
aecc0fbb0f
src: Fix the string conversion of range faces
...
Fixes #1250
2017-03-01 22:16:35 +03:00
Eike Plack
a35f50d832
Add RawKey
to hook completion list
2017-03-01 03:28:23 +01:00
Maxime Coste
7d487e3b4c
Small naming tweak
2017-02-27 20:44:38 +00:00
Maxime Coste
e5e705e151
Fix clang warnings about uninitialized timestamp field
...
Closes #1241
2017-02-27 20:29:53 +00:00
Maxime Coste
88752ef895
Compile optimized and debug into different files, make kak
a symlink
2017-02-27 20:11:56 +00:00
Maxime Coste
1f3abde926
Cleanup some tabby mess in the Makefile
2017-02-27 20:11:27 +00:00
Maxime Coste
8703f30063
Tweak some character categorization function implementations
2017-02-23 00:56:40 +00:00
Maxime Coste
55f6ca238f
Refactor get_words to be simpler and faster
2017-02-23 00:51:54 +00:00
Maxime Coste
73bb260e6c
Fix support for non ascii chars in completion_extra_word_char
2017-02-23 00:35:27 +00:00
Maxime Coste
2f7313ad59
Slight code cleanup in utf8_iterator.hh
2017-02-23 00:30:59 +00:00
Maxime Coste
a39f2b0c71
Refactor WordDB::add_words to be slightly faster
2017-02-23 00:26:24 +00:00
Maxime Coste
d9abc2a156
Refactor StringData and StringRegistry to remove need for purging
...
Purging unused strings could get pretty expensive with a lot of
interned strings as it requiered iterating on all of them. Use
a flag on the refcount of the StringData to see if the string
is interned, and notify the StringRegistry in this case.
This should improve the speed of editing big files with many words,
such as the one described in #1195
2017-02-23 00:03:32 +00:00
Maxime Coste
7a143a7f7c
Use false instead of 0 in the kak_assert do while
2017-02-23 00:03:11 +00:00
Frank LENORMAND
98cfbc7c3c
Properly wrap kak_assert
into a do-while scope
...
Expanding the `kak_assert` macro to either an `if` statement or nothing
leads to issues when the macro is used in a conditional statement that
doesn't use braces.
Example: ncurses_ui.cc:476, in non debug mode, the macro will expand to
an empty line, resulting in the `ungetch` call not being executed if the
`ioctl` call succeeds (line 448).
2017-02-22 13:04:25 +03:00
Maxime Coste
467f5547d5
Try to please clang-3.5
2017-02-22 09:44:19 +00:00
Maxime Coste
e2f6b9a393
Fix overly strict backward_sorted_until
...
A change that ended exactly where the previous one started was not
considered backward sorted. Leading to some very bad performances in
certain cases, like '100000o<esc>u'
2017-02-20 19:46:12 +00:00
Maxime Coste
fe2d0fab71
Fix performance of word completion with many different selections
...
Fixes #1228
2017-02-20 19:28:02 +00:00
Maxime Coste
5eef2b9105
Correctly handle mutation of the watcher list while iterating on them
...
Fixes #1227
2017-02-20 13:50:30 +00:00