Конфигурация контекстного меню
This commit is contained in:
135
imports/develop.nss
Normal file
135
imports/develop.nss
Normal file
@@ -0,0 +1,135 @@
|
||||
menu(mode="single" title='&Разработчик' sep=sep.bottom image=\uE26E)
|
||||
{
|
||||
// Editors
|
||||
menu(title='Редакторы' mode="single" image=\uE17A)
|
||||
{
|
||||
item(title='Visual Studio Code' image=[\uE272, #22A7F2] cmd='code' args='"@sel.path"')
|
||||
item(title='Visual Studio' image=[\uE273, #7160E8] cmd='devenv' args='"@sel.path"')
|
||||
item(title='PyCharm' image=[\uE230, #FFFFFF] cmd='pycharm' args='"@sel.path"')
|
||||
item(title='IntelliJ IDEA' image=[\uE22E, #FFFFFF] cmd='idea' args='"@sel.path"')
|
||||
sep
|
||||
item(title='Notepad++' image=[\uE1BD, #FFFFFF] cmd='notepad++' args='"@sel.path"')
|
||||
item(type='file' mode="single" title='Windows notepad' image cmd='@sys.bin\notepad.exe' args='"@sel.path"')
|
||||
item(type='file' mode="single" title='Notepad++' image cmd='notepad++' args='"@sel.path"')
|
||||
}
|
||||
|
||||
// Git
|
||||
menu(type='~file' mode="single" title='git' image=\uE22A)
|
||||
{
|
||||
item(title='git clone' cmd-line='cmd /c "C:\Program Files\Nilesoft Shell\scripts\git-clone.bat"')
|
||||
item(title='git status' cmd-line='/K git status')
|
||||
item(title='git log' cmd-line='/K git log')
|
||||
item(title='git diff' cmd-line='/K git diff')
|
||||
item(title='git add .' cmd-line='/K git add .')
|
||||
item(title='git commit' cmd-line='/K git commit')
|
||||
item(title='git push' cmd-line='/K git push')
|
||||
item(title='git pull' cmd-line='/K git pull')
|
||||
sep
|
||||
item(title='git config' cmd-line='/K git config --list')
|
||||
item(title='git help' cmd-line='/K git --help')
|
||||
}
|
||||
menu(type='file' mode="single" title='git' image=\uE22A)
|
||||
{
|
||||
item(title='git add "@sel.file.name"' type='file' cmd-line='/K git add "@sel.path"')
|
||||
}
|
||||
|
||||
// Npm
|
||||
menu(type='~file' mode="single" title='npm' image=\uE229)
|
||||
{
|
||||
item(title='npm init' cmd-line='/K npm init')
|
||||
item(title='npm install' cmd-line='/K npm install')
|
||||
sep
|
||||
item(title='npm start' cmd-line='/K npm start')
|
||||
item(title='npm test' cmd-line='/K npm test')
|
||||
item(title='npm run build' cmd-line='/K npm run build')
|
||||
item(title='npm run dev' cmd-line='/K npm run dev')
|
||||
}
|
||||
|
||||
// Docker
|
||||
menu(type='~file' mode="single" title='docker' image=\uE24B)
|
||||
{
|
||||
item(title='Docker Desktop' cmd='C:\Program Files\Docker\Docker\Docker Desktop.exe')
|
||||
item(title='Docker Hub' cmd='https://hub.docker.com/')
|
||||
sep
|
||||
item(title='docker container ls' cmd-line='/K docker container ls')
|
||||
item(title='docker image ls' cmd-line='/K docker image ls')
|
||||
item(title='docker volume ls' cmd-line='/K docker volume ls')
|
||||
item(title='docker network ls' cmd-line='/K docker network ls')
|
||||
sep
|
||||
item(title='docker-compose up' cmd-line='/K docker-compose up')
|
||||
item(title='docker-compose up -d' cmd-line='/K docker-compose up -d')
|
||||
item(title='docker-compose down' cmd-line='/K docker-compose down')
|
||||
item(title='docker-compose build' cmd-line='/K docker-compose build')
|
||||
sep
|
||||
item(title='docker system prune' cmd-line='/K docker system prune')
|
||||
item(title='docker image prune' cmd-line='/K docker image prune')
|
||||
item(title='docker volume prune' cmd-line='/K docker volume prune')
|
||||
item(title='docker network prune' cmd-line='/K docker network prune')
|
||||
}
|
||||
menu(type='file' mode="single" title='docker' image=\uE24B)
|
||||
{
|
||||
item(title='docker-compose -f "@sel.file.name" up' type='file' cmd-line='/K docker-compose -f "@sel.path" up')
|
||||
item(title='docker-compose -f "@sel.file.name" up -d' type='file' cmd-line='/K docker-compose -f "@sel.path" up -d')
|
||||
item(title='docker-compose -f "@sel.file.name" down' type='file' cmd-line='/K docker-compose -f "@sel.path" down')
|
||||
}
|
||||
|
||||
menu(mode="multiple" title='dotnet' 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')
|
||||
sep
|
||||
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')
|
||||
sep
|
||||
item(title='help' image=\uE136 cmd-line='/k dotnet -h')
|
||||
item(title='version' cmd-line='/k dotnet --info')
|
||||
}
|
||||
|
||||
// File system
|
||||
menu(type='file|dir|drive|namespace|back|desktop' mode="single" title='file system' image=\uE043)
|
||||
{
|
||||
item(type='file|dir|back.dir|drive|desktop' 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")')
|
||||
menu(type='file|dir|back.dir|desktop' 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)
|
||||
sep
|
||||
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))
|
||||
}
|
||||
sep
|
||||
menu(sep="after" title=title.copy_path image=icon.copy_path)
|
||||
{
|
||||
item(mode="single" title=@sel.path tip=sel.path cmd=command.copy(sel.path))
|
||||
item(mode="single" type="~file" sep=before where=@sel.parent.len>3 title=sel.parent cmd=@command.copy(sel.parent))
|
||||
item(mode="single" type='file|dir|back.dir' sep=before title=sel.file.name cmd=command.copy(sel.file.name))
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user