0x7c13 / Notepads

A modern, lightweight text editor with a minimalist design.
https://www.NotepadsApp.com
MIT License
8.78k stars 481 forks source link

添加命令行处理功能以便在命令行环境下方便使用 #1097

Open ghost opened 2 years ago

ghost commented 2 years ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like A clear and concise description of what you want to happen.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

ghost commented 2 years ago

我在命令行环境下工作的时间比较多 常常需要从命令行打开notepads 似乎当前从命令行启动notepads只支持同时打开一个文件 若给出目录多于一个则无效 且无法通过从命令行指定一个不存在的文件名以创建该文件 这导致了每次想保存时路径都是从用户默认目录开始的 必须再次手动输入当前目录

I‘m used to use cli env and usually open file under cli using notepads. It seems that when starts from cli, notepads now only supports just one existed path; If given more than one path from cli to open, notepads drops back to open neither but a brand-new blank file; And it seems that it doesn't support to designate a filepath to be created, under which circumstances each time I want to save a file I must manually change the savingpath from $DEFAULT, which is annoying.