|
3 | 3 |
|
4 | 4 | LeetCode brings you offer, and now Emacs brings you LeetCode! |
5 | 5 |
|
| 6 | +# Usage |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | +1. Execute `leetcode` command, and in problem list buffer: |
| 11 | + |
| 12 | +| keymap | command | |
| 13 | +|--------|----------------------------------------| |
| 14 | +| n | cursor move down | |
| 15 | +| p | cursor move up | |
| 16 | +| s | filter problems by regex | |
| 17 | +| t | filter problems by tag | |
| 18 | +| d | filter problems by difficulty | |
| 19 | +| / | clear filters | |
| 20 | +| g | refresh without fetching from LeetCode | |
| 21 | +| G | refresh all data | |
| 22 | +| RET | show current problem description | |
| 23 | + |
| 24 | +2. Press `<RET>`, show problem description, move cursor to "solve it", press |
| 25 | + `<RET>` again, start coding! |
| 26 | + |
| 27 | +3. After finishing your code, you can edit testcase and execute `leetcode-try` |
| 28 | + or execute `leetcode-submit`. |
| 29 | + |
| 30 | + |
| 31 | + |
6 | 32 | # Installation |
7 | 33 |
|
8 | 34 | - Vanilla Emacs: `package-install` it from melpa directly |
@@ -41,34 +67,6 @@ You can save solution by setting `leetcode-save-solutions`: |
41 | 67 | (setq leetcode-directory "~/leetcode") |
42 | 68 | ``` |
43 | 69 |
|
44 | | -# Usage |
45 | | - |
46 | | -1. Execute `leetcode` command. |
47 | | - |
48 | | - |
49 | | - |
50 | | -In leetcode problems list buffer: |
51 | | - |
52 | | -| keymap | command | |
53 | | -|--------|----------------------------------------| |
54 | | -| n | cursor move down | |
55 | | -| p | cursor move up | |
56 | | -| s | filter problems by regex | |
57 | | -| t | filter problems by tag | |
58 | | -| d | filter problems by difficulty | |
59 | | -| / | clear filters | |
60 | | -| g | refresh without fetching from LeetCode | |
61 | | -| G | refresh all data | |
62 | | -| RET | show current problem description | |
63 | | - |
64 | | -2. Press `<RET>`, show problem description, move cursor to "solve it", press |
65 | | - `<RET>` again, start coding! |
66 | | - |
67 | | -3. After finishing your code, you can edit testcase and execute `leetcode-try` |
68 | | - or execute `leetcode-submit`. |
69 | | - |
70 | | - |
71 | | - |
72 | 70 | # Debug |
73 | 71 |
|
74 | 72 | Call `leetcode-toggle-debug`, log will output in `*leetcode-log*` buffer. |
|
0 commit comments