diff --git a/README.md b/README.md index ffac8d8..7c47e8f 100644 --- a/README.md +++ b/README.md @@ -96,7 +96,7 @@ Or type "projman" into terminal, Or choose the name of the program "Projman" on - Ctrl-V - Paste text from buffer - Alt-P - Show/Hide the file tree panel -- Alt-W - Delete the word +- Alt-W - Delete the current word - Alt-E - Delete text from current position to end of line - Alt-B - Delete text from current position to begin of line - Alt-R - Delete current line diff --git a/lib/git.tcl b/lib/git.tcl index a53839b..2c3ed63 100644 --- a/lib/git.tcl +++ b/lib/git.tcl @@ -92,8 +92,11 @@ namespace eval Git { global cfgVariables activeProject set cmd exec set d [pwd] - if {$activeProject ne ""} { + if {$activeProject ne "" && [file isdirectory $activeProject] == 1} { cd $activeProject + if ![file exists .git] { + return + } } else { return "" } @@ -127,7 +130,14 @@ namespace eval Git { proc Status {} { global cfgVariables activeProject - cd $activeProject + if [file isdirectory $activeProject] { + cd $activeProject + if ![file exists .git] { + return + } + } else { + return false + } set cmd exec lappend cmd $cfgVariables(gitCommand) lappend cmd "status" diff --git a/projman.tcl b/projman.tcl index 784bc33..783f7f9 100755 --- a/projman.tcl +++ b/projman.tcl @@ -10,7 +10,7 @@ exec wish "$0" -- "$@" ###################################################### # Version: 2.0.0 # Release: alpha -# Build: 28112022130305 +# Build: 28112022152737 ###################################################### # определим текущую версию, релиз и т.д.