Skip to content

Commit 0e2060f

Browse files
committed
docs(readme.md): 更新说明文档,修改默认最大历史记录为500
1 parent cea29e4 commit 0e2060f

File tree

4 files changed

+23
-5
lines changed

4 files changed

+23
-5
lines changed

README.md

+21-3
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,39 @@
88
<img flex="left" src="https://img.shields.io/github/license/caoxiemeihao/electron-vite-vue?style=flat"/>
99
</div>
1010

11-
[English](./README.en.md) | 简体中文
11+
[English](README.en.md) | 简体中文
1212

1313

1414

1515
# 使用|Usage
1616

1717
- **`Alt + f1` 调出命令输入框,直接执行`cmd`的命令**
18+
```bash
19+
# 调出输入框
20+
alt + f1
1821

22+
# 支持单条命令
23+
npm i
24+
25+
# 支持组合命令
26+
git add . & git cz
27+
mkdir projectName & cd projectName & npm init -y
28+
29+
30+
# "$" 或者 ":" 前缀
31+
# 在新的cmd窗口执行,且15秒后自动关闭
32+
$npm init -y
33+
34+
# 在新的cmd窗口执行,按任意键才能关闭
35+
:npm init -y
36+
```
1937
![](screenshot/step1.gif)
2038

2139

2240

2341
- **历史记录功能**
24-
25-
![](screenshot\step1.gif)
42+
默认记录100条,最高500条
43+
![](screenshot\step2.gif)
2644

2745

2846

core/history.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from os import path
1717

1818
class History:
19-
def __init__(self, file_path:str, max_count:int=10, repeat=False):
19+
def __init__(self, file_path:str, max_count:int=500, repeat=False):
2020
"""
2121
@Description {description}
2222

main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def plugin_loaded():
148148
ensure_panel(PANEL_NAME)
149149

150150
SETTINGS = SettingManager(PLUGIN_NAME, DEFAULT_SETTINGS)
151-
HISTORY = History(HISTORY_LOCAL_FILE, max_count=50)
151+
HISTORY = History(HISTORY_LOCAL_FILE, max_count=100)
152152
WORK_SPACE = path.abspath(SETTINGS['default_workspace'])
153153

154154

screenshot/Usage.png

95.7 KB
Loading

0 commit comments

Comments
 (0)