Bugfix message styling, save tailLine setting
This commit is contained in:
		| @@ -255,6 +255,12 @@ class Editor | |||||||
|                     $this->showMessage("Toggle collapse icon before item (b)"); |                     $this->showMessage("Toggle collapse icon before item (b)"); | ||||||
|                     break; |                     break; | ||||||
|  |  | ||||||
|  |                 case "t": | ||||||
|  |                     Settings::$tailLine = !Settings::$tailLine; | ||||||
|  |                     $this->redrawEditor(); | ||||||
|  |                     $this->showMessage("Toggle tail line (t)"); | ||||||
|  |                     break; | ||||||
|  |      | ||||||
|                 case "+": |                 case "+": | ||||||
|                     $node = $this->list->getNodeForIndex($this->currentRow); |                     $node = $this->list->getNodeForIndex($this->currentRow); | ||||||
|                     if ($node instanceof CollapsibleNode) { |                     if ($node instanceof CollapsibleNode) { | ||||||
| @@ -840,7 +846,7 @@ class Editor | |||||||
|     { |     { | ||||||
|         [$w,$h] = $this->term->getSize(); |         [$w,$h] = $this->term->getSize(); | ||||||
|         $this->term->setCursor(1, $h); |         $this->term->setCursor(1, $h); | ||||||
|         echo $message."\e[K\e[0m"; |         echo "\e[0m".$message."\e[K\e[0m"; | ||||||
|  |  | ||||||
|     } |     } | ||||||
|  |  | ||||||
|   | |||||||
| @@ -24,6 +24,7 @@ class Settings | |||||||
|             self::$compactGroups = $data->compactGroups ?? false; |             self::$compactGroups = $data->compactGroups ?? false; | ||||||
|             self::$indentationGuides = $data->indentationGuides ?? true; |             self::$indentationGuides = $data->indentationGuides ?? true; | ||||||
|             self::$collapseBefore = $data->collapseBefore ?? true; |             self::$collapseBefore = $data->collapseBefore ?? true; | ||||||
|  |             self::$tailLine = $data->tailLine ?? true; | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
|  |  | ||||||
| @@ -35,6 +36,7 @@ class Settings | |||||||
|             'indentationGuides' => self::$indentationGuides, |             'indentationGuides' => self::$indentationGuides, | ||||||
|             'collapseBefore' => self::$collapseBefore, |             'collapseBefore' => self::$collapseBefore, | ||||||
|             'highlightRow' => self::$highlightRow, |             'highlightRow' => self::$highlightRow, | ||||||
|  |             'tailLine' => self::$tailLine, | ||||||
|         ], JSON_UNESCAPED_SLASHES|JSON_PRETTY_PRINT)."\n"; |         ], JSON_UNESCAPED_SLASHES|JSON_PRETTY_PRINT)."\n"; | ||||||
|         @file_put_contents($filename, $data); |         @file_put_contents($filename, $data); | ||||||
|     } |     } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user