diff --git a/config/zh/imports/develop.nss b/config/zh/imports/develop.nss index b9fcfcd..f04d5de 100644 --- a/config/zh/imports/develop.nss +++ b/config/zh/imports/develop.nss @@ -1,36 +1,36 @@ -menu(mode="multiple" title='&开发者菜单' sep=sep.bottom image=\uE26E) -{ - menu(mode="single" title='编辑' image=\uE17A) - { - item(title='Visual Studio Code' image=[\uE272, #22A7F2] cmd='code' args='"@sel.path"') - separator - item(type='file' mode="single" title='Windows 记事本' image cmd='@sys.bin\notepad.exe' args='"@sel.path"') - } - - menu(mode="multiple" title='网络' image=\uE143) - { - item(title='开始运行' cmd-line='/K dotnet run' image=\uE149) - item(title='监视' cmd-line='/K dotnet watch') - item(title='清理' image=\uE0CE cmd-line='/K dotnet clean') - separator - item(title='建立调试' cmd-line='/K dotnet build') - item(title='构建发布' cmd-line='/K dotnet build -c release /p:DebugType=None') - - menu(mode="multiple" sep="both" title='发布' image=\ue11f) - { - var { publish='dotnet publish -r win-x64 -c release --output publish /*/p:CopyOutputSymbolsToPublishDirectory=false*/' } - item(title='发布sinale文件' sep="after" cmd-line='/K @publish --no-self-contained /p:PublishSingleFile=true') - item(title='基于框架来部署的项目' cmd-line='/K @publish') - item(title='依赖于框架的可执行程序项目' cmd-line='/K @publish --self-contained false') - item(title='独自一体的部署项目' cmd-line='/K @publish --self-contained true') - item(title='单个文件项目' cmd-line='/K @publish /p:PublishSingleFile=true /p:PublishTrimmed=false') - item(title='单层修饰的项目' cmd-line='/K @publish /p:PublishSingleFile=true /p:PublishTrimmed=true') - } - - item(title='ef migrations添加InitialCreate' cmd-line='/K dotnet ef migrations add InitialCreate') - item(title='ef 数据库更新' cmd-line='/K dotnet ef database update') - separator - item(title='帮助' image=\uE136 cmd-line='/k dotnet -h') - item(title='版本' cmd-line='/k dotnet --info') - } -} \ No newline at end of file +menu(mode="multiple" title='&开发人员菜单' vis=key.shift() sep=sep.bottom image=\uE26E) +{ + menu(mode="single" title='编辑器' image=\uE17A) + { + item(title='Visual Studio Code' image=[\uE272, #22A7F2] cmd='code' args='"@sel.path"') + separator + item(type='file' mode="single" title='Windows notepad' image cmd='@sys.bin\notepad.exe' args='"@sel.path"') + } + + menu(mode="multiple" title='.NET' image=\uE143) + { + item(title='run' cmd-line='/K dotnet run' image=\uE149) + item(title='watch' cmd-line='/K dotnet watch') + item(title='clean' image=\uE0CE cmd-line='/K dotnet clean') + separator + item(title='build debug' cmd-line='/K dotnet build') + item(title='build release' cmd-line='/K dotnet build -c release /p:DebugType=None') + + menu(mode="multiple" sep="both" title='publish' image=\ue11f) + { + $publish='dotnet publish -r win-x64 -c release --output publish /*/p:CopyOutputSymbolsToPublishDirectory=false*/' + item(title='publish single file' sep="after" cmd-line='/K @publish --no-self-contained /p:PublishSingleFile=true') + item(title='framework-dependent deployment' cmd-line='/K @publish') + item(title='framework-dependent executable' cmd-line='/K @publish --self-contained false') + item(title='self-contained deployment' cmd-line='/K @publish --self-contained true') + item(title='single-file' cmd-line='/K @publish /p:PublishSingleFile=true /p:PublishTrimmed=false') + item(title='single-file-trimmed' cmd-line='/K @publish /p:PublishSingleFile=true /p:PublishTrimmed=true') + } + + item(title='ef migrations add InitialCreate' cmd-line='/K dotnet ef migrations add InitialCreate') + item(title='ef database update' cmd-line='/K dotnet ef database update') + separator + item(title='help' image=\uE136 cmd-line='/k dotnet -h') + item(title='version' cmd-line='/k dotnet --info') + } +} diff --git a/config/zh/imports/file-manage.nss b/config/zh/imports/file-manage.nss index 1b8c42b..cdcbf37 100644 --- a/config/zh/imports/file-manage.nss +++ b/config/zh/imports/file-manage.nss @@ -1,77 +1,80 @@ -menu(where=sel.count>0 type='file|dir|drive|namespace|back' mode="multiple" title='文件管理' image=\uE253) -{ - menu(separator="after" title=title.copy_path image=icon.copy_path) - { - item(where=sel.count > 1 title='Copy (@sel.count) items selected' cmd=command.copy(sel(false, "\n"))) - item(mode="single" title=@sel.path tip=sel.path cmd=command.copy(sel.path)) - item(mode="single" type='file' separator="before" find='.lnk' title='open file location') - separator - item(mode="single" where=@sel.parent.len>3 title=sel.parent cmd=@command.copy(sel.parent)) - separator - item(mode="single" type='file|dir|back.dir' title=sel.file.name cmd=command.copy(sel.file.name)) - item(mode="single" type='file' where=sel.file.len != sel.file.title.len title=@sel.file.title cmd=command.copy(sel.file.title)) - item(mode="single" type='file' where=sel.file.ext.len>0 title=sel.file.ext cmd=command.copy(sel.file.ext)) - } - - menu(separator="after" image=\uE290 title=title.select) - { - item(title="全部" image=icon.select_all cmd=command.select_all) - item(title="倒序" image=icon.invert_selection cmd=command.invert_selection) - item(title="取消" image=icon.select_none cmd=command.select_none) - } - - item(type='file|dir|back.dir|drive' title='取得文件所有权' image=[\uE194,#f00] admin - cmd args='/K takeown /f "@sel.path" @if(sel.type==1,null,"/r /d y") && icacls "@sel.path" /grant *S-1-5-32-544:F @if(sel.type==1,"/c /l","/t /c /l /q")') - separator - menu(title="显示/隐藏" image=icon.show_hidden_files) - { - item(title="系统文件" image=inherit cmd='@command.togglehidden') - item(title="文件扩展名" image=icon.show_file_extensions cmd='@command.toggleext') - } - - menu(type='file|dir|back.dir' mode="single" title='属性' image=icon.properties) - { - var { atrr = io.attributes(sel.path) } - item(title='隐藏的' checked=io.attribute.hidden(atrr) - cmd args='/c ATTRIB @if(io.attribute.hidden(atrr),"-","+")H "@sel.path"' window=hidden) - - item(title='系统' checked=io.attribute.system(atrr) - cmd args='/c ATTRIB @if(io.attribute.system(atrr),"-","+")S "@sel.path"' window=hidden) - - item(title='只读' checked=io.attribute.readonly(atrr) - cmd args='/c ATTRIB @if(io.attribute.readonly(atrr),"-","+")R "@sel.path"' window=hidden) - - item(title='存档' checked=io.attribute.archive(atrr) - cmd args='/c ATTRIB @if(io.attribute.archive(atrr),"-","+")A "@sel.path"' window=hidden) - separator - item(title="创建" keys=io.dt.created(sel.path, 'y/m/d') cmd=io.dt.created(sel.path,2000,1,1) vis=label) - item(title="被修改的" keys=io.dt.modified(sel.path, 'y/m/d') cmd=io.dt.modified(sel.path,2000,1,1) vis=label) - item(title="访问" keys=io.dt.accessed(sel.path, 'y/m/d') cmd=io.dt.accessed(sel.path,2000,1,1) vis=label) - } - - menu(mode="single" type='file' find='.dll|.ocx' separator="before" title='Register Server' image=\uea86) - { - item(title='注册' admin cmd='regsvr32.exe' args='@sel.path.quote' invoke="multiple") - item(title='注销' admin cmd='regsvr32.exe' args='/u @sel.path.quote' invoke="multiple") - } - - menu(mode="single" type='back' expanded=true) - { - menu(separator="before" title='创建文件夹' image=icon.new_folder) - { - item(title='以时间命名' cmd=io.dir.create(sys.datetime("y年m月d号,H:M"))) - item(title='GUID随机名' cmd=io.dir.create(str.guid)) - } - - menu(title='新建文件' image=icon.new_file) - { - var { dt = sys.datetime("y年m月d号,H:M")} - item(title='TXT' cmd=io.file.create('@(dt).txt', 'Hello World!')) - item(title='XML' cmd=io.file.create('@(dt).xml', 'Hello World!')) - item(title='JSON' cmd=io.file.create('@(dt).json', '[]')) - item(title='HTML' cmd=io.file.create('@(dt).html', "\n\t\n\t\n\tHello World!\n\t\n")) - } - } - - item(where=!wnd.is_desktop title=title.folder_options image=icon.folder_options cmd=command.folder_options) +menu(where=sel.count>0 type='file|dir|drive|namespace|back' mode="multiple" title='文件资源管理器' image=\uE253) +{ + menu(separator="after" title=title.copy_path image=icon.copy_path) + { + item(where=sel.count > 1 title='复制已选的 @sel.count 个文件' cmd=command.copy(sel(false, "\n"))) + item(mode="single" title=@sel.path tip=sel.path cmd=command.copy(sel.path)) + item(mode="single" type='file' separator="before" find='.lnk' title='打开文件所在路径') + separator + item(mode="single" where=@sel.parent.len>3 title=sel.parent cmd=@command.copy(sel.parent)) + separator + item(mode="single" type='file|dir|back.dir' title=sel.file.name cmd=command.copy(sel.file.name)) + item(mode="single" type='file' where=sel.file.len != sel.file.title.len title=@sel.file.title cmd=command.copy(sel.file.title)) + item(mode="single" type='file' where=sel.file.ext.len>0 title=sel.file.ext cmd=command.copy(sel.file.ext)) + } + + item(mode="single" type="file" title="修改扩展名" image=\uE0B5 cmd=if(input("修改扩展名", "请输入新扩展名"), + io.rename(sel.path, path.join(sel.dir, sel.file.title + "." + input.result)))) + + menu(separator="after" image=\uE290 title=title.select) + { + item(title="全选" image=icon.select_all cmd=command.select_all) + item(title="反选" image=icon.invert_selection cmd=command.invert_selection) + item(title="取消" image=icon.select_none cmd=command.select_none) + } + + item(type='file|dir|back.dir|drive' title='取得所有权' image=[\uE194,#f00] admin + cmd args='/K takeown /f "@sel.path" @if(sel.type==1,null,"/r /d y") && icacls "@sel.path" /grant *S-1-5-32-544:F @if(sel.type==1,"/c /l","/t /c /l /q")') + separator + menu(title="显示/隐藏" image=icon.show_hidden_files) + { + item(title="系统文件" image=inherit cmd='@command.togglehidden') + item(title="文件扩展名" image=icon.show_file_extensions cmd='@command.toggleext') + } + + menu(type='file|dir|back.dir' mode="single" title='属性' image=icon.properties) + { + $atrr = io.attributes(sel.path) + item(title='隐藏' checked=io.attribute.hidden(atrr) + cmd args='/c ATTRIB @if(io.attribute.hidden(atrr),"-","+")H "@sel.path"' window=hidden) + + item(title='系统文件' checked=io.attribute.system(atrr) + cmd args='/c ATTRIB @if(io.attribute.system(atrr),"-","+")S "@sel.path"' window=hidden) + + item(title='只读' checked=io.attribute.readonly(atrr) + cmd args='/c ATTRIB @if(io.attribute.readonly(atrr),"-","+")R "@sel.path"' window=hidden) + + item(title='存档' checked=io.attribute.archive(atrr) + cmd args='/c ATTRIB @if(io.attribute.archive(atrr),"-","+")A "@sel.path"' window=hidden) + separator + item(title="创建日期" keys=io.dt.created(sel.path, 'y/m/d') cmd=io.dt.created(sel.path,2000,1,1) vis=label) + item(title="修改日期" keys=io.dt.modified(sel.path, 'y/m/d') cmd=io.dt.modified(sel.path,2000,1,1) vis=label) + item(title="上次访问日期" keys=io.dt.accessed(sel.path, 'y/m/d') cmd=io.dt.accessed(sel.path,2000,1,1) vis=label) + } + + menu(mode="single" type='file' find='.dll|.ocx' separator="before" title='注册到系统' image=\uea86) + { + item(title='注册' admin cmd='regsvr32.exe' args='@sel.path.quote' invoke="multiple") + item(title='注销' admin cmd='regsvr32.exe' args='/u @sel.path.quote' invoke="multiple") + } + + menu(mode="single" type='back' expanded=true) + { + menu(separator="before" title='新建文件夹' image=icon.new_folder) + { + item(title='当前日期' cmd=io.dir.create(sys.datetime("ymdHMSs"))) + item(title='GUID' cmd=io.dir.create(str.guid)) + } + + menu(title='新建文件' image=icon.new_file) + { + $dt = sys.datetime("ymdHMSs") + item(title='TXT' cmd=io.file.create('@(dt).txt', 'Hello World!')) + item(title='XML' cmd=io.file.create('@(dt).xml', 'Hello World!')) + item(title='JSON' cmd=io.file.create('@(dt).json', '[]')) + item(title='HTML' cmd=io.file.create('@(dt).html', "\n\t\n\t\n\tHello World!\n\t\n")) + } + } + + item(where=!wnd.is_desktop title=title.folder_options image=icon.folder_options cmd=command.folder_options) } \ No newline at end of file diff --git a/config/zh/imports/goto.nss b/config/zh/imports/goto.nss index a99d428..0d3cf70 100644 --- a/config/zh/imports/goto.nss +++ b/config/zh/imports/goto.nss @@ -1,60 +1,61 @@ -menu(type='*' where=window.is_taskbar||sel.count mode=mode.multiple title=title.go_to sep=sep.both image=\uE14A) -{ - menu(title='文件目录' image=\uE1F4) - { - item(title='Windows' image=inherit cmd=sys.dir) - item(title='System' image=inherit cmd=sys.bin) - item(title='Program Files' image=inherit cmd=sys.prog) - item(title='Program Files x86' image=inherit cmd=sys.prog32) - item(title='ProgramData' image=inherit cmd=sys.programdata) - item(title='Applications' image=inherit cmd='shell:appsfolder') - item(title='Users' image=inherit cmd=sys.users) - separator - //item(title='@user.name@@@sys.name' vis=label) - item(title='桌面' image=inherit cmd=user.desktop) - item(title='下载' image=inherit cmd=user.downloads) - item(title='图片' image=inherit cmd=user.pictures) - item(title='我的文档' image=inherit cmd=user.documents) - item(title='开始菜单' image=inherit cmd=user.startmenu) - item(title='个人文件夹' image=inherit cmd=user.dir) - item(title='账户 AppData' image=inherit cmd=user.appdata) - item(title='账户 Temp' image=inherit cmd=user.temp) - } - item(title=title.control_panel image=\uE0F3 cmd='shell:::{5399E694-6CE5-4D6C-8FCE-1D8870FDCBA0}') - item(title='完全控制面板' image=\uE0F3 cmd='shell:::{ED7BA470-8E54-465E-825C-99712043E01C}') - item(title=title.run image=\uE14B cmd='shell:::{2559a1f3-21d7-11d4-bdaf-00c04f60b9f0}') - menu(where=sys.ver.major >= 10 title=title.settings sep=sep.before image=\uE0F3) - { - // https://docs.microsoft.com/en-us/windows/uwp/launch-resume/launch-settings-app - item(title='设置' image=inherit cmd='ms-settings:') - item(title='系统信息' image=inherit cmd='ms-settings:about') - item(title='账户信息' image=inherit cmd='ms-settings:yourinfo') - item(title='文件搜索' image=inherit cmd-line='/K systeminfo') - item(title='USB设置' image=inherit cmd='ms-settings:usb') - item(title='系统更新' image=inherit cmd='ms-settings:windowsupdate') - item(title='Microsoft Defender' image=inherit cmd='ms-settings:windowsdefender') - menu(title='所有软件' image=inherit) - { - item(title='应用程序功能' image=inherit cmd='ms-settings:appsfeatures') - item(title='默认应用程序' image=inherit cmd='ms-settings:defaultapps') - item(title='可选功能' image=inherit cmd='ms-settings:optionalfeatures') - item(title='开机启动' image=inherit cmd='ms-settings:startupapps') - } - menu(title='个性设置' image=inherit) - { - item(title='个性化' image=inherit cmd='ms-settings:personalization') - item(title='锁屏' image=inherit cmd='ms-settings:lockscreen') - item(title='壁纸' image=inherit cmd='ms-settings:personalization-background') - item(title='颜色' image=inherit cmd='ms-settings:colors') - item(title='主题' image=inherit cmd='ms-settings:themes') - item(title='开始菜单' image=inherit cmd='ms-settings:personalization-start') - item(title='任务栏' image=inherit cmd='ms-settings:taskbar') - } - menu(title='网络' image=inherit) - { - item(title='网络状态' image=inherit cmd='ms-settings:network-status') - item(title='以太网' image=inherit cmd='ms-settings:network-ethernet') - item(title='网络适配器' image=inherit cmd='shell:::{7007ACC7-3202-11D1-AAD2-00805FC1270E}') - } - } +menu(type='*' where=window.is_taskbar||sel.count mode=mode.multiple title=title.go_to sep=sep.both image=\uE14A) +{ + menu(title='文件夹' image=\uE1F4) + { + item(title='Windows' image=inherit cmd=sys.dir) + item(title='System32' image=inherit cmd=sys.bin) + item(title='Program Files' image=inherit cmd=sys.prog) + item(title='Program Files (x86)' image=inherit cmd=sys.prog32) + item(title='ProgramData' image=inherit cmd=sys.programdata) + item(title='Applications' image=inherit cmd='shell:appsfolder') + item(title='用户' image=inherit cmd=sys.users) + separator + //item(title='@user.name@@@sys.name' vis=label) + item(title='桌面' image=inherit cmd=user.desktop) + item(title='下载' image=inherit cmd=user.downloads) + item(title='图片' image=inherit cmd=user.pictures) + item(title='文档' image=inherit cmd=user.documents) + item(title='「开始」菜单' image=inherit cmd=user.startmenu) + item(title='主文件夹' image=inherit cmd=user.dir) + item(title='AppData' image=inherit cmd=user.appdata) + item(title='临时文件夹' image=inherit cmd=user.temp) + } + item(title=title.control_panel image=\uE0F3 cmd='shell:::{5399E694-6CE5-4D6C-8FCE-1D8870FDCBA0}') + item(title='所有任务' image=\uE0F3 cmd='shell:::{ED7BA470-8E54-465E-825C-99712043E01C}') + item(title=title.run image=\uE14B cmd='shell:::{2559a1f3-21d7-11d4-bdaf-00c04f60b9f0}') + menu(where=sys.ver.major >= 10 title=title.settings sep=sep.before image=\uE0F3) + { + // https://docs.microsoft.com/en-us/windows/uwp/launch-resume/launch-settings-app + item(title='主页' image=inherit cmd='ms-settings:') + item(title='系统信息' image=inherit cmd='ms-settings:about') + item(title='账户信息' image=inherit cmd='ms-settings:yourinfo') + item(title='详细系统信息' image=inherit cmd-line='/K systeminfo') + item(title='搜索' cmd='search-ms:' image=inherit) + item(title='USB' image=inherit cmd='ms-settings:usb') + item(title='Windows 更新' image=inherit cmd='ms-settings:windowsupdate') + item(title='Windows 安全中心' image=inherit cmd='ms-settings:windowsdefender') + menu(title='应用' image=inherit) + { + item(title='安装的应用' image=inherit cmd='ms-settings:appsfeatures') + item(title='默认应用' image=inherit cmd='ms-settings:defaultapps') + item(title='可选功能' image=inherit cmd='ms-settings:optionalfeatures') + item(title='启动' image=inherit cmd='ms-settings:startupapps') + } + menu(title='个性化' image=inherit) + { + item(title='个性化首页' image=inherit cmd='ms-settings:personalization') + item(title='锁屏界面' image=inherit cmd='ms-settings:lockscreen') + item(title='背景' image=inherit cmd='ms-settings:personalization-background') + item(title='颜色' image=inherit cmd='ms-settings:colors') + item(title='主题' image=inherit cmd='ms-settings:themes') + item(title='开始' image=inherit cmd='ms-settings:personalization-start') + item(title='任务栏' image=inherit cmd='ms-settings:taskbar') + } + menu(title='网络' image=inherit) + { + item(title='网络和 Internet' image=inherit cmd='ms-settings:network-status') + item(title='以太网' image=inherit cmd='ms-settings:network-ethernet') + item(title='网络连接' image=inherit cmd='shell:::{7007ACC7-3202-11D1-AAD2-00805FC1270E}') + } + } } \ No newline at end of file diff --git a/config/zh/imports/images.nss b/config/zh/imports/images.nss index 4e7d261..a48e37d 100644 --- a/config/zh/imports/images.nss +++ b/config/zh/imports/images.nss @@ -1,685 +1,682 @@ -var -{ - color3 = @if(theme.islight,image.color3,'none') - color_islight_WB = @if(theme.islight,'#fff','#000') - clipPath='' - svg_window_template2='' - svg_window_template='' -} - -copy,copy_to_clipboard=' - - - - -' - -cut=' - - - - - - @clipPath -' - -paste=' - - - - - -' - -paste_shortcut=' - - - - - -' - -move_to, move_here=' - - - - - -' - -copy_as_path, copy_path=' - - - - - -' - -settings, options, folder_options, taskbar_settings=' - - - - - @clipPath -' - -task_manager=' - - -' - -run_as_administrator=' - - - - - - @clipPath -' - -run_as_different_user=' - - - -' - -personalize=' - - - - - - - @clipPath -' - -display_settings=' - - - -' - -// pin -pin, pin_to_start, pin_to_taskbar, pin_to_quick_access, pin_current_folder_to_quick_access, pin_to_start_menu=' - - - -' - -// unpin -unpin, unpin_from_start, unpin_from_taskbar, unpin_from_quick_access, remove_from_quick_access, remove_from_recent, unpin_from_start_menu=' - - - - - - - - - @clipPath -' - -add_to_favorites=' - - -' - -remove_from_favorites=' - - - - - - - - @clipPath -' - -delete, permanently_delete, empty_recycle_bin=' - - - -' - -sort_by=' - - - - - - - @clipPath -' - -group_by=' - - -' - -view=' - - - - - - - - -' - -view2=' - - -' - -align_icons_to_grid=' - - - -' - -auto_arrange_icons=' - - -' - -close, cancel=' - -' - -expand=' - - - -' - -expand_all, expand_group, expand_all_groups=' - - - - - - - @clipPath -' - -collapse=' - - - -' - -collapse_all, collapse_group, collapse_all_groups=' - - - - - - - @clipPath -' - -format=' - - - - - - - - - - - -' - -eject=' - - - - - @clipPath -' - -content=' - - - - - - -' - -details=' - -' - -extra_large_icons=' - - -' - -large_icons=' - - -' - -list=' - -' - -medium_icons=' - - -' - -small_icons=' - - - - - - - - -' - -tiles=' - - - - -' -install=' - -' - -select_all, 'Выбрать все'=' - - - -' - -invert_selection=' - - - - -' - -select_none=' - - -' - -share, share_with=' - - - -' - -mount=' - - - - - - - - - @clipPath -' - -new, new_item=' - - - -' - -new_folder=' - - - - -' - -new_file=' - - -' - -open_folder,open_folder_location, open_file_location, open_as_portable=' - - -' - -open_new_window, open_in_new_window, open_in_new_process=' - - -' - -open_new_tab, open_in_new_tab=' - - - -' - -open_spot_light=' - - -' - -open_with=' - - - - - - - @clipPath -' - -run_with_powershell, open_windows_powershell, open_powershell_window_here,windows_powershell,windows_powershell_admin=' - - - -' - -properties=' - - - - - @clipPath -' - -restore=' - - - - @clipPath -' - -undo, undo_copy,undo_delete, undo_rename, undo_new, undo_move=' - - - - - @clipPath -' - -redo, redo_delete, redo_rename, redo_new, redo_move=' - - - - - @clipPath -' - -refresh=' - - -' - -rename=' - - - - -' - -rotate_left=' - - - -' - -rotate_right=' - - - -' - -set_as_desktop_wallpaper, set_as_desktop_background=' - - - - -' - -next_desktop_background=' - - - - - - -' - -desktop, show_desktop, show_desktop_icons,show_the_desktop=' - - - - - - - @clipPath -' - -restore_previous_versions=' - - -' - -create_shortcut, create_shortcuts_here=' - - - -' - -turn_on_bitlocker, turn_off_bitlocker=' - - - - - - - - @clipPath -' - -show_file_extensions=' - - - - -' - -show_hidden_files=' - - - -' - -compressed=' - - - -' - -more_options=' - - - -' - -burn_disc_image=' - - - - -' - -cleanup=' - - - - - - - - @clipPath -' - -move_to, move_here,move_to_folder, extract_all, extract_to=' - - - - - -' - -copy_to,copy_to_folder,copy_here=' - - - - -' - -pc,this_pc=' - - - - -' - -command_prompt,command_prompt_admin,open_command_prompt,open_command_window_here=' - @svg_window_template - -' - -manage=' - - -' - -edit=' - -' - -troubleshoot_compatibility=' - @svg_window_template2 - - -' - -customize_this_folder=' - -' - -give_access_to=' - - -' - -send_to=' - -' - -include_in_library=' - -' - -add_a_network_location=' - - - - - -' - -disconnect_network_drive=' - - - - - - - - - @clipPath -' - -map_network_drive=' - - - - - - -' - -make_available_offline=' - - - - - -' - -make_available_online=' - - -' - -file_explorer=' - - -' - -file_explorer_options=' - - -' - -print=' - -' - -device_manager=' - - -' - -disk_management=' - - -' - -filter=' - -' - -window =' - @svg_window_template -' - -code=' - - - -' - -reddit=' - -' - -cortana,show_cortana_button=' - - -' - -nvidia=' - - +$color3 = @if(theme.islight,image.color3,'none') +$color_islight_WB = @if(theme.islight,'#fff','#000') +$clipPath='' +$svg_window_template2='' +$svg_window_template='' + +@copy,copy_to_clipboard=' + + + + +' + +@cut=' + + + + + + @clipPath +' + +@paste=' + + + + + +' + +@paste_shortcut=' + + + + + +' + +@move_to, move_here=' + + + + + +' + +@copy_as_path, copy_path=' + + + + + +' + +@settings, options, folder_options, taskbar_settings=' + + + + + @clipPath +' + +@task_manager=' + + +' + +@run_as_administrator=' + + + + + + @clipPath +' + +@run_as_different_user, run_as_another_user=' + + + +' + +@personalize=' + + + + + + + @clipPath +' + +@display_settings=' + + + +' + +// pin +@pin, pin_to_start, pin_to_taskbar, pin_to_quick_access, pin_current_folder_to_quick_access, pin_to_start_menu=' + + + +' + +// unpin +@unpin, unpin_from_start, unpin_from_taskbar, unpin_from_quick_access, remove_from_quick_access, remove_from_recent, unpin_from_start_menu=' + + + + + + + + + @clipPath +' + +@add_to_favorites=' + + +' + +@remove_from_favorites=' + + + + + + + + @clipPath +' + +@delete, permanently_delete, empty_recycle_bin=' + + + +' + +@sort_by=' + + + + + + + @clipPath +' + +@group_by=' + + +' + +@view=' + + + + + + + + +' + +@view2=' + + +' + +@align_icons_to_grid=' + + + +' + +@auto_arrange_icons=' + + +' + +@close, cancel=' + +' + +@expand=' + + + +' + +@expand_all, expand_group, expand_all_groups=' + + + + + + + @clipPath +' + +@collapse=' + + + +' + +@collapse_all, collapse_group, collapse_all_groups=' + + + + + + + @clipPath +' + +@format=' + + + + + + + + + + + +' + +@eject=' + + + + + @clipPath +' + +@content=' + + + + + + +' + +@details=' + +' + +@extra_large_icons=' + + +' + +@large_icons=' + + +' + +@list=' + +' + +@medium_icons=' + + +' + +@small_icons=' + + + + + + + + +' + +@tiles=' + + + + +' +@install=' + +' + +@select_all, 'Выбрать все'=' + + + +' + +@invert_selection=' + + + + +' + +@select_none=' + + +' + +@share, share_with=' + + + +' + +@mount=' + + + + + + + + + @clipPath +' + +@new, new_item=' + + + +' + +@new_folder=' + + + + +' + +@new_file=' + + +' + +@open_folder,open_folder_location, open_file_location, open_as_portable=' + + +' + +@open_new_window, open_in_new_window, open_in_new_process=' + + +' + +@open_new_tab, open_in_new_tab=' + + + +' + +@open_spot_light=' + + +' + +@open_with=' + + + + + + + @clipPath +' + +@run_with_powershell, open_windows_powershell, open_powershell_window_here,windows_powershell,windows_powershell_admin=' + + + +' + +@properties=' + + + + + @clipPath +' + +@restore=' + + + + @clipPath +' + +@undo, undo_copy, undo_move, undo_delete, undo_rename, undo_new, undo_apply_properties=' + + + + + @clipPath +' + +@redo, redo_copy, redo_move, redo_delete, redo_rename, redo_new, redo_apply_properties=' + + + + + @clipPath +' + +@refresh=' + + +' + +@rename=' + + + + +' + +@rotate_left=' + + + +' + +@rotate_right=' + + + +' + +@set_as_desktop_wallpaper, set_as_desktop_background=' + + + + +' + +@next_desktop_background=' + + + + + + +' + +@desktop, show_desktop, show_desktop_icons,show_the_desktop=' + + + + + + + @clipPath +' + +@restore_previous_versions=' + + +' + +@create_shortcut, create_shortcuts_here=' + + + +' + +@turn_on_bitlocker, turn_off_bitlocker=' + + + + + + + + @clipPath +' + +@show_file_extensions=' + + + + +' + +@show_hidden_files=' + + + +' + +@compressed=' + + + +' + +@more_options=' + + + +' + +@burn_disc_image=' + + + + +' + +@cleanup=' + + + + + + + + @clipPath +' + +@move, move_to, move_here,move_to_folder, extract_all, extract_to=' + + + + + +' + +@copy_to,copy_to_folder,copy_here=' + + + + +' + +@pc,this_pc=' + + + + +' + +@command_prompt,command_prompt_admin,open_command_prompt,open_command_window_here=' + @svg_window_template + +' + +@manage=' + + +' + +@edit=' + +' + +@troubleshoot_compatibility=' + @svg_window_template2 + + +' + +@customize_this_folder=' + +' + +@give_access_to=' + + +' + +@send_to=' + +' + +@include_in_library=' + +' + +@add_a_network_location=' + + + + + +' + +@disconnect_network_drive=' + + + + + + + + + @clipPath +' + +@map_network_drive=' + + + + + + +' + +@make_available_offline=' + + + + + +' + +@make_available_online=' + + +' + +@file_explorer=' + + +' + +@file_explorer_options=' + + +' + +@print=' + +' + +@device_manager=' + + +' + +@disk_management=' + + +' + +@filter=' + +' + +@window =' + @svg_window_template +' + +@code=' + + + +' + +@reddit=' + +' + +@cortana,show_cortana_button=' + + +' + +@nvidia=' + + ' \ No newline at end of file diff --git a/config/zh/imports/modify.nss b/config/zh/imports/modify.nss new file mode 100644 index 0000000..a8976b5 --- /dev/null +++ b/config/zh/imports/modify.nss @@ -0,0 +1,34 @@ +// modify items +// Remove items by identifiers +modify(mode=mode.multiple + where=this.id(id.restore_previous_versions,id.cast_to_device) + vis=vis.remove) + +modify(type="recyclebin" where=window.is_desktop and this.id==id.empty_recycle_bin pos=1 sep) + +modify(find="unpin*" pos="bottom" menu="Pin/Unpin") +modify(find="pin*" pos="top" menu="Pin/Unpin") + +modify(where=this.id==id.copy_as_path menu="file manage") +modify(type="dir.back|drive.back" where=this.id==id.customize_this_folder pos=1 sep="top" menu="file manage") + +modify(where=str.equals(this.name, ["open in terminal", "open linux shell here"]) || this.id==id.open_powershell_window_here + pos="bottom" menu="Terminal") + +modify(mode=mode.multiple + where=this.id( + id.send_to, + id.share, + id.create_shortcut, + id.set_as_desktop_background, + id.rotate_left, + id.rotate_right, + id.map_network_drive, + id.disconnect_network_drive, + id.format, + id.eject, + id.give_access_to, + id.include_in_library, + id.print + ) + pos=1 menu=title.more_options) diff --git a/config/zh/imports/taskbar.nss b/config/zh/imports/taskbar.nss index 6034e5c..d83c77a 100644 --- a/config/zh/imports/taskbar.nss +++ b/config/zh/imports/taskbar.nss @@ -1,33 +1,33 @@ -menu(type="taskbar" vis=key.shift() pos=0 title=app.name image=\uE249) -{ - item(title="config" image=\uE10A cmd='"@app.cfg"') - item(title="manager" image=\uE0F3 admin cmd='"@app.exe"') - item(title="directory" image=\uE0E8 cmd='"@app.dir"') - item(title="version\t"+@app.ver vis=label col=1) - item(title="docs" image=\uE1C4 cmd='https://nilesoft.org/docs') - item(title="donate" image=\uE1A7 cmd='https://nilesoft.org/donate') -} -menu(where=@(this.count == 0 && isw11) type='taskbar' image=icon.settings expanded=true) -{ - menu(title="Apps" image=\uE254) - { - item(title='Paint' image=\uE116 cmd='mspaint') - item(title='Edge' image cmd='@sys.prog32\Microsoft\Edge\Application\msedge.exe') - item(title='Calculator' image=\ue1e7 cmd='calc.exe') - item(title=@str.res('regedit.exe,-16') image cmd='regedit.exe') - } - menu(title=title.windows image=\uE1FB) - { - item(title=title.cascade_windows cmd=command.cascade_windows) - item(title=title.Show_windows_stacked cmd=command.Show_windows_stacked) - item(title=title.Show_windows_side_by_side cmd=command.Show_windows_side_by_side) - sep - item(title=title.minimize_all_windows cmd=command.minimize_all_windows) - item(title=title.restore_all_windows cmd=command.restore_all_windows) - } - item(title=title.task_manager image=icon.task_manager cmd='taskmgr.exe') - item(title=title.taskbar_Settings sep=both image=inherit cmd='ms-settings:taskbar') - item(title=title.settings image=icon.settings(auto, @image.color1) cmd='ms-settings:') - item(title=title.desktop image=icon.desktop cmd=command.toggle_desktop) - item(vis=@key.shift() title=title.exit_explorer cmd=command.restart_explorer) +menu(type="taskbar" vis=key.shift() or key.lbutton() pos=0 title=app.name image=\uE249) +{ + item(title="设置" image=\uE10A cmd='"@app.cfg"') + item(title="管理器" image=\uE0F3 admin cmd='"@app.exe"') + item(title="文件夹" image=\uE0E8 cmd='"@app.dir"') + item(title="版本\t"+@app.ver vis=label col=1) + item(title="文档" image=\uE1C4 cmd='https://nilesoft.org/docs') + item(title="赞赏" image=\uE1A7 cmd='https://nilesoft.org/donate') +} +menu(where=@(this.count == 0) type='taskbar' image=icon.settings expanded=true) +{ + menu(title="快捷应用" image=\uE254) + { + item(title='画图' image=\uE116 cmd='mspaint') + item(title='Edge' image cmd='@sys.prog32\Microsoft\Edge\Application\msedge.exe') + item(title='计算器' image=\ue1e7 cmd='calc.exe') + item(title=str.res('regedit.exe,-16') image cmd='regedit.exe') + } + menu(title=title.windows image=\uE1FB) + { + item(title=title.cascade_windows cmd=command.cascade_windows) + item(title=title.Show_windows_stacked cmd=command.Show_windows_stacked) + item(title=title.Show_windows_side_by_side cmd=command.Show_windows_side_by_side) + sep + item(title=title.minimize_all_windows cmd=command.minimize_all_windows) + item(title=title.restore_all_windows cmd=command.restore_all_windows) + } + item(title=title.desktop image=icon.desktop cmd=command.toggle_desktop) + item(title=title.settings image=icon.settings(auto, image.color1) cmd='ms-settings:') + item(title=title.task_manager sep=both image=icon.task_manager cmd='taskmgr.exe') + item(title=title.taskbar_Settings sep=both image=inherit cmd='ms-settings:taskbar') + item(vis=key.shift() title=title.exit_explorer cmd=command.restart_explorer) } \ No newline at end of file diff --git a/config/zh/imports/terminal.nss b/config/zh/imports/terminal.nss index 7f7a99b..b7c2623 100644 --- a/config/zh/imports/terminal.nss +++ b/config/zh/imports/terminal.nss @@ -1,7 +1,9 @@ -menu(type='*' where=(sel.count or wnd.is_taskbar or wnd.is_edit) title='终端' sep='top' image=icon.run_with_powershell) -{ - var{tip_run_admin=["\xE1A7 Pressione SHIFT para executar " + this.title + " como administrador", tip.warning, 1.0]} - item(title=title.command_prompt tip=tip_run_admin admin=key.shift() image cmd='cmd.exe' args='/K TITLE Prompt de Comando &ver& PUSHD "@sel.dir"') - item(title='Windows 终端' admin=@key.shift() tip=tip_run_admin image cmd='powershell.exe' args="-noexit -command Set-Location -Path '" + @sel.dir + "\\.'") - +menu(type='*' where=(sel.count or wnd.is_taskbar or wnd.is_edit) title=title.terminal sep='top' image=icon.run_with_powershell) +{ + $tip_run_admin=["\xE1A7 Press SHIFT key to run " + this.title + " as administrator", tip.warning, 1.0] + $has_admin=key.shift() or key.rbutton() + + item(title=title.command_prompt tip=tip_run_admin admin=has_admin image cmd='cmd.exe' args='/K TITLE Command Prompt &ver& PUSHD "@sel.dir"') + item(title=title.windows_powershell admin=has_admin tip=tip_run_admin image cmd='powershell.exe' args='-noexit -command Set-Location -Path "@sel.dir\."') + item(where=package.exists("WindowsTerminal") title=title.Windows_Terminal tip=tip_run_admin admin=has_admin image='@package.path("WindowsTerminal")\WindowsTerminal.exe' cmd='wt.exe' arg='-d "@sel.path\."') } \ No newline at end of file diff --git a/config/zh/imports/theme.nss b/config/zh/imports/theme.nss new file mode 100644 index 0000000..acb675b --- /dev/null +++ b/config/zh/imports/theme.nss @@ -0,0 +1,12 @@ +theme +{ + name="modern" + dark=auto + background + { + color=auto + opacity=auto + effect=auto + } + image.align=2 +} \ No newline at end of file diff --git a/config/zh/shell.nss b/config/zh/shell.nss index 702627c..d7ec077 100644 --- a/config/zh/shell.nss +++ b/config/zh/shell.nss @@ -1,54 +1,28 @@ -shell -{ - var - { - isw11=sys.is11 - } - - set - { - theme - { - name="modern" - background - { - //opacity=90 - //effect=1 - } - image.align = 2// 0 = checked, 1 = image, 2 = both - } - - tip - { - enabled=1 - opacity=100 - width=400 - radius=1 - time=1.25 - padding=[10,10] - } - - exclude.where = !process.is_explorer - showdelay=200 - } - - images import 'imports/images.nss' - - static - { - import 'imports/static.nss' - item(where=this.title.length > 25 menu=title.more_options) - } - - dynamic - { - menu(mode="multiple" title="Pin/Unpin" image=icon.pin) { } - menu(mode="multiple" title=title.more_options image=icon.more_options) { } - - import 'imports/terminal.nss' - import 'imports/file-manage.nss' - import 'imports/develop.nss' - import 'imports/goto.nss' - import 'imports/taskbar.nss' - } -} \ No newline at end of file +settings +{ + priority=1 + exclude.where = !process.is_explorer + showdelay = 200 + // Options to allow modification of system items + modify.remove.duplicate=1 + tip.enabled=true +} + +import 'imports/theme.nss' +import 'imports/images.nss' + +import 'imports/modify.nss' + +menu(mode="multiple" title="Pin/Unpin" image=icon.pin) +{ +} + +menu(mode="multiple" title=title.more_options image=icon.more_options) +{ +} + +import 'imports/terminal.nss' +import 'imports/file-manage.nss' +import 'imports/develop.nss' +import 'imports/goto.nss' +import 'imports/taskbar.nss'