Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 329b92f382 | |||
| 12553f301b | |||
| 75b19042b9 | |||
| 1a184b1a08 |
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.15)
|
|||||||
project(ke C) # Specify C language explicitly
|
project(ke C) # Specify C language explicitly
|
||||||
|
|
||||||
set(CMAKE_C_STANDARD 99)
|
set(CMAKE_C_STANDARD 99)
|
||||||
set(KE_VERSION "1.3.6")
|
set(KE_VERSION "1.4.0")
|
||||||
|
|
||||||
set(CMAKE_C_FLAGS "-Wall -Wextra -pedantic -Wshadow -Werror -std=c99 -g")
|
set(CMAKE_C_FLAGS "-Wall -Wextra -pedantic -Wshadow -Werror -std=c99 -g")
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_DEFAULT_SOURCE -D_XOPEN_SOURCE")
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_DEFAULT_SOURCE -D_XOPEN_SOURCE")
|
||||||
|
|||||||
5
Makefile
5
Makefile
@@ -26,3 +26,8 @@ clean:
|
|||||||
.PHONY: test.txt
|
.PHONY: test.txt
|
||||||
test.txt:
|
test.txt:
|
||||||
cp test.txt.bak $@
|
cp test.txt.bak $@
|
||||||
|
|
||||||
|
.PHONY: gdb
|
||||||
|
gdb:
|
||||||
|
@test -f $(TARGET).pid || (echo "error: $(TARGET).pid not found" >&2; exit 1)
|
||||||
|
@gdb -p $$(cat $(TARGET).pid | tr -d ' \t\n\r') ./$(TARGET)
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
}:
|
}:
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
pname = "ke";
|
pname = "ke";
|
||||||
version = "1.3.6";
|
version = "1.4.0";
|
||||||
|
|
||||||
src = lib.cleanSource ./.;
|
src = lib.cleanSource ./.;
|
||||||
|
|
||||||
|
|||||||
17
ke.1
17
ke.1
@@ -26,6 +26,8 @@ k-command mode can be exited with ESC or C-g.
|
|||||||
.Bl -tag -width xxxxxxxxxxxx -offset indent
|
.Bl -tag -width xxxxxxxxxxxx -offset indent
|
||||||
.It C-k BACKSPACE
|
.It C-k BACKSPACE
|
||||||
Delete from the cursor to the beginning of the line.
|
Delete from the cursor to the beginning of the line.
|
||||||
|
.It C-k c
|
||||||
|
Clear (flush) the kill ring.
|
||||||
.It C-k SPACE
|
.It C-k SPACE
|
||||||
Toggle the mark.
|
Toggle the mark.
|
||||||
.It C-k d
|
.It C-k d
|
||||||
@@ -38,18 +40,25 @@ Edit a new file. Also C-k C-e.
|
|||||||
Incremental find.
|
Incremental find.
|
||||||
.It C-k g
|
.It C-k g
|
||||||
Go to a specific line.
|
Go to a specific line.
|
||||||
|
.It C-k j
|
||||||
|
Jump to the mark.
|
||||||
.It C-k l
|
.It C-k l
|
||||||
List the number of lines of code in a saved file.
|
List the number of lines of code in a saved file.
|
||||||
.It C-k m
|
.It C-k m
|
||||||
Run make(1).
|
Run make(1).
|
||||||
.It C-k q
|
.It C-k q
|
||||||
exit the editor. Also C-k C-q.
|
Exit the editor. If the file has unsaved changes,
|
||||||
|
a warning will be printed; a second C-k q will exit.
|
||||||
|
.It C-k C-q
|
||||||
|
Immediately exit the editor.
|
||||||
|
.It C-k C-r
|
||||||
|
Reload the current buffer from disk.
|
||||||
.It C-k s
|
.It C-k s
|
||||||
save the file, prompting for a filename if needed. Also C-k C-s.
|
save the file, prompting for a filename if needed. Also C-k C-s.
|
||||||
.It C-k x
|
.It C-k x
|
||||||
save the file and exit. Also C-k C-x.
|
save the file and exit. Also C-k C-x.
|
||||||
.It C-k y
|
.It C-k y
|
||||||
Yank the killring.
|
Yank the kill ring.
|
||||||
.It C-k \[char92]
|
.It C-k \[char92]
|
||||||
Dump core.
|
Dump core.
|
||||||
.El
|
.El
|
||||||
@@ -64,7 +73,7 @@ Incremental find.
|
|||||||
.It C-w
|
.It C-w
|
||||||
Kill the region if the mark is set.
|
Kill the region if the mark is set.
|
||||||
.It C-y
|
.It C-y
|
||||||
Yank the killring.
|
Yank the kill ring.
|
||||||
.It ESC BACKSPACE
|
.It ESC BACKSPACE
|
||||||
Delete the previous word.
|
Delete the previous word.
|
||||||
.It ESC b
|
.It ESC b
|
||||||
@@ -74,7 +83,7 @@ Delete the next word.
|
|||||||
.It ESC f
|
.It ESC f
|
||||||
Move to the next word.
|
Move to the next word.
|
||||||
.It ESC w
|
.It ESC w
|
||||||
Save the region (if the mark is set) to the killring.
|
Save the region (if the mark is set) to the kill ring.
|
||||||
.It
|
.It
|
||||||
.El
|
.El
|
||||||
.Sh FIND
|
.Sh FIND
|
||||||
|
|||||||
Reference in New Issue
Block a user