Add loc function

This commit is contained in:
Mahmoud Gomaa committed 2024-12-03 17:19:20 +02:00
1 parent 7b10f471c5
commit ed826e1780
82 files changed
+1916 -4427

No files matched your search

+1 -1
View File
@@ -1,4 +1,4 @@
name: Build artifacts from main branch with MSBuild
name: MSBuild
on:
push:
+2 -11
View File
@@ -1,8 +1,7 @@
[![Ceasefire Now](https://badge.techforpalestine.org/default)](https://techforpalestine.org/learn-more)
[![Build artifacts from main branch with MSBuild](../../actions/workflows/msbuild.yml/badge.svg)](../../actions/workflows/msbuild.yml)
[![Latest nightly build](https://img.shields.io/badge/download%20latest%20nightly%20build-nightly.link-purple)](https://nightly.link/moudey/Shell/workflows/msbuild/main)
[![Build](../../actions/workflows/msbuild.yml/badge.svg)](../../actions/workflows/msbuild.yml)
[![Nightly](https://img.shields.io/badge/download%20latest%20nightly%20build-nightly.link-purple)](https://nightly.link/moudey/Shell/workflows/msbuild/main)
# [Shell](https://nilesoft.org)
Powerful manager for Windows File Explorer context menu.
@@ -13,16 +12,12 @@ Powerful manager for Windows File Explorer context menu.
<br>
</p>
This repository is used to [report issues](https://nilesoft.org/forum/issues).<br>
You're also welcome to join [the Nilesoft forum](https://nilesoft.org/forum) for a discussion.
## Details
<p>
Shell is a context menu extender that lets you handpick the items to integrate into the Windows File Explorer context menu, create custom commands to access all your favorite web pages, files, and folders, and launch any application directly from the context menu.<br>
It also provides you a convenient solution to modify or remove any context menu item added by the system or third-party software.
</p>
Features
------------------
* Lightweight, portable, and relatively easy to use.
@@ -55,7 +50,6 @@ Download
Download the latest version:
https://nilesoft.org/download
Screenshots
------------------
<p align="center">
@@ -76,6 +70,3 @@ If you really love Shell and would like to see it continue to improve.
[![Paypal](https://img.shields.io/badge/Donate-PayPal-blue.svg)](https://www.paypal.me/nilesoft)
[![BuyMeACoffee](https://img.shields.io/badge/Donate-BuyMeACoffee-yellow.svg)](https://www.buymeacoffee.com/moudey)
Sponsors
------------------
[RubicBG](https://github.com/RubicBG), [hiranokite](https://github.com/hiranokite), [SteffanDonal](https://github.com/SteffanDonal), Ousseynou SANKHARE
-36
View File
@@ -1,36 +0,0 @@
menu(mode="multiple" title='&Entwickler' vis=key.shift() sep=sep.bottom image=\uE26E)
{
menu(mode="single" title='Editoren' 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='dotnet' image=\uE143)
{
item(title='Ausführen' cmd-line='/K dotnet run' image=\uE149)
item(title='Dateiüberwachung' cmd-line='/K dotnet watch')
item(title='Bereinigen' image=\uE0CE cmd-line='/K dotnet clean')
separator
item(title='Debug erstellen' cmd-line='/K dotnet build')
item(title='Release erstellen' cmd-line='/K dotnet build -c release /p:DebugType=None')
menu(mode="multiple" sep="both" title='Veröffentlichen' image=\ue11f)
{
$publish='dotnet publish -r win-x64 -c release --output publish /*/p:CopyOutputSymbolsToPublishDirectory=false*/'
item(title='Einzelne Datei veröffentlichen' sep="after" cmd-line='/K @publish --no-self-contained /p:PublishSingleFile=true')
item(title='Veröffentlichen' cmd-line='/K @publish')
item(title='Veröffentlichen ohne .NET-Runtime' cmd-line='/K @publish --self-contained false')
item(title='Veröffentlichen mit .NET-Runtime' cmd-line='/K @publish --self-contained true')
item(title='Einzelne Datei' cmd-line='/K @publish /p:PublishSingleFile=true /p:PublishTrimmed=false')
item(title='Einzelne Datei kürzen' 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='Hilfe' image=\uE136 cmd-line='/k dotnet -h')
item(title='Version' cmd-line='/k dotnet --info')
}
}
-80
View File
@@ -1,80 +0,0 @@
menu(where=sel.count>0 type='file|dir|drive|namespace|back' mode="multiple" title='Datei bearbeiten' image=\uE253)
{
menu(separator="after" title=title.copy_path image=icon.copy_path)
{
item(where=sel.count > 1 title='Ausgewählte (@sel.count) Elemente kopieren' 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='Dateipfad öffnen')
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="Erweiterung bearbeiten" image=\uE0B5 cmd=if(input("Erweiterung bearbeiten", "Erweiterung eingeben"),
io.rename(sel.path, path.join(sel.dir, sel.file.title + "." + input.result))))
menu(separator="after" image=\uE290 title=title.select)
{
item(title="Alle" image=icon.select_all cmd=command.select_all)
item(title="Invertieren" image=icon.invert_selection cmd=command.invert_selection)
item(title="Keine" image=icon.select_none cmd=command.select_none)
}
item(type='file|dir|back.dir|drive' title='Eigentümer werden' 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="Anzeigen" image=icon.show_hidden_files)
{
item(title="Systemdateien" image=inherit cmd='@command.togglehidden')
item(title="Dateinamenerweiterung" image=icon.show_file_extensions cmd='@command.toggleext')
}
menu(type='file|dir|back.dir' mode="single" title='Eigenschaften' image=icon.properties)
{
$atrr = io.attributes(sel.path)
item(title='Unsichtbar' checked=io.attribute.hidden(atrr)
cmd args='/c ATTRIB @if(io.attribute.hidden(atrr),"-","+")H "@sel.path"' window=hidden)
item(title='System' checked=io.attribute.system(atrr)
cmd args='/c ATTRIB @if(io.attribute.system(atrr),"-","+")S "@sel.path"' window=hidden)
item(title='Schreibgeschützt' checked=io.attribute.readonly(atrr)
cmd args='/c ATTRIB @if(io.attribute.readonly(atrr),"-","+")R "@sel.path"' window=hidden)
item(title='Archiv' checked=io.attribute.archive(atrr)
cmd args='/c ATTRIB @if(io.attribute.archive(atrr),"-","+")A "@sel.path"' window=hidden)
separator
item(title="Erstellt" keys=io.dt.created(sel.path, 'y/m/d') cmd=io.dt.created(sel.path,2000,1,1) vis=label)
item(title="Geändert" keys=io.dt.modified(sel.path, 'y/m/d') cmd=io.dt.modified(sel.path,2000,1,1) vis=label)
item(title="Zugriff" 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='Registrierung' image=\uea86)
{
item(title='Registrieren' admin cmd='regsvr32.exe' args='@sel.path.quote' invoke="multiple")
item(title='Deregistrieren' admin cmd='regsvr32.exe' args='/u @sel.path.quote' invoke="multiple")
}
menu(mode="single" type='back' expanded=true)
{
menu(separator="before" title='Neuer Ordner' image=icon.new_folder)
{
item(title='Datum' cmd=io.dir.create(sys.datetime("ymdHMSs")))
item(title='Guid' cmd=io.dir.create(str.guid))
}
menu(title='Neue Datei' 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', '<root>Hello World!</root>'))
item(title='JSON' cmd=io.file.create('@(dt).json', '[]'))
item(title='HTML' cmd=io.file.create('@(dt).html', "<html>\n\t<head>\n\t</head>\n\t<body>Hello World!\n\t</body>\n</html>"))
}
}
item(where=!wnd.is_desktop title=title.folder_options image=icon.folder_options cmd=command.folder_options)
}
-61
View File
@@ -1,61 +0,0 @@
menu(type='*' where=window.is_taskbar||sel.count mode=mode.multiple title=title.go_to sep=sep.both image=\uE14A)
{
menu(title='Ordner' image=\uE1F4)
{
item(title='Windows' image=inherit cmd=sys.dir)
item(title='System' image=inherit cmd=sys.bin)
item(title='Programme' image=inherit cmd=sys.prog)
item(title='Programme x86' image=inherit cmd=sys.prog32)
item(title='ProgramData' image=inherit cmd=sys.programdata)
item(title='Applikationen' image=inherit cmd='shell:appsfolder')
item(title='Benutzer' image=inherit cmd=sys.users)
separator
//item(title='@user.name@@@sys.name' vis=label)
item(title='Desktop' image=inherit cmd=user.desktop)
item(title='Downloads' image=inherit cmd=user.downloads)
item(title='Bilder' image=inherit cmd=user.pictures)
item(title='Dokumente' image=inherit cmd=user.documents)
item(title='Startmenu' image=inherit cmd=user.startmenu)
item(title='Profile' 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='Alle Systemsteuerungen' 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='System' image=inherit cmd='ms-settings:')
item(title='Über' image=inherit cmd='ms-settings:about')
item(title='Ihre Infos' image=inherit cmd='ms-settings:yourinfo')
item(title='Systeminformationen' image=inherit cmd-line='/K systeminfo')
item(title='Suche' cmd='search-ms:' image=inherit)
item(title='USB' image=inherit cmd='ms-settings:usb')
item(title='Windows Updates' image=inherit cmd='ms-settings:windowsupdate')
item(title='Windows Sicherheit' image=inherit cmd='ms-settings:windowsdefender')
menu(title='Apps' image=inherit)
{
item(title='Installierete Apps' image=inherit cmd='ms-settings:appsfeatures')
item(title='Standard-Apps' image=inherit cmd='ms-settings:defaultapps')
item(title='Optionale Features' image=inherit cmd='ms-settings:optionalfeatures')
item(title='Autostart' image=inherit cmd='ms-settings:startupapps')
}
menu(title='Personalisierung' image=inherit)
{
item(title='Personalisierung' image=inherit cmd='ms-settings:personalization')
item(title='Sperrbildschirm' image=inherit cmd='ms-settings:lockscreen')
item(title='Hintergrund' image=inherit cmd='ms-settings:personalization-background')
item(title='Farben' image=inherit cmd='ms-settings:colors')
item(title='Designs' image=inherit cmd='ms-settings:themes')
item(title='Start' image=inherit cmd='ms-settings:personalization-start')
item(title='Taskleiste' image=inherit cmd='ms-settings:taskbar')
}
menu(title='Netzwerk' image=inherit)
{
item(title='Status' image=inherit cmd='ms-settings:network-status')
item(title='Ethernet' image=inherit cmd='ms-settings:network-ethernet')
item(title='Verbindungen' image=inherit cmd='shell:::{7007ACC7-3202-11D1-AAD2-00805FC1270E}')
}
}
}
File diff suppressed because it is too large. Load diff
-33
View File
@@ -1,33 +0,0 @@
menu(type="taskbar" vis=key.shift() or key.lbutton() pos=0 title=app.name image=\uE249)
{
item(title="Konfiguration" image=\uE10A cmd='"@app.cfg"')
item(title="Manager" image=\uE0F3 admin cmd='"@app.exe"')
item(title="Ordner" 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="Spenden" image=\uE1A7 cmd='https://nilesoft.org/donate')
}
menu(where=@(this.count == 0) 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='Rechner' 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)
}
-9
View File
@@ -1,9 +0,0 @@
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 Halte SHIFT um " + this.title + " als Administrator auszuführen", 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\."')
}
-28
View File
@@ -1,28 +0,0 @@
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'
-34
View File
@@ -1,34 +0,0 @@
// 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)
-9
View File
@@ -1,9 +0,0 @@
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\."')
}
-12
View File
@@ -1,12 +0,0 @@
theme
{
name="modern"
dark=auto
background
{
color=auto
opacity=auto
effect=auto
}
image.align=2
}
-36
View File
@@ -1,36 +0,0 @@
menu(mode="multiple" title='개발(&D)' 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 메모장' 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=sep.both title='publish' image=\ue11f)
{
$publish='dotnet publish -r win-x64 -c release --output publish /*/p:CopyOutputSymbolsToPublishDirectory=false*/'
item(title='단일 파일 게시' sep=sep.bottom 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 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='도움말' image=\uE136 cmd-line='/k dotnet -h')
item(title='버전' cmd-line='/k dotnet --info')
}
}
-80
View File
@@ -1,80 +0,0 @@
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("Change extension", "Type extension"),
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='속성')
{
$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))
item(title="수정 날짜" keys=io.dt.modified(sel.path, 'y/m/d') cmd=io.dt.modified(sel.path,2000,1,1))
item(title="접근 날짜" keys=io.dt.accessed(sel.path, 'y/m/d') cmd=io.dt.accessed(sel.path,2000,1,1))
}
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', '<root>Hello World!</root>'))
item(title='JSON' cmd=io.file.create('@(dt).json', '[]'))
item(title='HTML' cmd=io.file.create('@(dt).html', "<html>\n\t<head>\n\t</head>\n\t<body>Hello World!\n\t</body>\n</html>"))
}
}
item(where=!wnd.is_desktop title=title.folder_options image=icon.folder_options cmd=command.folder_options)
}
-61
View File
@@ -1,61 +0,0 @@
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='검색' 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-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:startup')
}
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}')
}
}
}
File diff suppressed because it is too large. Load diff
-34
View File
@@ -1,34 +0,0 @@
// 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="고정/고정 해제")
modify(find="pin*" pos="top" menu="고정/고정 해제")
modify(where=this.id==id.copy_as_path menu="파일 관리")
modify(type="dir.back|drive.back" where=this.id==id.customize_this_folder pos=1 sep="top" menu="파일 관리")
modify(where=str.equals(this.name, ["터미널에서 열기", "여기서 리눅스 셸 열기"]) || this.id==id.open_powershell_window_here
pos="bottom" menu="터미널")
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)
-25
View File
@@ -1,25 +0,0 @@
shell
{
// static items
// Delete items by identifiers
item(mode=mode.multiple
where=this.id(id.restore_previous_versions,id.cast_to_device)
vis=vis.remove)
item(type='recyclebin' where=window.is_desktop and this.id==id.empty_recycle_bin pos=1 sep)
item(type='back' find=['shortcut', '/new'] vis=vis.remove)
item(find='unpin' pos=pos.bottom menu="Pin//Unpin")
item(find='pin' pos=pos.top menu="Pin//Unpin")
item(where=this.id==id.copy_as_path menu='file manage')
item(type='dir.back|drive.back' where=this.id==id.customize_this_folder pos=1 sep='top' menu='file manage')
item(find='open in terminal*' pos=pos.bottom sep menu='Terminal')
item(find='open with visual studio' pos=1 menu='develop/editors')
//Move and organize
//item(mode=mode.multiple find='scan with' menu=title.more_options)
item(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)
}
-33
View File
@@ -1,33 +0,0 @@
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)
}
-12
View File
@@ -1,12 +0,0 @@
theme
{
name="modern"
dark=auto
background
{
color=auto
opacity=auto
effect=auto
}
image.align=2
}
-28
View File
@@ -1,28 +0,0 @@
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'
-36
View File
@@ -1,36 +0,0 @@
menu(mode="multiple" title='&Desenvolvedor' vis=key.shift() sep=sep.bottom image=\uE26E)
{
menu(mode="single" title='Editores' image=\uE17A)
{
item(title='Visual Studio Code' image=[\uE272, #22A7F2] cmd='code' args='"@sel.path"')
separator
item(type='file' mode="single" title='Bloco de Notas' image cmd='@sys.bin\notepad.exe' args='"@sel.path"')
}
menu(mode="multiple" title='.Net' image=\uE143)
{
item(title='Executar' cmd-line='/K dotnet run' image=\uE149)
item(title='Visualizar' cmd-line='/K dotnet watch')
item(title='Limpar' image=\uE0CE cmd-line='/K dotnet clean')
separator
item(title='Depuração da compilação' cmd-line='/K dotnet build')
item(title='Versão da compilação' cmd-line='/K dotnet build -c release /p:DebugType=None')
menu(mode="multiple" sep="both" title='Publicar' image=\ue11f)
{
$publish='dotnet publish -r win-x64 -c release --output publish /*/p:CopyOutputSymbolsToPublishDirectory=false*/'
item(title='Publicar arquivo único' sep="after" cmd-line='/K @publish --no-self-contained /p:PublishSingleFile=true')
item(title='Implantação dependente da estrutura' cmd-line='/K @publish')
item(title='Executável dependente da estrutura' cmd-line='/K @publish --self-contained false')
item(title='Implantação independente' cmd-line='/K @publish --self-contained true')
item(title='Arquivo único' cmd-line='/K @publish /p:PublishSingleFile=true /p:PublishTrimmed=false')
item(title='Aparado em arquivo único' cmd-line='/K @publish /p:PublishSingleFile=true /p:PublishTrimmed=true')
}
item(title='Migrações .Net EF adicionam InitialCreate' cmd-line='/K dotnet ef migrations add InitialCreate')
item(title='Atualização do banco de dados .Net EF' cmd-line='/K dotnet ef database update')
separator
item(title='Ajuda .Net' image=\uE136 cmd-line='/k dotnet -h')
item(title='Versão .Net' cmd-line='/k dotnet --info')
}
}
-80
View File
@@ -1,80 +0,0 @@
menu(where=sel.count>0 type='file|dir|drive|namespace|back' mode="multiple" title='Explorador de Arquivos' image=\uE253)
{
menu(separator="after" title=title.copy_path image=icon.copy_path)
{
item(where=sel.count > 1 title='Copiar (@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='Abrir local do arquivo')
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="Alterar extensão" image=\uE0B5 cmd=if(input("Alterar extensão", "Tipo de extensão"),
io.rename(sel.path, path.join(sel.dir, sel.file.title + "." + input.result))))
menu(separator="after" image=\uE290 title=title.select)
{
item(title="Todos" image=icon.select_all cmd=command.select_all)
item(title="Invertido" image=icon.invert_selection cmd=command.invert_selection)
item(title="Nenhum" image=icon.select_none cmd=command.select_none)
}
item(type='file|dir|back.dir|drive' title='Tornar-se proprietário' 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="Mostrar/Ocultar" image=icon.show_hidden_files)
{
item(title="Arquivos de sistema" image=inherit cmd='@command.togglehidden')
item(title="Extensões de arquivos" image=icon.show_file_extensions cmd='@command.toggleext')
}
menu(type='file|dir|back.dir' mode="single" title='Atributos' image=icon.properties)
{
$atrr = io.attributes(sel.path)
item(title='Oculto' checked=io.attribute.hidden(atrr)
cmd args='/c ATTRIB @if(io.attribute.hidden(atrr),"-","+")H "@sel.path"' window=hidden)
item(title='Sistema' checked=io.attribute.system(atrr)
cmd args='/c ATTRIB @if(io.attribute.system(atrr),"-","+")S "@sel.path"' window=hidden)
item(title='Somente leitura' checked=io.attribute.readonly(atrr)
cmd args='/c ATTRIB @if(io.attribute.readonly(atrr),"-","+")R "@sel.path"' window=hidden)
item(title='Arquivar' checked=io.attribute.archive(atrr)
cmd args='/c ATTRIB @if(io.attribute.archive(atrr),"-","+")A "@sel.path"' window=hidden)
separator
item(title="Criado" keys=io.dt.created(sel.path, 'y/m/d') cmd=io.dt.created(sel.path,2000,1,1) vis=label)
item(title="Modificado" keys=io.dt.modified(sel.path, 'y/m/d') cmd=io.dt.modified(sel.path,2000,1,1) vis=label)
item(title="Acessado" 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='Servidor de Registro' image=\uea86)
{
item(title='Registrar' admin cmd='regsvr32.exe' args='@sel.path.quote' invoke="multiple")
item(title='Remover Registro' admin cmd='regsvr32.exe' args='/u @sel.path.quote' invoke="multiple")
}
menu(mode="single" type='back' expanded=true)
{
menu(separator="before" title='Nova Pasta' image=icon.new_folder)
{
item(title='Data Hora' cmd=io.dir.create(sys.datetime("dmyHMSs")))
item(title='Guid' cmd=io.dir.create(str.guid))
}
menu(title='Novo Arquivo' image=icon.new_file)
{
$dt = sys.datetime("ymdHMSs")
item(title='TXT' cmd=io.file.create('@(dt).txt', 'Olá Mundo!'))
item(title='XML' cmd=io.file.create('@(dt).xml', '<root>Olá Mundo!</root>'))
item(title='JSON' cmd=io.file.create('@(dt).json', '[]'))
item(title='HTML' cmd=io.file.create('@(dt).html', "<html>\n\t<head>\n\t</head>\n\t<body>Olá Mundo!\n\t</body>\n</html>"))
}
}
item(where=!wnd.is_desktop title=title.folder_options image=icon.folder_options cmd=command.folder_options)
}
-61
View File
@@ -1,61 +0,0 @@
menu(type='*' where=window.is_taskbar||sel.count mode=mode.multiple title=title.go_to sep=sep.both image=\uE14A)
{
menu(title='Pasta' image=\uE1F4)
{
item(title='Windows' image=inherit cmd=sys.dir)
item(title='System32' image=inherit cmd=sys.bin)
item(title='Arquivos de Programas' image=inherit cmd=sys.prog)
item(title='Arquivos de Programas x86' image=inherit cmd=sys.prog32)
item(title='ProgramData' image=inherit cmd=sys.programdata)
item(title='Aplicativos' image=inherit cmd='shell:appsfolder')
item(title='Usuários' image=inherit cmd=sys.users)
separator
//item(title='@user.name@@@sys.name' vis=label)
item(title='Área de Trabalho' image=inherit cmd=user.desktop)
item(title='Downloads' image=inherit cmd=user.downloads)
item(title='Imagens' image=inherit cmd=user.pictures)
item(title='Documentos' image=inherit cmd=user.documents)
item(title='Menu Iniciar' image=inherit cmd=user.startmenu)
item(title='Perfil' 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='Todas as Tarefas' 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='Sistema' image=inherit cmd='ms-settings:')
item(title='Sobre' image=inherit cmd='ms-settings:about')
item(title='Suas informações' image=inherit cmd='ms-settings:yourinfo')
item(title='Informações do sistema' image=inherit cmd-line='/K systeminfo')
item(title='Pesquisa' cmd='search-ms:' image=inherit)
item(title='USB' image=inherit cmd='ms-settings:usb')
item(title='Windows Update' image=inherit cmd='ms-settings:windowsupdate')
item(title='Segurança do Windows' image=inherit cmd='ms-settings:windowsdefender')
menu(title='Aplicativos' image=inherit)
{
item(title='Aplicativos instalados' image=inherit cmd='ms-settings:appsfeatures')
item(title='Aplicativos padrão' image=inherit cmd='ms-settings:defaultapps')
item(title='Recursos opcionais' image=inherit cmd='ms-settings:optionalfeatures')
item(title='Inicialização' image=inherit cmd='ms-settings:startupapps')
}
menu(title='Personalização' image=inherit)
{
item(title='Personalização' image=inherit cmd='ms-settings:personalization')
item(title='Tela de bloqueio' image=inherit cmd='ms-settings:lockscreen')
item(title='Tela de fundo' image=inherit cmd='ms-settings:personalization-background')
item(title='Cores' image=inherit cmd='ms-settings:colors')
item(title='Temas' image=inherit cmd='ms-settings:themes')
item(title='Iniciar' image=inherit cmd='ms-settings:personalization-start')
item(title='Barra de Tarefas' image=inherit cmd='ms-settings:taskbar')
}
menu(title='Rede e Internet' image=inherit)
{
item(title='Status' image=inherit cmd='ms-settings:network-status')
item(title='Ethernet' image=inherit cmd='ms-settings:network-ethernet')
item(title='Conexões de Rede' image=inherit cmd='shell:::{7007ACC7-3202-11D1-AAD2-00805FC1270E}')
}
}
}
File diff suppressed because it is too large. Load diff
-34
View File
@@ -1,34 +0,0 @@
// 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)
-33
View File
@@ -1,33 +0,0 @@
menu(type="taskbar" vis=key.shift() or key.lbutton() 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) 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.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)
}
-9
View File
@@ -1,9 +0,0 @@
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 Pressione SHIFT para executar " + this.title + " como administrador", 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 Prompt de Comando &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\."')
}
-12
View File
@@ -1,12 +0,0 @@
theme
{
name="modern"
dark=auto
background
{
color=auto
opacity=auto
effect=auto
}
image.align=2
}
-28
View File
@@ -1,28 +0,0 @@
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="Fixar/Desafixar" 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'
-36
View File
@@ -1,36 +0,0 @@
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')
}
}
-80
View File
@@ -1,80 +0,0 @@
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', '<root>Hello World!</root>'))
item(title='JSON' cmd=io.file.create('@(dt).json', '[]'))
item(title='HTML' cmd=io.file.create('@(dt).html', "<html>\n\t<head>\n\t</head>\n\t<body>Hello World!\n\t</body>\n</html>"))
}
}
item(where=!wnd.is_desktop title=title.folder_options image=icon.folder_options cmd=command.folder_options)
}
-61
View File
@@ -1,61 +0,0 @@
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}')
}
}
}
File diff suppressed because it is too large. Load diff
-34
View File
@@ -1,34 +0,0 @@
// 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)
-25
View File
@@ -1,25 +0,0 @@
shell
{
// static items
// Delete items by identifiers
item(mode=mode.multiple
where=this.id(id.restore_previous_versions,id.cast_to_device)
vis=vis.remove)
item(type='recyclebin' where=window.is_desktop and this.id==id.empty_recycle_bin pos=1 sep)
item(type='back' find=['shortcut', '/new'] vis=vis.remove)
item(find='unpin' pos=pos.bottom menu="Pin//Unpin")
item(find='pin' pos=pos.top menu="Pin//Unpin")
item(where=this.id==id.copy_as_path menu='file manage')
item(type='dir.back|drive.back' where=this.id==id.customize_this_folder pos=1 sep='top' menu='file manage')
item(find='open in terminal*' pos=pos.bottom sep menu='Terminal')
item(find='open with visual studio' pos=1 menu='develop/editors')
//Move and organize
//item(mode=mode.multiple find='scan with' menu=title.more_options)
item(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)
}
-33
View File
@@ -1,33 +0,0 @@
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)
}
-9
View File
@@ -1,9 +0,0 @@
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\."')
}
-12
View File
@@ -1,12 +0,0 @@
theme
{
name="modern"
dark=auto
background
{
color=auto
opacity=auto
effect=auto
}
image.align=2
}
-28
View File
@@ -1,28 +0,0 @@
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'
+8 -15
View File
@@ -9,40 +9,33 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "dll", "dll\Shell.vcxproj",
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "exe", "exe\exe.vcxproj", "{FFFD0DDB-48FB-4681-A3B6-8E787FA98C98}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "setup-ca", "setup\ca\ca.vcxproj", "{F72D34CA-48DA-4DFD-91A9-A0C78BEF6981}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
debug|ARM64 = debug|ARM64
debug|x64 = debug|x64
debug|x86 = debug|x86
release|ARM64 = release|ARM64
release|x64 = release|x64
release|x86 = release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{BAF011AC-D5E9-42C5-BA26-BA6115A45DAC}.debug|ARM64.ActiveCfg = debug|ARM64
{BAF011AC-D5E9-42C5-BA26-BA6115A45DAC}.debug|ARM64.Build.0 = debug|ARM64
{BAF011AC-D5E9-42C5-BA26-BA6115A45DAC}.debug|x64.ActiveCfg = debug|x64
{BAF011AC-D5E9-42C5-BA26-BA6115A45DAC}.debug|x64.Build.0 = debug|x64
{BAF011AC-D5E9-42C5-BA26-BA6115A45DAC}.debug|x86.ActiveCfg = debug|Win32
{BAF011AC-D5E9-42C5-BA26-BA6115A45DAC}.debug|x86.Build.0 = debug|Win32
{BAF011AC-D5E9-42C5-BA26-BA6115A45DAC}.release|ARM64.ActiveCfg = release|ARM64
{BAF011AC-D5E9-42C5-BA26-BA6115A45DAC}.release|ARM64.Build.0 = release|ARM64
{BAF011AC-D5E9-42C5-BA26-BA6115A45DAC}.release|x64.ActiveCfg = release|x64
{BAF011AC-D5E9-42C5-BA26-BA6115A45DAC}.release|x64.Build.0 = release|x64
{BAF011AC-D5E9-42C5-BA26-BA6115A45DAC}.release|x86.ActiveCfg = release|Win32
{BAF011AC-D5E9-42C5-BA26-BA6115A45DAC}.release|x86.Build.0 = release|Win32
{FFFD0DDB-48FB-4681-A3B6-8E787FA98C98}.debug|ARM64.ActiveCfg = debug|ARM64
{FFFD0DDB-48FB-4681-A3B6-8E787FA98C98}.debug|ARM64.Build.0 = debug|ARM64
{FFFD0DDB-48FB-4681-A3B6-8E787FA98C98}.debug|x64.ActiveCfg = debug|x64
{FFFD0DDB-48FB-4681-A3B6-8E787FA98C98}.debug|x64.Build.0 = debug|x64
{FFFD0DDB-48FB-4681-A3B6-8E787FA98C98}.debug|x86.ActiveCfg = debug|Win32
{FFFD0DDB-48FB-4681-A3B6-8E787FA98C98}.debug|x86.Build.0 = debug|Win32
{FFFD0DDB-48FB-4681-A3B6-8E787FA98C98}.release|ARM64.ActiveCfg = release|ARM64
{FFFD0DDB-48FB-4681-A3B6-8E787FA98C98}.release|ARM64.Build.0 = release|ARM64
{FFFD0DDB-48FB-4681-A3B6-8E787FA98C98}.release|x64.ActiveCfg = release|x64
{FFFD0DDB-48FB-4681-A3B6-8E787FA98C98}.release|x64.Build.0 = release|x64
{FFFD0DDB-48FB-4681-A3B6-8E787FA98C98}.release|x86.ActiveCfg = release|Win32
{FFFD0DDB-48FB-4681-A3B6-8E787FA98C98}.release|x86.Build.0 = release|Win32
{F72D34CA-48DA-4DFD-91A9-A0C78BEF6981}.release|ARM64.ActiveCfg = release|ARM64
{F72D34CA-48DA-4DFD-91A9-A0C78BEF6981}.release|ARM64.Build.0 = release|ARM64
{F72D34CA-48DA-4DFD-91A9-A0C78BEF6981}.release|x64.ActiveCfg = release|x64
{F72D34CA-48DA-4DFD-91A9-A0C78BEF6981}.release|x64.Build.0 = release|x64
{F72D34CA-48DA-4DFD-91A9-A0C78BEF6981}.release|x86.ActiveCfg = release|Win32
{F72D34CA-48DA-4DFD-91A9-A0C78BEF6981}.release|x86.Build.0 = release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
+1 -1
View File
@@ -20,7 +20,7 @@ set build=%YYYY%%MM%%DD%
:: Unregistering the Shell Extension.
::echo Proceeding with the Shell Extension unregistration.
echo.
echo Shell version 1.9 build 13 %date% %time%
echo Shell version 1.9 build 18 %date% %time%
echo.
cd /d %~dp0
@@ -1,10 +1,10 @@
menu(mode="multiple" title='&Develop' vis=key.shift() sep=sep.bottom image=\uE26E)
menu(mode="multiple" title=loc.develop sep=sep.bottom image=\uE26E)
{
menu(mode="single" title='editors' image=\uE17A)
menu(mode="single" title=loc.editors 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"')
item(type='file' mode="single" title=loc.windows_notepad image cmd='@sys.bin\notepad.exe' args='"@sel.path"')
}
menu(mode="multiple" title='dotnet' image=\uE143)
@@ -19,7 +19,7 @@
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='publish sinale 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')
@@ -33,4 +33,9 @@
item(title='help' image=\uE136 cmd-line='/k dotnet -h')
item(title='version' cmd-line='/k dotnet --info')
}
}
item(type="file" title="reshack" sep="top" image cmd='D:\config\Programs\dev\petools\resource\reshack\reshack.exe' args=sel(1))
item(type="file" title="peview" image cmd='D:\config\Programs\dev\petools\peview.exe' args=sel(1))
item(type="dir|dir.back" title="Web server" vis=key.shift() cmd='D:\config\Programs\dev\web\HTTPServer\WebServer.exe' args='-open -path:"@sel.path"')
}
@@ -1,4 +1,4 @@
menu(where=sel.count>0 type='file|dir|drive|namespace|back' mode="multiple" title='File manage' image=\uE253)
menu(where=sel.count>0 type='file|dir|drive|namespace|back' mode="multiple" title=loc.file_manage image=\uE253)
{
menu(separator="after" title=title.copy_path image=icon.copy_path)
{
@@ -13,7 +13,7 @@
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="Change extension" image=\uE0B5 cmd=if(input("Change extension", "Type extension"),
item(mode="single" type="file" title=loc.change_extension image=\uE0B5 cmd=if(input(loc.change_extension, "Type extension"),
io.rename(sel.path, path.join(sel.dir, sel.file.title + "." + input.result))))
menu(separator="after" image=\uE290 title=title.select)
@@ -23,50 +23,50 @@
item(title="None" image=icon.select_none cmd=command.select_none)
}
item(type='file|dir|back.dir|drive' title='Take ownership' image=[\uE194,#f00] admin
item(type='file|dir|back.dir|drive' title=loc.take_ownership 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="Show/Hide" image=icon.show_hidden_files)
menu(title=loc.show_hide image=icon.show_hidden_files)
{
item(title="System files" image=inherit cmd='@command.togglehidden')
item(title="File name extensions" image=icon.show_file_extensions cmd='@command.toggleext')
item(title=loc.system_files image=inherit cmd='@command.togglehidden')
item(title=loc.file_name_extensions image=icon.show_file_extensions cmd='@command.toggleext')
}
menu(type='file|dir|back.dir' mode="single" title='Attributes' image=icon.properties)
menu(type='file|dir|back.dir' mode="single" title=loc.attributes image=icon.properties)
{
$atrr = io.attributes(sel.path)
item(title='Hidden' checked=io.attribute.hidden(atrr)
item(title=loc.hidden checked=io.attribute.hidden(atrr)
cmd args='/c ATTRIB @if(io.attribute.hidden(atrr),"-","+")H "@sel.path"' window=hidden)
item(title='System' checked=io.attribute.system(atrr)
item(title=loc.system checked=io.attribute.system(atrr)
cmd args='/c ATTRIB @if(io.attribute.system(atrr),"-","+")S "@sel.path"' window=hidden)
item(title='Read-Only' checked=io.attribute.readonly(atrr)
item(title=loc.readonly checked=io.attribute.readonly(atrr)
cmd args='/c ATTRIB @if(io.attribute.readonly(atrr),"-","+")R "@sel.path"' window=hidden)
item(title='Archive' checked=io.attribute.archive(atrr)
item(title=loc.archive checked=io.attribute.archive(atrr)
cmd args='/c ATTRIB @if(io.attribute.archive(atrr),"-","+")A "@sel.path"' window=hidden)
separator
item(title="Created" keys=io.dt.created(sel.path, 'y/m/d') cmd=io.dt.created(sel.path,2000,1,1) vis=label)
item(title="Modified" keys=io.dt.modified(sel.path, 'y/m/d') cmd=io.dt.modified(sel.path,2000,1,1) vis=label)
item(title="Accessed" keys=io.dt.accessed(sel.path, 'y/m/d') cmd=io.dt.accessed(sel.path,2000,1,1) vis=label)
item(title=loc.created keys=io.dt.created(sel.path, 'y/m/d') cmd=io.dt.created(sel.path,2000,1,1) vis=label)
item(title=loc.modified keys=io.dt.modified(sel.path, 'y/m/d') cmd=io.dt.modified(sel.path,2000,1,1) vis=label)
item(title=loc.accessed 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)
menu(mode="single" type='file' find='.dll|.ocx' separator="before" title=loc.register_erver image=\uea86)
{
item(title='Register' admin cmd='regsvr32.exe' args='@sel.path.quote' invoke="multiple")
item(title='Unregister' admin cmd='regsvr32.exe' args='/u @sel.path.quote' invoke="multiple")
item(title=loc.register admin cmd='regsvr32.exe' args='@sel.path.quote' invoke="multiple")
item(title=loc.unregister admin cmd='regsvr32.exe' args='/u @sel.path.quote' invoke="multiple")
}
menu(mode="single" type='back' expanded=true)
{
menu(separator="before" title='New Folder' image=icon.new_folder)
menu(separator="before" title=loc.new_folder image=icon.new_folder)
{
item(title='DateTime' cmd=io.dir.create(sys.datetime("ymdHMSs")))
item(title='Guid' cmd=io.dir.create(str.guid))
item(title=loc.datetime cmd=io.dir.create(sys.datetime("ymdHMSs")))
item(title=loc.guid cmd=io.dir.create(str.guid))
}
menu(title='New File' image=icon.new_file)
menu(title=loc.new_file image=icon.new_file)
{
$dt = sys.datetime("ymdHMSs")
item(title='TXT' cmd=io.file.create('@(dt).txt', 'Hello World!'))
@@ -21,7 +21,7 @@ menu(type='*' where=window.is_taskbar||sel.count mode=mode.multiple title=title.
item(title='Temp' image=inherit cmd=user.temp)
}
item(title=title.control_panel image=\uE0F3 cmd='shell:::{5399E694-6CE5-4D6C-8FCE-1D8870FDCBA0}')
item(title='All Control Panel Items' image=\uE0F3 cmd='shell:::{ED7BA470-8E54-465E-825C-99712043E01C}')
item(title=loc.all_control_panel_items 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)
{
File renamed without changes.
+44
View File
@@ -0,0 +1,44 @@
/*
Arabic
by: github.com/moudey
*/
// shell.nss
pin_unpin="Pin/Unpin"
// develop.nss
develop="تطوير"
editors="محررات"
windows_notepad="مفكرة الويندوز"
// file-manage.nss
file_manage="ادارة الملفات"
change_extension="تغير الملحقات"
take_ownership="Take ownership"
show_hide="اظهار/اخفاء"
system_files="ملفات النظام"
file_name_extensions="File name extensions"
attributes="السمات"
register_server="Register Server"
register="تسجيل"
unregister="الغاء التسجيل"
hidden="اخفاء"
system="النظام"
readonly="قراءة فقط"
archive="ارشيف"
created="Created"
modified="Modified"
accessed="Accessed"
new_folder="مجلد جديد"
new_file="ملف جديد"
datetime="تاريخ ووقت"
guid="Guid"
// goto.nss
all_control_panel_items="جميع عناصر لوحة التحكم"
// taskbar.nss
apps="تطبيقات"
paint="الرسام"
edge="Edge"
calculator="الحاسبة"
+45
View File
@@ -0,0 +1,45 @@
/*
English
by: github.com/moudey
*/
xxx="Welcome in english"
// shell.nss
pin_unpin="Pin/Unpin"
// develop.nss
develop="&Develop"
editors="editors"
windows_notepad="Windows notepad"
// file-manage.nss
file_manage="File manage"
change_extension="Change extension"
take_ownership="Take ownership"
show_hide="Show/Hide"
system_files="System files"
file_name_extensions="File name extensions"
attributes="Attributes"
register_server="Register Server"
register="Register"
unregister="Unregister"
hidden="Hidden"
system="System"
readonly="Read-Only"
archive="Archive"
created="Created"
modified="Modified"
accessed="Accessed"
new_folder="New Folder"
new_file="New File"
datetime="DateTime"
guid="Guid"
// goto.nss
all_control_panel_items="All Control Panel Items"
// taskbar.nss
apps="Apps"
paint="Paint"
edge="Edge"
calculator="Calculator"
File renamed without changes.
@@ -7,7 +7,7 @@
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) type='taskbar' image=icon.settings expanded=true)
menu(where=@(this.count == 0) type="taskbar" image=icon.settings expanded=true)
{
menu(title="Apps" image=\uE254)
{
@@ -15,6 +15,9 @@ menu(where=@(this.count == 0) type='taskbar' image=icon.settings expanded=true)
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')
sep
item(title='WinSCP' image cmd='D:\config\Programs\network\WinSCP\WinSCP.exe')
item(title="GitHubDesktop" image cmd='D:\config\Programs\dev\github\GitHubDesktop.exe')
}
menu(title=title.windows image=\uE1FB)
{
@@ -1,9 +1,15 @@
menu(type='*' where=(sel.count or wnd.is_taskbar or wnd.is_edit) title=title.terminal sep=sep.top image=icon.run_with_powershell)
{
$tip_run_admin=["\xE1A7 SHIFT 키를 눌러 실행" + this.title + " 관리자로", 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-prompt=`/K TITLE Command Prompt &ver& PUSHD "@sel.dir"`)
item(title=title.windows_powershell admin=has_admin tip=tip_run_admin image cmd-ps=`-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\."`)
}
menu(type='*' where=(sel.count or wnd.is_taskbar or wnd.is_edit) title=title.terminal sep=sep.top image=icon.run_with_powershell)
{
$tip_run_admin=["\xE1A7 Press [SHIFT key] or [RIGHT-CLICK] 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-prompt=`/K TITLE Command Prompt &ver& PUSHD "@sel.dir"`)
item(title=title.windows_powershell admin=has_admin tip=tip_run_admin image cmd-ps=`-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\."`)
}
File renamed without changes.
+21
View File
@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2024 Nilesoft
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
+30
View File
@@ -0,0 +1,30 @@
Nilesoft Shell
[about]
Shell is a powerful, lightweight extension for Windows File Explorer that gives the user a high level of control over the context menu to improve its performance.
Compatible with Windows 7 or later.
[update]
(*) If you are updating, please first uninstall/unregister previous version.
[donate]
If you really love Shell and would like to see it continue to improve.
https://nilesoft.org/donate
[support]
https://nilesoft.org
https://nilesoft.org/github
support@nilesoft.org
[DISCLAIMER]
THE SOFTWARE IS DISTRIBUTED "AS IS". NO WARRANTY OF ANY KIND IS
EXPRESSED OR IMPLIED. YOU USE THE SOFTWARE AT YOUR OWN RISK. THE
AUTHORS WILL NOT BE LIABLE FOR DATA LOSS, DAMAGES, LOSS OF PROFITS OR
ANY OTHER KIND OF LOSS WHILE USING OR MISUSING THE SOFTWARE.
Copyright (C) 2024 Nilesoft Ltd.
[plutovg]
Copyright (c) 2020 Nwutobo Samuel Ugochukwu
https://github.com/sammycage/plutovg
+4 -2
View File
@@ -8,12 +8,14 @@
tip.enabled=true
}
// localization
import lang 'imports/lang/en.nss'
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=loc.pin_unpin image=icon.pin)
{
}
+1
View File
@@ -169,6 +169,7 @@
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<None Include="readme.txt" />
<None Include="src\Shell.def" />
</ItemGroup>
<ItemGroup>
+3
View File
@@ -30,6 +30,9 @@
</Filter>
</ItemGroup>
<ItemGroup>
<None Include="ReadMe.txt">
<Filter>Others Files</Filter>
</None>
<None Include="src\Shell.def">
<Filter>Others Files</Filter>
</None>
+1 -1
View File
@@ -25,7 +25,7 @@ namespace Nilesoft
For,
ForEach,
Assign, //An assignment operation, such as (a = b).
StringExt,
StringExt
/*
Constant, //A constant value.
Add, //An addition operation, such as a + b, without overflow checking, for numeric operands.
+84 -13
View File
@@ -2100,6 +2100,12 @@ namespace Nilesoft
case IDENT_INDEXOF:
_result = Object(new Object[]{ IDENT_INDEXOF, (int)argc, eval_arg(0).move(), eval_arg(1).move(), eval_arg(2).move() }, true).move();
break;
case IDENT_LOC:
{
auto e = context->Cache->variables.loc[Id[1]];
_result = context->Eval(e).move();
break;
}
default:
{
eval_var(_result);
@@ -2351,10 +2357,10 @@ namespace Nilesoft
_result = p->get_title(quote).move();
break;
case IDENT_QUOTE:
_result = p->get(quote.empty() ? string(L"\"") : quote).move();
_result = p->get(quote.empty() ? string(L"\"") : quote, argc == 1 ? sep.c_str() : nullptr).move();
break;
default:
_result = p->get(quote).move();
_result = p->get(quote, argc == 2 ? sep.c_str() : nullptr).move();
break;
}
}
@@ -4239,34 +4245,34 @@ namespace Nilesoft
break;
}
case IDENT_IS7ORGREATER:
_result = ver->Major > 6 || (ver->Major == 6 && ver->Minor >= 1);
_result = ver->Major >= 6 && ver->Minor >= 1;
break;
case IDENT_IS8ORGREATER:
_result = ver->Major > 6 || (ver->Major == 6 && ver->Minor >= 2);
_result = ver->Major >= 6 && ver->Minor >= 2;
break;
case IDENT_IS81ORGREATER:
_result = ver->Major > 6 || (ver->Major == 6 && ver->Minor >= 3);
_result = ver->Major >= 6 && ver->Minor >= 3;
break;
case IDENT_IS10ORGREATER:
_result = ver->Major >= 10;
break;
case IDENT_S11ORGREATER:
_result = ver->Major >10 || (ver->Major == 10 && ver->Build >= 22000);
_result = ver->Major >= 10 && ver->Build >= 22000;
break;
case IDENT_IS7OREARLIER:
_result = ver->Major < 6 || (ver->Major == 6 && ver->Minor <= 1);
_result = ver->Major <= 6 && ver->Minor <= 1;
break;
case IDENT_IS8OREARLIER:
_result = ver->Major < 6 || (ver->Major == 6 && ver->Minor <= 2);
_result = ver->Major <= 6 && ver->Minor <= 2;
break;
case IDENT_IS81OREARLIER:
_result = ver->Major < 6 || (ver->Major == 6 && ver->Minor <= 3);
_result = ver->Major <= 6 && ver->Minor <= 3;
break;
case IDENT_IS10OREARLIER:
_result = ver->Major < 10 || (ver->Major == 10 && ver->Build < 22000);
_result = ver->Major <= 10 && ver->Build < 22000;
break;
case IDENT_IS11OREARLIER:
_result = ver->Major < 10 || (ver->Major == 10 && ver->Build <= 22000);
_result = ver->Major <= 10 && ver->Build <= 22000;
break;
case IDENT_IS_PRIMARY_MONITOR:
_result = context->helper.is_primary_monitor;
@@ -4357,9 +4363,74 @@ namespace Nilesoft
case IDENT_TEMPLATES:
_result = Path::GetKnownFolder(FOLDERID_CommonTemplates).trim_end(trim).move();
break;
case IDENT_LANGID:
_result = ::GetThreadUILanguage(); //context->helper.languageId;
case IDENT_LANG:
case IDENT_LOC:
{
wchar_t szISOLang[51] = { };
if(Id.length() == 2)
{
auto len = ::GetUserDefaultLocaleName(szISOLang, 50);
if(len > 0)
_result = szISOLang;
}
else if(Id.length() == 3)
{
auto locid = ::GetThreadUILanguage();
switch(Id[2])
{
case IDENT_ID:
_result = locid; //context->helper.languageId;
break;
case IDENT_NAME:
{
auto ret = ::GetLocaleInfoW(locid,
LOCALE_SISO639LANGNAME,
szISOLang,
sizeof(szISOLang) / sizeof(wchar_t));
if(ret)
_result = szISOLang;
break;
}
case IDENT_COUNTRY:
{
auto ret = ::GetLocaleInfoW(locid,
LOCALE_SISO3166CTRYNAME,
szISOLang,
sizeof(szISOLang) / sizeof(wchar_t));
if(ret)
_result = szISOLang;
break;
}
}
}
/*wchar_t szISOLang[10] = { 0 };
wchar_t szISOCountry[10] = { 0 };
auto lid = ::GetThreadUILanguage();
auto ret = ::GetLocaleInfoW(lid,
LOCALE_SISO639LANGNAME,
szISOLang,
sizeof(szISOLang) / sizeof(wchar_t));
if(ret)
{
loc = szISOLang;
ret = ::GetLocaleInfoW(lid,
LOCALE_SISO3166CTRYNAME,
szISOCountry,
sizeof(szISOCountry) / sizeof(wchar_t));
if(ret)
{
loc += L"-";
loc += szISOCountry;
}
}
*/
break;
}
case IDENT_DATETIME:
{
SYSTEMTIME lt = { };
+2
View File
@@ -420,6 +420,7 @@ namespace Nilesoft
struct {
Scope global;
Scope runtime;
Scope loc;
} variables;
std::vector<NativeMenu*> statics;
@@ -454,6 +455,7 @@ namespace Nilesoft
variables.global.clear(true);
variables.runtime.clear(true);
variables.loc.clear(true);
Packages.list.clear();
}
+1 -1
View File
@@ -808,7 +808,7 @@ namespace Nilesoft
if(count == 1)
{
if(kctrl || kb.is_lbutton()) // reload/enabled shell
if(kctrl || kb.is_lbutton() || kb.key(VK_F5)) // reload/enabled shell
{
//Modern(1);
Status.Disabled = false;
+3 -1
View File
@@ -1264,8 +1264,10 @@ HRESULT Register(bool reg)
if(reg)
{
//_log.create();
REGOP regop;
regop.REGISTER = regop.CONTEXTMENU = regop.ICONOVERLAY = true;
if(!RegistryConfig::Register(path, REG_REGISTER | REG_CONTEXTMENU | REG_ICONOVERLAY))
if(!RegistryConfig::Register(path, regop))
{
msg = string::Extract(_hInstance, IDS_REGISTER_NOT_SUCCESS).move();
_log.error(L"%s", msg.c_str());
+4 -1
View File
@@ -359,6 +359,10 @@ namespace Nilesoft
constexpr auto IDENT_MENU = 0x7C9A911AU;
constexpr auto IDENT_PARALLEL = 0x1455E3F2U;
constexpr auto IDENT_LOC = 0x0B888D03U;
constexpr auto IDENT_LANG = 0x7C99F3A7U;
constexpr auto IDENT_COUNTRY = 0xD3F53B19U;
constexpr auto IDENT_THEME = 0x106CDE18U;
constexpr auto IDENT_THEME_AUTO = 0x7C94415EU;
constexpr auto IDENT_THEME_HIGHCONTRAST = 0xA855C1B3U;
@@ -553,7 +557,6 @@ namespace Nilesoft
constexpr auto IDENT_LIBRARIES = 0x866F7922U;
constexpr auto IDENT_DOCUMENTSLIBRARY = 0x102BD54CU;
constexpr auto IDENT_TEMPLATES = 0xC41FE294U;
constexpr auto IDENT_LANGID = 0x0AE58754U;
constexpr auto IDENT_QUICKLAUNCH = 0xF64BA4FDU;
constexpr auto IDENT_PACKAGE = 0x9ABA6791U;
constexpr auto IDENT_UWP = 0x0B88B461U;
+56 -14
View File
@@ -1030,16 +1030,20 @@ namespace Nilesoft
}
//predefined constant variable
bool Parser::parse_variable(Scope *variables)
bool Parser::parse_variable(Scope *variables, bool has_sign)
{
skip();
if(l->tok != L'$')
return false;
if(has_sign)
{
if(l->tok != L'$')
return false;
skip();
prevCol = l->column;
l->next(); // skip $
}
skip();
prevCol = l->column;
l->next(); // skip $
error_if(!l->is_ident(0), TokenError::VariableExpected, prevCol);
Ident id;
id.push_back(parse_ident(true));
@@ -1178,6 +1182,20 @@ namespace Nilesoft
return 0;
}
void Parser::parse_loc(bool has_curly)
{
if(has_curly)
expect_openCurly();
while(!l->eof)
{
if(has_curly && l->tok == L'}')
break;
parse_variable(&context.Cache->variables.loc, false);
}
if(has_curly)
expect_closeCurly();
}
// load data from disk and populate
void Parser::parse_config()
{
@@ -1229,26 +1247,50 @@ namespace Nilesoft
}
case IDENT_IMPORT:
{
skip();
bool bloc = false;
if(l->peek_ident(IDENT_LOC))
{
bloc = true;
l->next(3);
}
else if(l->peek_ident(IDENT_LANG))
{
bloc = true;
l->next(4);
}
auto ret = load_import(l->line, l->column, true, false);
if(ret == 1)
{
parse_config();
if(bloc)
parse_loc(false);
else
parse_config();
pop_import();
}
break;
}
case 0:
case IDENT_LANG:
case IDENT_LOC:
{
if(l->eof)
break;
if(parse_variable(&cache->variables.global))
break;
if(parse_image())
break;
parse_loc(true);
break;
}
default:
{
if(id == 0)
{
if(l->eof)
break;
if(parse_variable(&cache->variables.global))
break;
if(parse_image())
break;
}
error(TokenError::IdentifierConfigUnexpected, prevCol);
break;
}
}
}
}
+3 -1
View File
@@ -100,7 +100,7 @@ namespace Nilesoft
bool parse_ident(Ident &id, bool allow_dash = false);
uint32_t parse_ident(bool multiple = true);
bool parse_variable(Scope *variables);
bool parse_variable(Scope *variables, bool has_sign = true);
int load_import(size_t line, size_t col, bool ignore_failed = true, bool parse_import = false);
void parse_modify_items(uint32_t action = 0);
@@ -112,6 +112,8 @@ namespace Nilesoft
void parse_menu(NativeMenu *menu, bool has_curly = true);
bool parse_modify_properties(NativeMenu *item, uint32_t action = 0);
void parse_loc(bool has_curly = false);
void parse_settings(std::vector<struct SETTING> *settings, const Ident &id, bool imported = false);
void parse_settings(struct SETTING *setting, const Ident &id = 0, bool imported = false);
void parse_theme();
+25 -4
View File
@@ -458,9 +458,9 @@ namespace Nilesoft
case IDENT_TITLE:
case IDENT_NAME:
case IDENT_QUOTE:
return check(argc == 0, 2);
return check(argc <= 1, 2);
case IDENT_ZERO:
return check(argc <= 1, 1);
return check(argc <= 2, 1);
default:
return error_at(2);
}
@@ -669,8 +669,22 @@ namespace Nilesoft
case IDENT_APPDATA:
case IDENT_USERS:
case IDENT_TEMPLATES:
case IDENT_LANGID:
case IDENT_LANG:
case IDENT_LOC:
{
switch(id[2])
{
case IDENT_ID:
case IDENT_NAME:
case IDENT_COUNTRY:
return check(argc == 0, 2);
case IDENT_ZERO:
return check(argc == 0, 1);
default:
return error_at(2);
}
return check(argc == 0, 1);
}
case IDENT_ISOREARLIER:
case IDENT_ISORGREATER:
return check(argc < 3, 1);
@@ -1927,9 +1941,16 @@ namespace Nilesoft
}
return error_at(0);
}
case IDENT_LOC:
{
if(length != 2)
return error_at(0);
//if(argc == 0 && context.Cache->variables.loc.exists(id[1], false))
return ExpressionType::Identifier;
//return error_at(1);
}
}
//if(argc == 0)
{
if(context.variables.global)
View File
Whitespace-only changes.
+1 -5
View File
@@ -28,7 +28,7 @@
</ItemGroup>
<PropertyGroup Label="Globals">
<VCProjectVersion>16.0</VCProjectVersion>
<Keyword>Win32Proj</Keyword>
<Keyword></Keyword>
<ProjectGuid>{FFFD0DDB-48FB-4681-A3B6-8E787FA98C98}</ProjectGuid>
<RootNamespace>Shell</RootNamespace>
<TargetName>shell</TargetName>
@@ -57,10 +57,6 @@
<Xdcmake>
<OutputFile>$(OutDir)$(TargetName)$(TargetExt).xml</OutputFile>
</Xdcmake>
<PreBuildEvent>
<Command>..\tools\version\version.exe</Command>
<Message>Generating version number...</Message>
</PreBuildEvent>
<IncludePath>$(IncludePath)</IncludePath>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
+107 -369
View File
File diff suppressed because it is too large. Load diff
+29
View File
@@ -0,0 +1,29 @@
@echo off
echo build setup...
echo.
set arch=%~1
set bin=..\..\bin
if "%~1" == "x86" (
set arch=x86
) else if "%~1" == "arm64" (
set arch=arm64
) else (
set arch=x64
)
echo %arch%
if exist %bin%\setup-%arch%.msi del %bin%\setup-%arch%.msi
echo WIX
wix.exe --version
echo.
wix.exe build -o %bin%\setup-%arch%.msi setup.wxs -arch %arch%
if exist %bin%\setup-%arch%.wixpdb del %bin%\setup-%arch%.wixpdb>nul
echo.
pause
+9
View File
@@ -0,0 +1,9 @@
;LIBRARY "ca"
EXPORTS
Install
Uninstall
Update
;ShellExecute
ValidatePath
+84
View File
@@ -0,0 +1,84 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="16.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|ARM64">
<Configuration>Release</Configuration>
<Platform>ARM64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{F72D34CA-48DA-4DFD-91A9-A0C78BEF6981}</ProjectGuid>
<ConfigurationType>DynamicLibrary</ConfigurationType>
<TargetName>ca_$(Platform.ToLower().Replace('win32', 'x86'))</TargetName>
<CharacterSet>Unicode</CharacterSet>
<ProjectModuleDefinitionFile>ca.def</ProjectModuleDefinitionFile>
<Description>WiX Toolset CustomAction</Description>
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
<OutDir>$(SolutionDir)bin\</OutDir>
<IntDir>$(ProjectDir)obj\$(Configuration.ToLower())\</IntDir>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Label="Configuration">
<PlatformToolset>v143</PlatformToolset>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<PropertyGroup>
<ProjectAdditionalLinkLibraries>msi.lib;shlwapi.lib</ProjectAdditionalLinkLibraries>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<MinimalRebuild>false</MinimalRebuild>
<DebugInformationFormat>None</DebugInformationFormat>
</ClCompile>
<Link>
<GenerateDebugInformation>false</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'">
<Link>
<GenerateDebugInformation>false</GenerateDebugInformation>
</Link>
<ClCompile>
<DebugInformationFormat>None</DebugInformationFormat>
</ClCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Link>
<GenerateDebugInformation>false</GenerateDebugInformation>
</Link>
<ClCompile>
<DebugInformationFormat>None</DebugInformationFormat>
</ClCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Label="Globals">
<ClCompile>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<Optimization>MaxSpeed</Optimization>
<LanguageStandard>stdcpp20</LanguageStandard>
<PrecompiledHeader>Create</PrecompiledHeader>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<PrecompiledHeaderOutputFile>$(IntDir)$(TargetName).pch</PrecompiledHeaderOutputFile>
</ClCompile>
<Link>
<ModuleDefinitionFile>ca.def</ModuleDefinitionFile>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="dllmain.cpp" />
</ItemGroup>
<ItemGroup>
<None Include="ca.def" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="PropertySheets">
<Import Project="..\..\shared\VC-LTL.props" Condition="'$(Configuration)|$(Platform)'=='release|$(Platform)'" />
</ImportGroup>
</Project>
File diff suppressed because it is too large. Load diff
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 318 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 318 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 766 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

+7
View File
@@ -0,0 +1,7 @@
<Project Sdk="WixToolset.Sdk/5.0.2">
<PropertyGroup>
<OutputType>Package</OutputType>
<OutputPath>..\..\bin\</OutputPath>
<TargetName>setup-$(Platform.ToLower().Replace('win32', 'x86'))</TargetName>
</PropertyGroup>
</Project>
+152
View File
@@ -0,0 +1,152 @@

<?define Version = '1.9.18' ?>
<?define UpgradeCode = '{7BCA6512-254B-456F-8F08-AAD7508BEE00}' ?>
<?define Platform = '$(sys.BUILDARCH)' ?>
<?define Name = 'Shell' ?>
<?define Manufacturer = 'Nilesoft' ?>
<?define FullName = '$(var.Manufacturer) $(var.Name)' ?>
<?define Info = 'Powerful context menu manager for Windows File Explorer' ?>
<?define bin = '..\..\bin' ?>
<?define release = '$(var.bin)\release\$(var.Platform)' ?>
<?define config = '$(var.bin)' ?>
<?define PlatformProgramFilesFolder = 'ProgramFiles6432Folder' ?>
<!--
<?if $(var.Platform) = x64 ?>
<?define PlatformProgramFilesFolder = 'ProgramFiles64Folder' ?>
<?elseif $(var.Platform) = arm64 ?>
<?define PlatformProgramFilesFolder = 'ProgramFiles64Folder' ?>
<?else ?>
<?define PlatformProgramFilesFolder = 'ProgramFilesFolder' ?>
<?endif ?>
-->
<Wix xmlns='http://wixtoolset.org/schemas/v4/wxs'>
<Package
Language='1033'
Codepage='65001'
InstallerVersion='500'
Compressed='yes'
Scope='perMachine'
ProductCode='{3025C475-D665-4288-99A8-3382654F7E11}'
UpgradeCode='$(var.UpgradeCode)'
Manufacturer='$(var.Manufacturer)'
Name='$(var.FullName)'
Version='$(var.Version)'>
<SummaryInformation
Comments='$(var.FullName)'
Description='$(var.FullName) $(var.Version) $(var.Platform) Setup'
Keywords='context-menu, right-click, file-explorer' />
<Media Id='1' EmbedCab='yes' Cabinet='main.cab' CompressionLevel='high' />
<Binary Id='WixUI_Banner' SourceFile='res\WixUI_Banner.png' />
<Binary Id='WixUI_Dialog' SourceFile='res\WixUI_Dialog.png' />
<Binary Id='WixUI_Bmp_Up' SourceFile='res\WixUI_Bmp_Up.bmp' />
<Binary Id='WixUI_Bmp_New' SourceFile='res\WixUI_Bmp_New.bmp' />
<Binary Id='WixUI_Ico_Exclam' SourceFile='res\WixUI_Ico_Exclam.ico' />
<Binary Id='WixUI_Ico_Info' SourceFile='res\WixUI_Ico_Info.ico' />
<Binary Id='CA' SourceFile='$(var.bin)\ca_$(var.Platform).dll' />
<Property Id='WIXUI_INSTALLDIR' Value='INSTALLFOLDER' />
<Property Id='WixUIRMOption' Value='UseRM' />
<Property Id='MSIRESTARTMANAGERCONTROL' Value='Disable' />
<Property Id='DefaultUIFont' Value='WixUI_Font_Normal' />
<Property Id='ErrorDialog' Value='ErrorDlg' />
<Property Id='ARPURLINFOABOUT' Value='https://nilesoft.org/' />
<Property Id='ARPHELPLINK' Value='https://nilesoft.org/docs/' />
<Property Id='ARPNOMODIFY' Value='1' Secure='yes' />
<Property Id='ARPNOREPAIR' Value='1' Secure='yes' />
<Property Id='BURNMSIMODIFY' Value='0' Secure='yes' />
<Property Id='BURNMSIREPAIR' Value='0' Secure='yes' />
<Property Id='BURNMSIUNINSTALL' Value='1' Secure='yes' />
<StandardDirectory Id='$(var.PlatformProgramFilesFolder)'>
<Directory Id='INSTALLFOLDER' Name='$(var.FullName)'>
<Directory Id='IMPORTS' Name='imports'>
<Component Id='IMPORTS' Guid='{FF987BEA-6195-4C05-8523-00936A1BD0E2}' NeverOverwrite='yes'>
<File Id='theme.nss' Source='$(var.config)\imports\theme.nss' />
<File Id='goto.nss' KeyPath='yes' Source='$(var.config)\imports\goto.nss' />
<File Id='modify.nss' Source='$(var.config)\imports\modify.nss' />
<File Id='images.nss' Source='$(var.config)\imports\images.nss' />
<File Id='taskbar.nss' Source='$(var.config)\imports\taskbar.nss' />
<File Id='develop.nss' Source='$(var.config)\imports\develop.nss' />
<File Id='file_manage.nss' Source='$(var.config)\imports\file-manage.nss' />
<File Id='terminal.nss' Source='$(var.config)\imports\terminal.nss' />
</Component>
</Directory>
<Component Id='APPLICATION' Guid='{ED9EFE4B-E83D-42BB-8938-F72B13A2FAD2}'>
<CreateFolder Directory='INSTALLFOLDER' />
<File Id='shell.exe' Checksum='yes' Name='shell.exe' KeyPath='yes' Source='$(var.release)\shell.exe' />
<File Id='shell.dll' Checksum='yes' Name='shell.dll' Source='$(var.release)\shell.dll' />
<File Id='readme.txt' Name='readme.txt' Source='$(var.config)\readme.txt' />
<File Id='LICENSE' Name='LICENSE' Source='$(var.config)\LICENSE' />
</Component>
<Component Id='CONFIG' Guid='{BEC55C6A-30C7-4E1F-B64D-8636AB379E31}' NeverOverwrite='yes'>
<File Id='shell.nss' Name='shell.nss' KeyPath='yes' Source='$(var.config)\shell.nss' />
</Component>
<Component Id='CLEANUP' Guid='{838501CD-485B-4587-9195-6CFB416202B9}' KeyPath='yes'>
<RemoveFile Id='PurgeAppFiles' Name='*.*' On='uninstall' Directory='INSTALLFOLDER' />
<RemoveFolder Id='PurgeAppFolder' On='uninstall' Directory='INSTALLFOLDER' />
</Component>
<Component Id='DisplayIcon' Guid='{69292D86-8518-4C68-867C-192767154C54}'>
<RegistryValue Id='DisplayIcon' Key='SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\[ProductCode]'
Name='DisplayIcon' Root='HKLM' Type='string' Value='[!shell.exe]' KeyPath='yes'/>
</Component>
</Directory>
</StandardDirectory>
<StandardDirectory Id='ProgramMenuFolder'>
<Component Id='StartMenuShortcut' Guid='{41AFAF39-4B3F-4D1E-800E-DD3231C004C9}'>
<Shortcut Id='StartMenuShortcut' Directory='ProgramMenuFolder' Description='$(var.Info)'
WorkingDirectory='INSTALLFOLDER' Name='$(var.FullName)' Target='[!shell.exe]' />
<RegistryValue Key='Software\Nilesoft\Shell' Root='HKCU' Type='string' Value='' KeyPath='yes' />
</Component>
</StandardDirectory>
<!--
<ComponentGroup Id="IMPORTFiles" Directory="IMPORTS">
<Files Include="$(var.config)\imports\*.nss" />
</ComponentGroup>
-->
<Feature Id='APPLICATION' Title='$(var.FullName)' Level='1'>
<ComponentRef Id='APPLICATION' />
<ComponentRef Id='CONFIG' />
<ComponentRef Id='IMPORTS' />
<ComponentRef Id='CLEANUP' />
<ComponentRef Id='StartMenuShortcut' />
<ComponentRef Id='DisplayIcon' />
<!--<ComponentGroupRef Id="IMPORTSFiles"/>-->
</Feature>
<!-- Upgrade -->
<Property Id='NEWPRODUCTFOUND' Secure='yes' />
<Property Id='UPGRADEFOUND' Secure='yes' />
<CustomAction Id='OnDowngrading' Error='A newer version of [ProductName] is already installed. Setup will now exit.' />
<Upgrade Id='$(var.UpgradeCode)'>
<UpgradeVersion Property='NEWPRODUCTFOUND' Minimum='$(var.Version)' OnlyDetect='yes' />
<UpgradeVersion Property='UPGRADEFOUND' Minimum='1.0.0' Maximum='$(var.Version)' IncludeMinimum='yes' />
</Upgrade>
<InstallUISequence>
<Custom Action='OnDowngrading' After='FindRelatedProducts' Condition='NEWPRODUCTFOUND' />
</InstallUISequence>
<!-- End Upgrade -->
<CustomAction Id='OnUpdate' Return='ignore' BinaryRef='CA' DllEntry='Update' />
<CustomAction Id='OnInstall' Return='ignore' BinaryRef='CA' DllEntry='Install' />
<CustomAction Id='OnUninstall' Execute='firstSequence' Return='asyncWait' BinaryRef='CA' DllEntry='Uninstall' />
<InstallExecuteSequence>
<Custom Action='OnDowngrading' After='FindRelatedProducts' Condition='NEWPRODUCTFOUND' />
<Custom Action='OnUninstall' After='FindRelatedProducts' Condition='(REMOVE ="ALL") AND (NOT UPGRADINGPRODUCTCODE)' />
<Custom Action='OnUpdate' After='FindRelatedProducts' Condition='(NOT INSTALLED) AND (NOT REMOVE)' />
<Custom Action='OnInstall' After='InstallFinalize' Condition='(NOT INSTALLED) AND (NOT REMOVE)' />
<RemoveExistingProducts After='InstallFinalize' />
</InstallExecuteSequence>
<?include ui.wxi ?>
</Package>
</Wix>
File diff suppressed because it is too large. Load diff