Maxime Coste
e384e7263c
Use CPPFLAGS instead of CXXFLAGS for the _XOPEN_SOURCE define
2016-10-13 00:19:27 +01:00
Frank LENORMAND
8b5cf3feb0
Add a missing then
keyword to an if
statement
2016-10-12 15:35:25 +03:00
Frank LENORMAND
70fd03679b
Add a warning about setting $TERM
manually, fix some typos
2016-10-12 09:36:42 +03:00
Frank LENORMAND
b0d8e1a230
Answer the pager question in the FAQ document
2016-10-11 14:40:20 +03:00
Frank LENORMAND
f7e2bfd76f
Document the optional parameter of the cd
command
2016-10-11 10:39:20 +03:00
Frank LENORMAND
f6a2925950
Fix, complete and add docstring documentation to builtin commands
...
Level out the builtin commands loaded at startup in terms of format and
expressiveness. The following convention was followed:
* commands that take more than one argument have to be described along
with their parameters prior to the actual documentation, otherwise the
docstring consists in a capitalized sentence
e.g. `command <arg1>: do something`
* optional arguments are enclosed in square brackets, to comply with the
format used for hardcoded commands
e.g. `cd [<directory>]`
* describe the effects of the command in the documentation string and
omit implementation details unless they are relevant. Usually command
names include the name of the tool they use, so they don't need to be
redundantly mentioned
e.g. `tmux-new-pane <arguments>: open a new pane`
* document the format the parameters to the commands, or list them if
they are to be chosen among a list of static values (c.f. `spell.kak`)
2016-10-11 10:26:17 +03:00
Maxime Coste
5440d31f99
Only create a default *scratch* when we dont have any non debug buffers
...
Fixes #852
Closes #856
2016-10-11 00:45:05 +01:00
Maxime Coste
780a4605fa
More transform(...) filter cleanup using mem_fn when possible
2016-10-11 00:32:40 +01:00
Maxime Coste
8b6eba8208
Add support for repeating the last object/char find command
...
This is a potential solution for #794 .
2016-10-11 00:20:36 +01:00
Maxime Coste
f6cdc2eee5
Use std::begin/std::end in containers.hh instead of the method version
2016-10-11 00:17:00 +01:00
Maxime Coste
025b91baca
Convert some uses of lambda to more concise std::mem_fn
2016-10-10 23:44:18 +01:00
Maxime Coste
bc9d1b4dac
Small formatting fixup
2016-10-10 23:20:05 +01:00
Maxime Coste
0d2bb4756b
Fix register alternate name doc and dash -> hash for '#'
2016-10-10 23:19:57 +01:00
Maxime Coste
10681f4809
Merge remote-tracking branch 'Delapouite/typo'
2016-10-09 23:30:00 +01:00
Maxime Coste
314108e539
Document register alternate names and add some missing ones
...
Fixes #853
2016-10-09 23:27:52 +01:00
Martin Chaine
3b6cafd692
Renamed dlang to d
2016-10-09 11:57:55 +02:00
Martin Chaine
e14804fada
Renamed golang to go
2016-10-08 21:42:43 +02:00
Maxime Coste
d89959dfa8
autorestore.kak: more tweaks, a WIP version was pushed by error
2016-10-07 08:57:45 +01:00
Maxime Coste
f904402486
Handle all available keys when a RemoteClient input is available
...
We were just treating the next key. Which led to <esc> byte
remaining after suspend, that led that <esc> being interpretted
as <alt> when the following key got available.
Fixes #739
2016-10-06 23:47:44 +01:00
Maxime Coste
006be63a32
Ensure local client is destroyed before we fork the server to background
...
The recent change that introduced defered client deletion made the local
client destruction happens too late, putting the terminal in a bad state
when we resumed the process as client only.
2016-10-06 23:35:32 +01:00
Maxime Coste
5dd47e9c33
Preserve shell context through eval command
...
Fixes #835
2016-10-06 23:22:39 +01:00
Maxime Coste
1970cb68c9
Refactor autorestore.kak to make it faster
2016-10-06 22:35:07 +01:00
Delapouite
acafe5f0b9
Fix typo horzontally → horizontally
2016-10-06 16:13:40 +02:00
Maxime Coste
35a6d4916e
Fix :doc completion candidates, they do not depend on the current word
...
Fixes #845
2016-10-06 13:38:49 +01:00
Maxime Coste
f67d5076c4
Tweak spell.kak, embrace printf and refactor a bit
2016-10-06 13:32:51 +01:00
Maxime Coste
92b4046ba8
Merge remote-tracking branch 'lenormf/fix-spell'
2016-10-06 09:27:50 +01:00
Maxime Coste
9078039326
Fix select_to_previous_word with spaces at buffer start
...
Fixes #844
2016-10-05 23:42:36 +01:00
Maxime Coste
8579e299da
Fix custom text object
2016-10-05 09:36:39 +01:00
Frank LENORMAND
273455ecc8
Fix non POSIX instructions, print errors when they occur
2016-10-05 07:56:40 +03:00
Maxime Coste
f81b8c137b
Replace non ascii chars with ? in xterm title, and limit to 511 chars
...
Closes #839
2016-10-04 20:13:15 +01:00
Maxime Coste
d2a324d3c4
Treat '\n' as 1 column wide
...
Fixes #842
2016-10-04 19:37:43 +01:00
Maxime Coste
a00e40e151
Fix gdb pretty printers after rename of the coordinate types
2016-10-04 19:37:21 +01:00
Maxime Coste
40fb56c87a
Small code cleanup
2016-10-04 19:37:17 +01:00
Maxime Coste
620fc28ea6
Add "(extend)" to search prompts when we are extending the selection
...
Fixes #832
2016-10-04 13:18:03 +01:00
Maxime Coste
8a4cf85e22
Use eval -no-hooks when writing the buffer in a tmp file for scripting purposes
2016-10-03 20:29:54 +01:00
Maxime Coste
9e12ac327b
Refactor hook disabling in normal mode
...
Normal mode takes care of keeping hooks disabled until nested modes
finishes.
Requiered form #818 , not sufficient yet.
2016-10-03 20:02:37 +01:00
Maxime Coste
a51d5a1046
Do not select the next word for inner word.
2016-10-03 20:01:37 +01:00
Maxime Coste
c7356c8e9c
Close write buffer file descriptor before getting the new fs timestamp
2016-10-03 20:00:36 +01:00
Maxime Coste
4addf65042
Merge remote-tracking branch 'alexherbo2/fish-rc'
2016-10-02 20:38:55 +01:00
Maxime Coste
4d6af15734
Merge remote-tracking branch 'lenormf/fix-autowrap'
2016-10-02 20:26:36 +01:00
Frank LENORMAND
a28f8f9577
Update the minimum version of gcc
required to build
2016-10-02 07:52:21 +03:00
Maxime Coste
ae50b3f089
Fix clojure hook
2016-10-02 00:02:52 +01:00
Maxime Coste
d50087eabe
Change BufWritePre/BufWritePost logic
...
Run them in client context if possible, and give them the target
filename instead of the buffer name.
Fixes #823
2016-10-01 23:51:53 +01:00
Maxime Coste
4b6d4ec8eb
Small refactoring in highlighters.cc
2016-10-01 14:12:21 +01:00
Maxime Coste
1b9c8b9cf2
Fix hool -> hook in rc files
2016-10-01 14:09:59 +01:00
Maxime Coste
8cc30a8ca0
Enable _XOPEN_SOURCE=700 on cygwin to get the wcwidth function
2016-10-01 13:46:55 +01:00
Maxime Coste
249ec4835e
Rename get_width to codepoint_width
2016-10-01 13:45:00 +01:00
Maxime Coste
28cfd0bb61
Fix get_column function and add some unit tests for fullwidth text
2016-10-01 13:45:00 +01:00
Maxime Coste
35559b65dd
Support codepoints of variable width
...
Add a ColumnCount type and use it in place of CharCount whenever
more appropriate, take column size of codepoints into account for
vertical movements and docstring wrapping.
Fixes #811
2016-10-01 13:45:00 +01:00
Maxime Coste
6e17ecfb6e
Fix golang.kak highlighting hooks
2016-10-01 13:44:18 +01:00