You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -27,31 +27,33 @@ After pressing **Ctrl+n** twice, you should get a screen similar to the one show
27
27
# Guide
28
28
29
29
* Press **Ctrl+p** and **Ctrl+n** to navigate the questions list.
30
-
***Ctrl+←** and **Ctrl+→** can be used instead.
31
30
* You can also click them using mouse from the footer.
32
31
* Type the command in the box below the question. Cursor focus is meant to be always within this box.
33
32
* Press **Enter** to execute the command.
34
33
*`/bin/sh` is the shell used. So, features like `echo {1..3}` (brace expansion) won't work.
35
34
* Output would be displayed below the command box.
36
35
* If the output matches the expected results, the command box will turn *green* and a reference solution will also be shown.
37
36
* Issues due to errors and timeout (about `2` seconds) will be displayed in *red*.
38
-
* Contents of the input file and expected output are shown at the bottom of the screen. You might have to scroll down to view longer files.
37
+
* Contents of the input file and expected output are shown at the bottom of the screen.
38
+
* You might have to scroll (using mouse or the scrollbar) for longer files.
39
39
* Press **Ctrl+s** to show the reference solution if you are unable to solve an exercise.
40
40
* Press **Ctrl+t** to toggle between light and dark themes.
41
41
* Press **Ctrl+q** or **Ctrl+c** to quit the app.
42
42
* Navigating and editing in the command box:
43
43
* Use mouse click to position the cursor anywhere you like
44
44
***←** move left by one character
45
45
***→** move right by one character
46
-
***Ctrl+a** move to the start of the line
47
-
***Ctrl+e** move to the end of the line
48
-
***Ctrl+w** delete backwards till whitespace boundary or start of the line
49
-
***Ctrl+f** delete forwards till whitespace boundary or end of the line
50
-
***Ctrl+u** delete backwards till start of the line
51
-
***Ctrl+k** delete forwards till end of the line
52
-
***Backspace** delete character to the left of the cursor
53
-
***Ctrl+d** delete character to the right of the cursor
54
-
* Use **Page Up** and **Page Down** (or mouse) to scroll.
46
+
***Home** or **Ctrl+a** move to the start of the line
47
+
***End** or **Ctrl+e** move to the end of the line
48
+
***Ctrl+←** move to the start of the current/previous word
49
+
***Ctrl+→** move to the start of the next word
50
+
***Ctrl+w** delete till the start of the current/previous word
51
+
***Ctrl+f** delete till the start of the next word
52
+
***Ctrl+u** delete till the start of the line
53
+
***Ctrl+k** delete till the end of the line
54
+
***Backspace** or **Ctrl+h** delete character to the left of the cursor
55
+
***Delete** or **Ctrl+d** delete character under the cursor
56
+
***Enter** submit the code for execution
55
57
56
58
> **Note**
57
59
> Commands you have typed are automatically saved in `user_progress.json` (only when you press **Enter** to execute a command — navigating to another question and closing the app won't trigger the save logic). Theme choice is also saved. If you close the application and open it again, the first unsolved question will be displayed (i.e. already solved questions are skipped). If you use **Ctrl+s**, the solution *won't* be saved in `user_progress.json` — you'll have to navigate to another question and back (or close and open the app) to be considered for saving the changes. Once you have solved a question, only a different correct solution can override the previously saved command.
0 commit comments