1.2K Star 11.8K Fork 1.5K

爬山虎 / ndd

 / 详情

建议像notepad2-mod那样,直接弄成替换系统记事本

进行中
创建于  
2023-02-14 09:56

不知道作者有没用过notepad2-mod,个人用过很多记事本软件,最后都是用回了notepad2-mod,因为这个软件可以完美替换系统记事本,替换完之后,所有右键编辑,都会直接打开notepad2-mod(默认是直接打开系统记事本),这样非常方便使用

notepad2-mod唯一的缺点就是没有tab的功能,所有如果notepad--能支持直接替换,应该会很完美
这边也试过自己改了截图内的脚本,换成用notepad--,替换是能替换,但是无法双击或右键编辑打开文本文件,如txt、csv等
输入图片说明

评论 (4)

Jaytive 创建了任务
Jaytive 修改了描述
展开全部操作日志

支持,同希望加此功能

下个版本,安装包会把常见txt格式,都直接使用ndd打开。

爬山虎 任务状态待办的 修改为进行中

可以把这个两格bat文件,发出来一下,我集成到ndd里面去。发到我邮箱里面。感谢反馈。
我的邮箱:757210198@qq.com

采用镜像劫持的方式替代windows系统的记事本

替换系统记事本.bat

@ECHO OFF
PUSHD %~DP0
taskkill /f /im notepad*>NUL 2>NUL
Md "%WinDir%\System32\test_permissions" 2>NUL||(Echo 请使用右键管理员身份运行&&Pause >NUL&&Exit)
Rd "%WinDir%\System32\test_permissions" 2>NUL
SetLocal EnableDelayedExpansion
if not exist "%WinDir%\SysWOW64" reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe" /v "Debugger" /t REG_SZ /d "\"%~dp0Notepad2.exe\" /z" /f
if exist "%WinDir%\SysWOW64" reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe" /v "Debugger" /t REG_SZ /d "\"%~dp0Notepad2_x64.exe\" /z" /f
exit

恢复系统记事本.bat

@ECHO OFF
PUSHD %~DP0
taskkill /f /im notepad*>NUL 2>NUL
Md "%WinDir%\System32\test_permissions" 2>NUL||(Echo 请使用右键管理员身份运行&&Pause >NUL&&Exit)
Rd "%WinDir%\System32\test_permissions" 2>NUL
SetLocal EnableDelayedExpansion
reg delete "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe" /f
reg delete "HKLM\Software\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe" /f
exit

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(4)
C++
1
https://gitee.com/cxasm/notepad--.git
git@gitee.com:cxasm/notepad--.git
cxasm
notepad--
ndd

搜索帮助

344bd9b3 5694891 D2dac590 5694891