giterm 1.1.1 → 2.0.1

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 (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -2
  3. data/giterm +14 -9
  4. metadata +7 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2012953b93f04a86f90934c30f6329d026b3aceac176ce69f50aa00f962f45a7
4
- data.tar.gz: 7f71c894db4123c5d7dc6d28ebb18717e207bc462c8ee6d9d4de53559b840b7a
3
+ metadata.gz: 229379dde6560a251c0f3fa707cdff309ce89f88995de14e99e45677555b4d68
4
+ data.tar.gz: 07f66329742e50a817683c73a196989c400b6dbf6083eb7e2eccfaa2108052a4
5
5
  SHA512:
6
- metadata.gz: f73797cd5e08b42a23d50e5e70092b63505e6c412e679dd6cc3532de0887563a359a5693c96377cc0d01516c027ff8a40bd6b29041816c168b65a23a32a5ce04
7
- data.tar.gz: 7a1881711325995593be38b5f339d534cc7003642b2e78dd8bafd8d9dd3c3384f078b1ddb83c97293961de52a3f5c679d8b73e339f48961d181219b6849d6129
6
+ metadata.gz: 47193398f0cb94ef112bad6d2619928b56566b5c00befb9a5a67432e6d29ac13f18a020a6a88dbc540d18d5e55773ebac124813e4be2746b4893f89a216dbbb7
7
+ data.tar.gz: 4c6e0492c0b70772b42fb494cce31e3108fab5e0fa7c642327f61941c8fc89c9ae908c300e3cb516e09d25aa0673eda73cfad8a1154e3200a7dbb24b372039da
data/README.md CHANGED
@@ -1,4 +1,10 @@
1
- # GiTerm - Git & GitHub Terminal User Interface
1
+ # GiTerm - Git & GitHub Terminal User Interface
2
+
3
+ <img src="img/giterm_logo.svg" align="left" width="150" height="150">
4
+
5
+ [![License](https://img.shields.io/badge/License-Public%20Domain-brightgreen.svg)](https://unlicense.org/)
6
+ [![GitHub stars](https://img.shields.io/github/stars/isene/GiTerm.svg)](https://github.com/isene/GiTerm/stargazers)
7
+ [![Stay Amazing](https://img.shields.io/badge/Stay-Amazing-blue.svg)](https://isene.org)
2
8
 
3
9
  ![Ruby](https://img.shields.io/badge/language-Ruby-red) [![Gem Version](https://badge.fury.io/rb/giterm.svg)](https://badge.fury.io/rb/giterm) ![License](https://img.shields.io/badge/license-Public_Domain-green)
4
10
 
@@ -201,4 +207,4 @@ Public Domain - Use freely for any purpose.
201
207
  ## See Also
202
208
 
203
209
  - [RTFM](https://github.com/isene/RTFM) - Ruby Terminal File Manager
204
- - [rcurses](https://github.com/isene/rcurses) - Ruby curses library used by GiTerm
210
+ - [rcurses](https://github.com/isene/rcurses) - Ruby curses library used by GiTerm
data/giterm CHANGED
@@ -7,7 +7,7 @@
7
7
  # Author: Geir Isene <g@isene.com> (adapted from RTFM)
8
8
  # Github: https://github.com/isene/GiTerm
9
9
  # License: Public domain
10
- @version = '1.1.0'
10
+ @version = '2.0.1'
11
11
 
12
12
  # SAVE & STORE TERMINAL {{{1
13
13
  ORIG_STTY = `stty -g 2>/dev/null`.chomp rescue ''
@@ -236,9 +236,9 @@ def handle_popup_scrolling(popup)
236
236
  popup.linedown
237
237
  when 'k', 'UP'
238
238
  popup.lineup
239
- when 'PgDOWN'
239
+ when 'PgDOWN', 'f' # 'f' as alternative for keyboards without PgDn
240
240
  popup.pagedown
241
- when 'PgUP'
241
+ when 'PgUP', 'F' # 'F' as alternative for keyboards without PgUp
242
242
  popup.pageup
243
243
  when 'ENTER', ' ', 'q', 'ESCAPE'
244
244
  break
@@ -310,8 +310,8 @@ end
310
310
  l/RIGHT = Enter/view details
311
311
  g/HOME = Go to top
312
312
  G/END = Go to bottom
313
- PgDown = Page down in right pane
314
- PgUp = Page up in right pane
313
+ f/PgDn = Page down in left pane
314
+ F/PgUp = Page up in left pane
315
315
  S-RIGHT = Page down in right pane
316
316
  S-LEFT = Page up in right pane
317
317
 
@@ -416,7 +416,7 @@ end
416
416
 
417
417
  def update_bottom_legends
418
418
  # Show key legends in bottom pane
419
- legends = 'j/k:Nav PgUp/PgDn:Page g/G:Top/End J/K:Scroll d:Diff l:Log b:Branches TAB:GitHub q:Quit'
419
+ legends = 'j/k:Nav f/F:Page g/G:Top/End J/K:Scroll d:Diff l:Log b:Branches TAB:GitHub q:Quit'
420
420
  @p_bottom.say(legends)
421
421
  end
422
422
 
@@ -1707,7 +1707,7 @@ def handle_key(chr)
1707
1707
 
1708
1708
  # Use fast update for major jumps to avoid extended fetch delays
1709
1709
  update_right_pane(true)
1710
- when 'PgDOWN'
1710
+ when 'PgDOWN', 'f' # 'f' as alternative to PageDown for keyboards without PgDn key
1711
1711
  # Page down in left pane
1712
1712
  old_index = @index
1713
1713
  @index = [@index + @p_left.h - 3, @max_index].min
@@ -1743,7 +1743,7 @@ def handle_key(chr)
1743
1743
 
1744
1744
  # Show basic info immediately, schedule extended fetch for when user pauses
1745
1745
  update_right_pane(true)
1746
- when 'PgUP'
1746
+ when 'PgUP', 'F' # 'F' as alternative to PageUp for keyboards without PgUp key
1747
1747
  # Page up in left pane
1748
1748
  old_index = @index
1749
1749
  @index = [@index - @p_left.h + 3, @min_index].max
@@ -2257,7 +2257,7 @@ def update_right_pane(fast_update = false)
2257
2257
  end
2258
2258
  end
2259
2259
  when :log
2260
- show_commit_details(@log_entries[@index]) if @index >= 0 && @index < @log_entries.length
2260
+ show_commit_details(@log_entries[@index][:hash]) if @index >= 0 && @index < @log_entries.length
2261
2261
  when :branches
2262
2262
  # Handle branch details if needed
2263
2263
  when :github_repos
@@ -2612,6 +2612,11 @@ begin
2612
2612
  load_config
2613
2613
  log_debug('Config loaded')
2614
2614
 
2615
+ # Initialize rcurses (required for rcurses 6.0.0+)
2616
+ log_debug('Initializing rcurses...')
2617
+ Rcurses.init!
2618
+ log_debug('Rcurses initialized')
2619
+
2615
2620
  log_debug('Initializing windows...')
2616
2621
  init_windows
2617
2622
  log_debug('Windows initialized')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: giterm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geir Isene
8
8
  autorequire:
9
9
  bindir: "."
10
10
  cert_chain: []
11
- date: 2025-08-07 00:00:00.000000000 Z
11
+ date: 2025-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rcurses
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '5.0'
19
+ version: '6.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '5.0'
26
+ version: '6.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -52,10 +52,10 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '13.0'
55
- description: GiTerm is a powerful terminal interface for Git and GitHub, providing
55
+ description: 'GiTerm is a powerful terminal interface for Git and GitHub, providing
56
56
  an intuitive TUI for repository management, issue tracking, and pull request handling.
57
- Now works in non-git directories! Features include GitHub integration, enhanced
58
- repository overview, smart fetching, and vim-like navigation.
57
+ Version 2.0.1: Fixed macOS log display issue and added alternative keybindings for
58
+ PageUp/PageDown.'
59
59
  email:
60
60
  - g@isene.com
61
61
  executables: