Maxime Coste
ca225ad4dc
Cleanup make.kak and optimize the make-next/make-prev regexes
2016-12-09 13:33:01 +00:00
Maxime Coste
5caa969947
Merge branch 'make/error-pattern' of git://github.com/pauldub/kakoune
2016-12-08 23:02:11 +00:00
Maxime Coste
ae70bcf6c9
Merge remote-tracking branch 'casimir/patch-1'
2016-12-08 23:01:32 +00:00
Paul d'Hubert
010453a2ac
Update make.rc error pattern matching
...
- Use the classic unix file:line:(col:)? pattern for matching.
- The option `make_error_pattern` can be used to further restrict errors
to be matched (to include / exclude warnings, etc.
2016-12-08 11:33:28 +01:00
Martin Chaine
5b95e537ba
don't reset line chars for python
2016-12-08 11:18:16 +01:00
Martin Chaine
3227fa7b57
Fix python comment chars
2016-12-08 11:07:25 +01:00
Paul d'Hubert
c54a8ef987
Allow setting custom make error pattern
...
The current pattern used by the commands `make-next` and `make-prev`
are not suitable for all usages.
For example the go compiler will not suffix errors with `error: ` and is
not usable with these functions. This change allows the user to define
a custom error pattern, instead of having to work around the error (for
example using sed to insert the `error: ` suffix).
What do you think of this? I have not followed the current convention
of having options without separators (like `makecmd`). Also this does
not feel to be the right solution because the pattern has to be set at
global level.
2016-12-08 11:01:05 +01:00
Maxime Coste
68d7309ddc
Fix asciidoc error in design.asciidoc
2016-12-08 09:50:26 +00:00
Maxime Coste
948c591e8d
Small wording change in design.asciidoc
2016-12-08 09:48:08 +00:00
Maxime Coste
03eb128536
Ensure content of expanded strings in modelinefmt is not interpreted as markup
2016-12-07 20:07:32 +00:00
Maxime Coste
bc8b30c988
Replace some string concatenations with a format call
2016-12-07 13:57:16 +00:00
Maxime Coste
1383614a5f
Fix markup parsing handling of antislash escapes
...
Antislashes did not need to immediately precede a face spec to
escape it, it could be in any characters before it.
2016-12-07 13:43:27 +00:00
Maxime Coste
2f704eab16
Small command parsing refactoring
2016-12-07 13:26:11 +00:00
Martin Chaine
5fcb99a154
smarter mimetype matching
2016-12-07 14:00:06 +01:00
Maxime Coste
d9679db9b6
Fix scrolling generating invalid buffer coordinates
2016-12-07 00:08:41 +00:00
Maxime Coste
a320dcec28
Small formating fix
2016-12-06 23:08:18 +00:00
Martin Chaine
74432ac8f2
match filetype for eml extension
...
stolen from #878
2016-12-06 17:53:12 +01:00
Martin Chaine
b64bcf7b3e
better filetype detection
...
http://asciidoctor.org/docs/asciidoc-recommended-practices/#document-extension
2016-12-06 17:49:30 +01:00
Martin Chaine
7384288e07
transform mimetype to a fallback option
...
The option is now used as a fallback when detection by extension fails. Some
scripts like `base/mail.kak` and `base/html.kak` still rely heavily on it.
2016-12-06 17:48:46 +01:00
Maxime Coste
e9349cdc92
Ensure timers are still alive when trying to run them
2016-12-06 13:55:53 +00:00
Maxime Coste
b3ac733f33
Fix buffer reload info box not being shown anymore
2016-12-05 23:40:23 +00:00
Maxime Coste
9a986b8d47
Hide eventual info box when returning to normal mode
2016-12-04 23:27:04 +00:00
Maxime Coste
4d538fb423
Only hide menu/info if the insert completer did display it
...
Avoid hiding info boxes opened by other places in the code.
2016-12-04 13:37:33 +00:00
Maxime Coste
e2fae522e5
Small include fix
2016-12-03 13:18:11 +00:00
Maxime Coste
bc8c5522e2
Change ValueId to just be an enum class, it does not need any operators
2016-12-03 13:17:42 +00:00
Maxime Coste
8a74ef9804
Read as much as possible data from shell processes on each read event
...
We were reading at most 1024 bytes every time, going back to the event
loop.
2016-12-03 12:41:36 +00:00
Maxime Coste
75986911f8
Refactor RefPtr handling to use a policy class
...
THe previous overload based system was pretty complex for no good
reason.
2016-12-03 12:32:16 +00:00
Maxime Coste
5ff8245cc8
Display non breaking spaces with ⍽ in show_whitespaces hihglighter
...
Fixes #167
2016-12-02 13:59:34 +00:00
Maxime Coste
d88d0bac42
Rework editorconfig.kak to make it more robust and handle tabs more correctly
2016-12-02 13:44:51 +00:00
Maxime Coste
089ee8ac0a
Fix crash when quitting the first client while another client is connected
2016-12-01 20:55:28 +00:00
Maxime Coste
a65e8142f3
Rework handling of initial coordinates so that init commands can change them
...
Fixes #944
2016-12-01 20:55:20 +00:00
Maxime Coste
3ad554167d
Fix typo in commands.asciidoc
2016-12-01 20:14:31 +00:00
Maxime Coste
8c862c4eea
Only write to remote socket when we know they are writable
...
Buffer data (in an horribly innefficient way for now), and use the
event manager to watch for the socket being ready for a write.
Fixes #945
2016-12-01 20:11:09 +00:00
Maxime Coste
95c1528342
Fix crash when a client sends a packet advertising a wrong size
...
If the given size is less than the header size, the message is
clearly invalid, disconnect the client in that case.
2016-12-01 19:45:23 +00:00
Maxime Coste
7defdd3039
Make FDWatcher support Read, Write and Except events, instead of just Read
2016-12-01 19:44:07 +00:00
Dimitar Dimitrov
d725f3c302
New colorscheme: desertex
2016-12-01 15:45:57 +00:00
Maxime Coste
99a3388e41
Hide the waiting for shell message once the shell returns
2016-11-30 13:46:20 +00:00
Maxime Coste
61b3dfd184
Use a Timer for Shell waiting notification
...
Without a timer we were relying on other event sources to wake us
up to display the information, which was usually a NormalIdle or
a filesystem check timer.
2016-11-30 09:55:05 +00:00
Maxime Coste
540e504e68
Ensure all available input is handled before going back to main loop
...
We were not handling keys that could have been generated while handling
other keys (like during a shell evaluation).
2016-11-30 09:47:38 +00:00
Maxime Coste
3a81260917
Simplify greatly UI input handling
...
This round trip through an input callback expected to call
is_key_available and get_key was overcomplicated, just send the
keys as they arrive, the client is already buffering due to urgent
event mode.
2016-11-29 21:59:36 +00:00
Maxime Coste
2fd1414b05
Clean up includes of user_interface.hh
2016-11-29 19:53:11 +00:00
Maxime Coste
0dff8a7d3f
Small remote code cleanup
2016-11-29 19:52:57 +00:00
Maxime Coste
db86c6cbc9
Small cleanup in BufferManager code
2016-11-29 19:12:10 +00:00
Maxime Coste
168abcdb48
Fix c-family.kak after the change to keep handling of eol
2016-11-29 00:01:37 +00:00
Maxime Coste
12856066b1
Cleanup include dependencies a bit
2016-11-28 23:58:08 +00:00
Maxime Coste
da6d7f4530
Always consider end of selection is not and eol for keep
...
Fixes #921
2016-11-28 21:07:24 +00:00
Maxime Coste
719eb16a5e
Fix matching flags not being forwarded to regex_search
...
Still does not fully fix #921
2016-11-28 20:02:40 +00:00
Maxime Coste
3172c8cfff
Merge remote-tracking branch 'lenormf/fix-compilation-mac'
2016-11-28 19:37:48 +00:00
Frank LENORMAND
2bec452006
Fix compilation on Mac OS Sierra
...
The `xsltproc` utility is missing some xsl files, which are now
installed on the system by the `docbook-xsl` package.
Fixes #939
2016-11-28 18:03:45 +03:00
Martin Chaine
85759d51eb
go: error is a type not a keyword
2016-11-28 15:06:26 +01:00