Skip to content

Commit

Permalink
fix: change --no-hot-exit to --no-restore-session (#334)
Browse files Browse the repository at this point in the history
* Update _index.md

* Update _index.md

* fix: add missing changes

---------

Co-authored-by: Flex Zhong <chungzh07@gmail.com>
  • Loading branch information
ouuan and ChungZH authored Feb 14, 2024
1 parent 4577cad commit db92321
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion content/docs/preferences/actions/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ You can read the manual of your terminal emulator to get the suitable arguments.

Save the status of the editor, and restore most status from the last session when you start CP Editor.

You can use the `--no-hot-exit` command-line option to temporarily disable this, in case that the last session is too big and the application hangs.
You can use the `--no-restore-session` command-line option to temporarily disable this, in case that the last session is too big and the application hangs.

### Auto-save the current session periodically

Expand Down
2 changes: 1 addition & 1 deletion content/docs/preferences/actions/_index.ru.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ You can read the manual of your terminal emulator to get the suitable arguments.

Save the status of the editor, and restore most status from the last session when you start CP Editor.

You can use the `--no-hot-exit` command-line option to temporarily disable this, in case that the last session is too big and the application hangs.
You can use the `--no-restore-session` command-line option to temporarily disable this, in case that the last session is too big and the application hangs.

### Auto-save the current session periodically

Expand Down
2 changes: 1 addition & 1 deletion content/docs/preferences/actions/_index.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ weight: 40

在退出 CP Editor 时保存当前状态,并在启动时恢复上一次会话。

在终端下,你可以使用 `--no-hot-exit` 命令以暂时禁用该选项。如果上一次会话过大导致 CP Editor 卡死,该命令将会解决这一问题。
在终端下,你可以使用 `--no-restore-session` 命令以暂时禁用该选项。如果上一次会话过大导致 CP Editor 卡死,该命令将会解决这一问题。

### 定期自动保存当前会话

Expand Down
2 changes: 1 addition & 1 deletion content/docs/preferences/actions/_index.zh_tw.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ You can read the manual of your terminal emulator to get the suitable arguments.

Save the status of the editor, and restore most status from the last session when you start CP Editor.

You can use the `--no-hot-exit` command-line option to temporarily disable this, in case that the last session is too big and the application hangs.
You can use the `--no-restore-session` command-line option to temporarily disable this, in case that the last session is too big and the application hangs.

### Auto-save the current session periodically

Expand Down
2 changes: 1 addition & 1 deletion content/docs/tips/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,6 @@ CP Editor supports some command-line options, run `cpeditor --help` for more inf

On Windows, it's better to use UNIX-like shells like git bash.

In the command line, you can open a non-existing file as a tab by `cpeditor <path>` (and you can save to this path later), open all C++ files in a directory recursively by `cpeditor --cpp <directory>` or temporarily disable [Restore last session at startup](../preferences/actions/\_index.md#restore-last-session-at-startup) by `cpeditor --no-hot-exit`.
In the command line, you can open a non-existing file as a tab by `cpeditor <path>` (and you can save to this path later), open all C++ files in a directory recursively by `cpeditor --cpp <directory>` or temporarily disable [Restore last session at startup](../preferences/actions/\_index.md#restore-last-session-at-startup) by `cpeditor --no-restore-session`.

CP Editor normally closes when receiving SIGINT and SIGHUP, so if you start CP Editor in the command line, you can safely press <kbd>Ctrl+C</kbd> to quit.
2 changes: 1 addition & 1 deletion content/docs/tips/_index.ru.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,6 @@ CP Editor supports some command-line options, run `cpeditor --help` for more inf

On Windows, it's better to use UNIX-like shells like git bash.

In the command line, you can open a non-existing file as a tab by `cpeditor <path>` (and you can save to this path later), open all C++ files in a directory recursively by `cpeditor --cpp <directory>` or temporarily disable [Restore last session at startup](../preferences/actions/\_index.ru.md#restore-last-session-at-startup) by `cpeditor --no-hot-exit`.
In the command line, you can open a non-existing file as a tab by `cpeditor <path>` (and you can save to this path later), open all C++ files in a directory recursively by `cpeditor --cpp <directory>` or temporarily disable [Restore last session at startup](../preferences/actions/\_index.ru.md#restore-last-session-at-startup) by `cpeditor --no-restore-session`.

CP Editor normally closes when receiving SIGINT and SIGHUP, so if you start CP Editor in the command line, you can safely press <kbd>Ctrl+C</kbd> to quit.
2 changes: 1 addition & 1 deletion content/docs/tips/_index.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,6 @@ CP Editor 支持在命令行下启动,可以通过执行 `cpeditor --help` 命

在 Windows 下,更推荐使用类 UNIX 的终端(如 Git Bash)。

在命令行下,你可以通过 `cpeditor <path>` 来在指定的位置创建新文件,或是用 `cpeditor --cpp <directory>` 打开一个目录下的所有 C++ 源代码,还可以通过 `cpeditor --no-hot-exit` 暂时禁用 [在启动时恢复上一次会话](../preferences/actions/\_index.zh.md#在启动时恢复上一次会话)
在命令行下,你可以通过 `cpeditor <path>` 来在指定的位置创建新文件,或是用 `cpeditor --cpp <directory>` 打开一个目录下的所有 C++ 源代码,还可以通过 `cpeditor --no-restore-session` 暂时禁用 [在启动时恢复上一次会话](../preferences/actions/\_index.zh.md#在启动时恢复上一次会话)

CP Editor 在接收到 SIGINT 和 SIGHUP 命令时会正常关闭,因此如果你在命令行下启动 CP Editor,你可以通过按下 <kbd>Ctrl+C</kbd> 退出,而不必担心丢失任何工作。
2 changes: 1 addition & 1 deletion content/docs/tips/_index.zh_tw.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,6 @@ CP Editor supports some command-line options, run `cpeditor --help` for more inf

On Windows, it's better to use UNIX-like shells like git bash.

In the command line, you can open a non-existing file as a tab by `cpeditor <path>` (and you can save to this path later), open all C++ files in a directory recursively by `cpeditor --cpp <directory>` or temporarily disable [Restore last session at startup](../preferences/actions/\_index.zh_tw.md#restore-last-session-at-startup) by `cpeditor --no-hot-exit`.
In the command line, you can open a non-existing file as a tab by `cpeditor <path>` (and you can save to this path later), open all C++ files in a directory recursively by `cpeditor --cpp <directory>` or temporarily disable [Restore last session at startup](../preferences/actions/\_index.zh_tw.md#restore-last-session-at-startup) by `cpeditor --no-restore-session`.

CP Editor normally closes when receiving SIGINT and SIGHUP, so if you start CP Editor in the command line, you can safely press <kbd>Ctrl+C</kbd> to quit.

0 comments on commit db92321

Please sign in to comment.