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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +14 -0
  3. data/hyperlist +11 -45
  4. data/hyperlist.gemspec +1 -1
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3c7c748c4c99992dff3a0d937be828d2cbc14cc433bcf52e5a6d5a277ef51f85
4
- data.tar.gz: 5357c1ab7627f72debeac58e11c6d6c01058ba3835595e5f6f77dd74c20e6882
3
+ metadata.gz: 1e6315c6d2ea2f89a99a74e0d1b9e06b0f0aee972f53f8b9b098e0bbe1d38545
4
+ data.tar.gz: 21e2b64e3c54fc9969114c6382b3bbe50526022aab77edc13ea1d8b9ebdb562f
5
5
  SHA512:
6
- metadata.gz: 8305bcbae20d81c0d96a55d93f36ff4fcecc0ade3982c28871442fe4e9d9369d330df00979d456b3e867d75a47a9e86fd1d2c1476fbdb768a4cbe1fa0e864785
7
- data.tar.gz: c589bb1509e7138a72153d2046e0641d57b643f4f096ae34b00a5e15764042ebdaab53f18219c5952f1a9657f5306e762833f833825dc817f0d9df456ba0f337
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.1 - Terminal User Interface for HyperList files
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.1"
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
- begin
2798
- # Build help text using consistent formatting
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
- # Try adding CONFIGURATION section with error handling
2863
- begin
2864
- debug_log.puts "Starting CONFIGURATION section" if debug_log
2865
- help_lines << "#{"CONFIGURATION".fg("14")}"
2866
- debug_log.puts "Added CONFIGURATION header" if debug_log
2867
-
2868
- line1 = help_line("#{":set".fg("10")}", "Show all settings", "#{":set option".fg("10")}", "Show option value")
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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "hyperlist"
3
- spec.version = "1.4.1"
3
+ spec.version = "1.4.2"
4
4
  spec.authors = ["Geir Isene"]
5
5
  spec.email = ["g@isene.com"]
6
6
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hyperlist
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geir Isene