Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
18c2b99dd5 | ||
|
|
2f7e97f13a | ||
|
|
a82a99d21e |
No files matched your search
+1
-1
@@ -1,5 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.24)
|
||||
project(KSwitcher VERSION 0.6.98 LANGUAGES CXX RC)
|
||||
project(KSwitcher VERSION 0.6.99 LANGUAGES CXX RC)
|
||||
if(NOT WIN32)
|
||||
message(FATAL_ERROR "KSwitcher uses native Windows APIs")
|
||||
endif()
|
||||
|
||||
+5
-4
@@ -32,9 +32,9 @@ Warning і початковий фокус на No.
|
||||
окремим процесом. BAT і CMD виконуються в поточній сесії вбудованого
|
||||
термінала, а їхній вивід з’являється під панелями. Щоб відкрити файл із
|
||||
панелі LAN, спочатку скопіюй його до локальної папки.
|
||||
- Shift+Enter відкриває поточний локальний елемент через Windows.
|
||||
- Коли командний рядок порожній, Shift+Enter відкриває поточний локальний
|
||||
елемент через Windows.
|
||||
Папка відкривається у Провіднику, файл виконує свою стандартну дію Windows.
|
||||
Введена в командному рядку команда зберігається.
|
||||
|
||||
- У головному вікні клавіатурний фокус залишається в командному рядку.
|
||||
Tab перемикає активну панель, клік вибирає рядок, а стрілки вгору й вниз,
|
||||
@@ -44,8 +44,9 @@ Warning і початковий фокус на No.
|
||||
Клік оновлює підсвічування рядків курсора без перемальовування всієї панелі.
|
||||
Меню й діалоги тимчасово приймають фокус. Ctrl+V і Shift+Insert вставляють
|
||||
текст із буфера обміну в позицію курсора або замінюють виділення.
|
||||
Enter запускає введену команду або відкриває поточний елемент, якщо рядок
|
||||
порожній. Escape очищає рядок.
|
||||
Enter і Shift+Enter спочатку виконують введену команду. Коли рядок
|
||||
порожній, Enter відкриває поточний елемент. Якщо панелі приховано,
|
||||
Enter передає порожній рядок у термінал. Escape очищає рядок.
|
||||
Промпт і текст команди вирівняні по спільній базовій лінії.
|
||||
- **F8 Delete** у нижньому рядку клавіш викликає той самий діалог видалення,
|
||||
що й клавіша F8.
|
||||
|
||||
Binary file not shown.
@@ -1,5 +1,11 @@
|
||||
# Latest Windows release
|
||||
|
||||
## v0.6.99 — 2026-11-16
|
||||
|
||||
In KSwitcher Files, Enter and Shift+Enter run the command in the command line, including when the file panes are hidden. With visible panes and an empty command line, the keys act on the selected item. A command reveals the terminal output if it was hidden. This release replaces v0.6.98.
|
||||
|
||||
**Українською.** У KSwitcher Files Enter і Shift+Enter виконують команду з командного рядка, зокрема коли файлові панелі приховані. Коли панелі видимі й рядок порожній, клавіші діють на вибраний елемент. Якщо вивід термінала приховано, команда відкриває його. Цей реліз замінює v0.6.98.
|
||||
|
||||
## v0.6.98 — 2026-11-16
|
||||
|
||||
In Files, Enter opens folders in the current pane, uses the Windows default action for local files, and runs BAT and CMD in the embedded terminal. Shift+Enter opens local folders in File Explorer and passes files, including BAT and CMD, to Windows. It preserves the draft command. Left and Right clear the previous cursor highlight when jumping to the first or last row. The FAR-style key bar uses gray key labels on black and dark action names on teal.
|
||||
|
||||
@@ -1 +1 @@
|
||||
56aa00696a0d285faf64474cb1f3b321c0681bb315807a7c70dceeb95e8469d0 KSwitcher-win-x64.zip
|
||||
c154e3b6d8042e83965850d395b2c0e7504a0abe5cbf98e0dc7db3988a8b9900 KSwitcher-win-x64.zip
|
||||
@@ -1,24 +1,22 @@
|
||||
{
|
||||
"version": "0.6.98",
|
||||
"schema": 1,
|
||||
"files": [
|
||||
{
|
||||
"sha256": "222efeb00661165e15c60ce29865e36904895fee02972199a4aa22e40be24236",
|
||||
"sha256": "dc44f9115be52e8642c349ffc737e00e57a6d758e918da6426bac9256720b0bf",
|
||||
"size": 2361856,
|
||||
"path": "KSwitcher.exe"
|
||||
},
|
||||
{
|
||||
"sha256": "8853a4bddd887fc4e35e4c3e1a3d3c3f863ac36ed509d4294516f09ae86b2c50",
|
||||
"sha256": "4cd23521c58a85381819886cd42e8fbbca1941152247a7e199763676447777cf",
|
||||
"size": 2359808,
|
||||
"path": "KSwitcher.Config.exe"
|
||||
},
|
||||
{
|
||||
"sha256": "27d77cd34fcb4aa6225bba12c87e76b7f410134f713754ace1b1b4cc34150979",
|
||||
"sha256": "ed3ccea0262caf8fef7c1f0098d7646f7e6239f9c44f3ae538ed819272bcdd7d",
|
||||
"size": 3337216,
|
||||
"path": "KSwitcher.Screenshot.exe"
|
||||
},
|
||||
{
|
||||
"sha256": "546dcfb34f4bcb7765152ab345ffca99b54b4f77445f7cd50379e07e75d4b048",
|
||||
"sha256": "abde48d42d1bd4a5968a682a688fab201bd16fcb21d11271c88dc3c0a349ad43",
|
||||
"size": 3738112,
|
||||
"path": "KSwitcher.Files.exe"
|
||||
},
|
||||
@@ -162,5 +160,7 @@
|
||||
"size": 2796,
|
||||
"path": "tools/StayHere-README.md"
|
||||
}
|
||||
]
|
||||
],
|
||||
"version": "0.6.99",
|
||||
"schema": 1
|
||||
}
|
||||
+3
-3
@@ -9,8 +9,8 @@ IDC_SCREENSHOT_PENCIL CURSOR "icons/lucide/pencil.cur"
|
||||
1 RT_MANIFEST "app.manifest"
|
||||
201 RCDATA "update.ps1"
|
||||
1 VERSIONINFO
|
||||
FILEVERSION 0,6,98,0
|
||||
PRODUCTVERSION 0,6,98,0
|
||||
FILEVERSION 0,6,99,0
|
||||
PRODUCTVERSION 0,6,99,0
|
||||
FILEOS VOS_NT_WINDOWS32
|
||||
FILETYPE VFT_APP
|
||||
BEGIN
|
||||
@@ -20,7 +20,7 @@ BEGIN
|
||||
BEGIN
|
||||
VALUE "FileDescription", "KSwitcher — native keyboard and clipboard utility"
|
||||
VALUE "ProductName", "KSwitcher"
|
||||
VALUE "FileVersion", "0.6.98"
|
||||
VALUE "FileVersion", "0.6.99"
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
|
||||
+22
-17
@@ -1241,6 +1241,23 @@ bool submitTerminalCommand(const Panel &panel,const std::wstring &value)
|
||||
return true;
|
||||
}
|
||||
|
||||
void runCommandLine()
|
||||
{
|
||||
const auto value=terminalInputText();
|
||||
if(!submitTerminalCommand(panels[active],value)) return;
|
||||
if(value.find_first_not_of(L" \t\r\n")!=value.npos)
|
||||
{
|
||||
rememberCommand(value);
|
||||
if(!terminalVisible && terminalRows==0)
|
||||
{
|
||||
terminalRows=5;
|
||||
layout(GetParent(terminalInput));
|
||||
}
|
||||
}
|
||||
terminalHistoryIndex=terminalHistory.size();
|
||||
SetWindowTextW(terminalInput,L"");
|
||||
}
|
||||
|
||||
LRESULT CALLBACK terminalInputKeys(HWND input,UINT message,WPARAM wp,LPARAM lp,UINT_PTR,DWORD_PTR)
|
||||
{
|
||||
if(message==WM_COPY || (message==WM_CHAR && wp==3))
|
||||
@@ -1281,20 +1298,6 @@ LRESULT CALLBACK terminalInputKeys(HWND input,UINT message,WPARAM wp,LPARAM lp,U
|
||||
SendMessageW(input,EM_REPLACESEL,TRUE,reinterpret_cast<LPARAM>(L""));
|
||||
return 0;
|
||||
}
|
||||
if(message==WM_CHAR && wp==VK_RETURN)
|
||||
{
|
||||
if(!terminalVisible && !GetWindowTextLengthW(input))
|
||||
{
|
||||
SendMessageW(panels[active].list,WM_KEYDOWN,VK_RETURN,lp);
|
||||
return 0;
|
||||
}
|
||||
const auto value=terminalInputText();
|
||||
if(!submitTerminalCommand(panels[active],value)) return 0;
|
||||
if(value.find_first_not_of(L" \t\r\n")!=std::wstring::npos) rememberCommand(value);
|
||||
terminalHistoryIndex=terminalHistory.size();
|
||||
SetWindowTextW(input,L"");
|
||||
return 0;
|
||||
}
|
||||
if(message==WM_KEYDOWN && !terminalVisible && wp==VK_TAB)
|
||||
{
|
||||
activatePanel(1-active);
|
||||
@@ -5520,9 +5523,9 @@ int WINAPI wWinMain(HINSTANCE instance, HINSTANCE, PWSTR, int show)
|
||||
GetFocus()==terminalInput)
|
||||
message.hwnd=terminalInput;
|
||||
if(message.message==WM_KEYDOWN && message.wParam==VK_RETURN &&
|
||||
(GetKeyState(VK_SHIFT)&0x8000) && !(GetKeyState(VK_CONTROL)&0x8000) &&
|
||||
!(GetKeyState(VK_CONTROL)&0x8000) &&
|
||||
!(GetKeyState(VK_MENU)&0x8000) && !(GetKeyState(VK_LWIN)&0x8000) &&
|
||||
!(GetKeyState(VK_RWIN)&0x8000) && !copyInProgress && !terminalVisible &&
|
||||
!(GetKeyState(VK_RWIN)&0x8000) && !copyInProgress &&
|
||||
!commandHistoryWindow && !FilesModalDialog::activeFor(window) &&
|
||||
!IsWindowVisible(menuBar) && !IsWindowVisible(picker) &&
|
||||
(message.hwnd==terminalInput || message.hwnd==panels[0].list || message.hwnd==panels[1].list))
|
||||
@@ -5530,7 +5533,9 @@ int WINAPI wWinMain(HINSTANCE instance, HINSTANCE, PWSTR, int show)
|
||||
if(!(message.lParam & (1LL<<30)))
|
||||
{
|
||||
closePanelSearch();
|
||||
openSelectedWithSystem(panels[active]);
|
||||
if(terminalVisible || GetWindowTextLengthW(terminalInput)) runCommandLine();
|
||||
else if(GetKeyState(VK_SHIFT)&0x8000) openSelectedWithSystem(panels[active]);
|
||||
else enter(panels[active]);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
#include "platform.h"
|
||||
namespace ks
|
||||
{
|
||||
inline constexpr wchar_t AppVersion[] = L"0.6.98";
|
||||
inline constexpr wchar_t AppVersion[] = L"0.6.99";
|
||||
inline constexpr UINT UpdateMessage = WM_APP + 7;
|
||||
inline constexpr UINT UpdateCheckIntervalMs = 6 * 60 * 60 * 1000;
|
||||
inline constexpr UINT UpdateNotificationRetryMs = 5 * 60 * 1000;
|
||||
|
||||
@@ -209,14 +209,10 @@ try {
|
||||
Wait-Until 'Files command line focused for document Shift+Enter' {
|
||||
[FilesActivationUi]::Focus($window) -eq $inputBox
|
||||
}
|
||||
[void][FilesActivationUi]::Write($inputBox,0x0C,[IntPtr]::Zero,'unsubmitted command')
|
||||
$keys.SendKeys('+{ENTER}')
|
||||
Wait-Until 'Shift+Enter invoking the default Windows file association' {
|
||||
(Test-Path -LiteralPath "$document.opened") -and [IO.File]::ReadAllText("$document.opened") -eq 'opened'
|
||||
}
|
||||
if((Read-Text $inputBox) -cne 'unsubmitted command'){
|
||||
throw 'Shift+Enter changed the draft command.'
|
||||
}
|
||||
Wait-Until 'Files active for plain Enter' { [FilesActivationUi]::Activate($window) }
|
||||
[void][FilesActivationUi]::Write($inputBox,0x0C,[IntPtr]::Zero,'')
|
||||
Remove-Item -LiteralPath "$document.opened"
|
||||
@@ -225,6 +221,32 @@ try {
|
||||
(Test-Path -LiteralPath "$document.opened") -and [IO.File]::ReadAllText("$document.opened") -eq 'opened'
|
||||
}
|
||||
Write-Output 'Verified Shift+Enter opens folders in Explorer. Both Enter and Shift+Enter invoke the default file action.'
|
||||
Remove-Item -LiteralPath "$document.opened"
|
||||
foreach($case in @(
|
||||
@{Name='enter-panes'; Keys='{ENTER}'},
|
||||
@{Name='shift-enter-panes'; Keys='+{ENTER}'},
|
||||
@{Name='enter-terminal'; Keys='{ENTER}'; HidePanes=$true},
|
||||
@{Name='shift-enter-terminal'; Keys='+{ENTER}'}
|
||||
)) {
|
||||
Wait-Until 'Files command line active' {
|
||||
[FilesActivationUi]::Activate($window) -and [FilesActivationUi]::Focus($window) -eq $inputBox
|
||||
}
|
||||
if($case.HidePanes){
|
||||
$keys.SendKeys('^o')
|
||||
Wait-Until 'file panes hidden' { ![FilesActivationUi]::IsWindowVisible($left) }
|
||||
}
|
||||
$marker=Join-Path $root "$($case.Name).txt"
|
||||
$command="[IO.File]::AppendAllText('$($marker.Replace("'","''"))','executed')"
|
||||
[void][FilesActivationUi]::Write($inputBox,0x0C,[IntPtr]::Zero,$command)
|
||||
$keys.SendKeys($case.Keys)
|
||||
Wait-Until "$($case.Name) running the command" {
|
||||
(Test-Path -LiteralPath $marker) -and [IO.File]::ReadAllText($marker) -ceq 'executed'
|
||||
}
|
||||
if((Read-Text $inputBox) -or (Test-Path -LiteralPath "$document.opened")){
|
||||
throw "$($case.Name) did not give the command line priority."
|
||||
}
|
||||
}
|
||||
Write-Output 'Verified command-line priority for Enter and Shift+Enter with panels visible and hidden.'
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user