hyperlist 1.4.1 → 1.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -0
- data/hyperlist +11 -45
- data/hyperlist.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e6315c6d2ea2f89a99a74e0d1b9e06b0f0aee972f53f8b9b098e0bbe1d38545
|
4
|
+
data.tar.gz: 21e2b64e3c54fc9969114c6382b3bbe50526022aab77edc13ea1d8b9ebdb562f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc3ffc31138c89a0bf68ea1636297c7f261884f4e6b734e0dd96b176b85fd53d361fed3f7889d850ace5d7dde70d040e5d6eecb4b339d596b6a7017085c6ee02
|
7
|
+
data.tar.gz: d5a210e0c40b9f0eccae343c698ef694d418e2feda327b5e341bad60df3d1e24f4e0917b5b3e4920a5db047f98d271596f26a36130f8c273bbc483da9462639e
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,20 @@
|
|
2
2
|
|
3
3
|
All notable changes to the HyperList Ruby TUI will be documented in this file.
|
4
4
|
|
5
|
+
## [1.4.2] - 2025-08-29
|
6
|
+
|
7
|
+
### Fixed
|
8
|
+
- **Help screen improvements**
|
9
|
+
- Fixed help screen crash issue with CONFIGURATION section
|
10
|
+
- Improved alignment of :set commands in help
|
11
|
+
- Added working CONFIGURATION section with proper formatting
|
12
|
+
|
13
|
+
### Changed
|
14
|
+
- **Code cleanup**
|
15
|
+
- Removed debug logging code
|
16
|
+
- Cleaned up unused variables
|
17
|
+
- Improved code consistency
|
18
|
+
|
5
19
|
## [1.4.1] - 2025-08-29
|
6
20
|
|
7
21
|
### Fixed
|
data/hyperlist
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
# Check for help/version BEFORE loading any libraries
|
8
8
|
if ARGV[0] == '-h' || ARGV[0] == '--help'
|
9
9
|
puts <<~HELP
|
10
|
-
HyperList v1.4.
|
10
|
+
HyperList v1.4.2 - Terminal User Interface for HyperList files
|
11
11
|
|
12
12
|
USAGE
|
13
13
|
hyperlist [OPTIONS] [FILE]
|
@@ -72,7 +72,7 @@ class HyperListApp
|
|
72
72
|
include Rcurses::Input
|
73
73
|
include Rcurses::Cursor
|
74
74
|
|
75
|
-
VERSION = "1.4.
|
75
|
+
VERSION = "1.4.2"
|
76
76
|
|
77
77
|
def initialize(filename = nil)
|
78
78
|
@filename = filename ? File.expand_path(filename) : nil
|
@@ -2794,13 +2794,8 @@ class HyperListApp
|
|
2794
2794
|
end
|
2795
2795
|
|
2796
2796
|
def show_help
|
2797
|
-
|
2798
|
-
|
2799
|
-
help_lines = []
|
2800
|
-
|
2801
|
-
# Debug logging
|
2802
|
-
debug_log = File.open("/tmp/hyperlist_help_debug.log", "w") rescue nil
|
2803
|
-
debug_log.puts "show_help called at #{Time.now}" if debug_log
|
2797
|
+
# Build help text using consistent formatting
|
2798
|
+
help_lines = []
|
2804
2799
|
help_lines << " Press #{"?".fg("10")} for full documentation, #{"UP/DOWN".fg("10")} to scroll, or any other key to return"
|
2805
2800
|
help_lines << ""
|
2806
2801
|
help_lines << "#{"HYPERLIST KEY BINDINGS".b}"
|
@@ -2859,27 +2854,13 @@ class HyperListApp
|
|
2859
2854
|
help_lines << help_line("#{":dt".fg("10")}", "Delete template", "#{":lt".fg("10")}", "List user templates")
|
2860
2855
|
help_lines << ""
|
2861
2856
|
|
2862
|
-
|
2863
|
-
|
2864
|
-
|
2865
|
-
|
2866
|
-
|
2867
|
-
|
2868
|
-
|
2869
|
-
debug_log.puts "Line1: #{line1.inspect}" if debug_log
|
2870
|
-
help_lines << line1
|
2871
|
-
|
2872
|
-
line2 = help_line("#{":set option=val".fg("10")}", "Set option")
|
2873
|
-
debug_log.puts "Line2: #{line2.inspect}" if debug_log
|
2874
|
-
help_lines << line2
|
2875
|
-
|
2876
|
-
help_lines << ""
|
2877
|
-
debug_log.puts "CONFIGURATION section complete" if debug_log
|
2878
|
-
rescue => e
|
2879
|
-
debug_log.puts "Error in CONFIGURATION: #{e.message}" if debug_log
|
2880
|
-
debug_log.puts e.backtrace.join("\n") if debug_log
|
2881
|
-
# Fall through and continue without config section
|
2882
|
-
end
|
2857
|
+
help_lines << "#{"CONFIGURATION".fg("14")}"
|
2858
|
+
help_lines << help_line("#{":set".fg("10")}", "Show all settings")
|
2859
|
+
help_lines << help_line("#{":set o".fg("10")}", "Show option value")
|
2860
|
+
help_lines << help_line("#{":set o=val".fg("10")}", "Set option value")
|
2861
|
+
help_lines << help_line("#{"Options:".fg("245")}", "theme, wrap, fold_level")
|
2862
|
+
help_lines << help_line("#{"".fg("245")}", "show_numbers, tab_width")
|
2863
|
+
help_lines << ""
|
2883
2864
|
|
2884
2865
|
help_lines << "#{"HELP & QUIT".fg("14")}"
|
2885
2866
|
help_lines << help_line("#{"?".fg("10")}", "This help", "#{"??".fg("10")}", "Full documentation")
|
@@ -2895,9 +2876,6 @@ class HyperListApp
|
|
2895
2876
|
|
2896
2877
|
help = help_lines.join("\n")
|
2897
2878
|
|
2898
|
-
debug_log.puts "Help generation complete, #{help_lines.length} lines" if debug_log
|
2899
|
-
debug_log.close if debug_log
|
2900
|
-
|
2901
2879
|
# Store current state
|
2902
2880
|
saved_items = @items.dup
|
2903
2881
|
saved_current = @current
|
@@ -2951,18 +2929,6 @@ class HyperListApp
|
|
2951
2929
|
@current = saved_current
|
2952
2930
|
@offset = saved_offset
|
2953
2931
|
@modified = saved_modified
|
2954
|
-
|
2955
|
-
rescue => e
|
2956
|
-
# Log the error and show a simple message
|
2957
|
-
File.open("/tmp/hyperlist_help_crash.log", "w") do |f|
|
2958
|
-
f.puts "Help crashed at #{Time.now}"
|
2959
|
-
f.puts "Error: #{e.message}"
|
2960
|
-
f.puts "Backtrace:"
|
2961
|
-
f.puts e.backtrace.join("\n")
|
2962
|
-
end rescue nil
|
2963
|
-
|
2964
|
-
@message = "Help error logged to /tmp/hyperlist_help_crash.log"
|
2965
|
-
end
|
2966
2932
|
end
|
2967
2933
|
|
2968
2934
|
def show_documentation
|
data/hyperlist.gemspec
CHANGED