Compare commits

5 Commits

6 changed files with 41 additions and 16 deletions

10
debian/changelog vendored
View File

@@ -1,3 +1,13 @@
projman (2.0.0-alpha24) stable; urgency=medium
* Добавил фокус ввода на 'терминал' если он открыт во вкладке (при переключении вкладок).
* Исправил вставку кавычек при выделении текста
* Исправил ошибку при отправке сигналов несуществующему процессу.
* Уменьшил всплывающее меню: вынес менюшки Файл и Вид в подменю.
* Изменил команду загрузки пакета в репу
-- svk <svk@nuk-svk.ru> Wed, 21 Jan 2026 16:35:06 +0300
projman (2.0.0-alpha23) stable; urgency=medium projman (2.0.0-alpha23) stable; urgency=medium
* Исправлен флаг модификации при открытии файла * Исправлен флаг модификации при открытии файла

View File

@@ -6,7 +6,6 @@
###################################################### ######################################################
# Editor module # Editor module
###################################################### ######################################################
namespace eval Editor { namespace eval Editor {
variable selectionTex variable selectionTex
# Set the editor option # Set the editor option
@@ -928,7 +927,9 @@ namespace eval Editor {
} }
if {$posNum == $posBegin} { if {$posNum == $posBegin} {
if {$symbol == {"} || $symbol == {_}} { if {$symbol == {"} || $symbol == {_}} {
$txt insert $lineEnd.$posEnd "$selText$symbol" $txt tag remove sel $lineBegin.$posBegin $lineEnd.$posEnd
$txt insert $lineEnd.$posEnd "$symbol"
# $txt tag add sel "$lineBegin.$posBegin + 1 char" "$lineEnd.$posEnd + 1 char"
} else { } else {
$txt insert $lineEnd.$posEnd "$symbol" $txt insert $lineEnd.$posEnd "$symbol"
} }
@@ -937,7 +938,7 @@ namespace eval Editor {
if {$posBegin == 0} { if {$posBegin == 0} {
$txt insert $pos "$symbol" $txt insert $pos "$symbol"
} else { } else {
$txt insert "$pos + 1 chars" "$symbol" $txt insert "$pos + 0 chars" "$symbol"
} }
} }
$txt highlight $lineBegin.$posBegin $lineEnd.end $txt highlight $lineBegin.$posBegin $lineEnd.end
@@ -1604,7 +1605,7 @@ namespace eval Editor {
} }
set frmText [ttk::frame $w.frmText2 -border 1] set frmText [ttk::frame $w.frmText2 -border 1]
$w.panelTxt add $frmText -weight 1 puts "SplitEditorForExecute: $w"
# focus -force $frmText.t.t # focus -force $frmText.t.t
Execute $fileFullPath $frmText $w Execute $fileFullPath $frmText $w
} }

View File

@@ -143,9 +143,14 @@ pack .frmMenu.mnuHelp -side right
# PopUP menu # PopUP menu
menu .popup menu .popup
GetFileMenu .popup
GetEditMenu .popup GetEditMenu .popup
GetViewMenu .popup .popup add separator
menu .popup.file
.popup add cascade -label [::msgcat::mc "File"] -menu .popup.file
GetFileMenu .popup.file
menu .popup.view
.popup add cascade -label [::msgcat::mc "View"] -menu .popup.view
GetViewMenu .popup.view
set frmTool [ttk::frame .frmBody.frmTool] set frmTool [ttk::frame .frmBody.frmTool]
ttk::panedwindow .frmBody.panel -orient horizontal -style TPanedwindow ttk::panedwindow .frmBody.panel -orient horizontal -style TPanedwindow

View File

@@ -55,11 +55,15 @@ namespace eval NB {
FileOper::Close $w FileOper::Close $w
} else { } else {
set txt [$w select].frmText.t set txt [$w select].frmText.t
if {[winfo exists [$w select].frmText2] == 1} {
focus -force [$w select].frmText2.frame.text.t
} else {
if [winfo exists $txt] { if [winfo exists $txt] {
focus -force $txt.t focus -force $txt.t
} }
} }
} }
}
proc NextTab {w step} { proc NextTab {w step} {
global tree global tree
@@ -85,8 +89,13 @@ namespace eval NB {
Tree::SelectItem $treeItemName Tree::SelectItem $treeItemName
set txt [$w select].frmText.t set txt [$w select].frmText.t
puts "NextTab: [$w select]"
if {[winfo exists [$w select].frmText2] == 1} {
focus -force [$w select].frmText2.frame.text.t
} else {
if [winfo exists $txt] { if [winfo exists $txt] {
focus -force $txt.t focus -force $txt.t
} }
} }
} }
}

View File

@@ -1074,10 +1074,10 @@ proc SendSignal {pid signal} {
if {$tcl_platform(platform) eq "unix"} { if {$tcl_platform(platform) eq "unix"} {
# На Unix-системах # На Unix-системах
switch -- $signal { switch -- $signal {
"SIGINT" { exec kill -INT $pid } ; # Ctrl+C "SIGINT" {catch {exec kill -INT $pid}} ; # Ctrl+C
"SIGTERM" { exec kill -TERM $pid } ; # Завершение "SIGTERM" {catch {exec kill -TERM $pid}} ; # Завершение
"SIGTSTP" { exec kill -TSTP $pid } ; # Ctrl+Z (приостановка) "SIGTSTP" {catch {exec kill -TSTP $pid}} ; # Ctrl+Z (приостановка)
"SIGKILL" { exec kill -KILL $pid } ; # Принудительное завершение "SIGKILL" {catch {exec kill -KILL $pid}} ; # Принудительное завершение
} }
} else { } else {
# На Windows # На Windows

View File

@@ -9,8 +9,8 @@ exec wish8.6 "$0" -- "$@"
# Home page: https://nuk-svk.ru # Home page: https://nuk-svk.ru
###################################################### ######################################################
# Version: 2.0.0 # Version: 2.0.0
# Release: alpha23 # Release: alpha24
# Build: 21012026130048 # Build: 21012026163412
###################################################### ######################################################
# определим текущую версию, релиз и т.д. # определим текущую версию, релиз и т.д.