ruby-shell 2.2 → 2.3

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 (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/rsh +3 -2
  3. metadata +2 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 16401f8cae0a48a872039d91e89c0dfc441e1a6e06eba0c27d5035176daa6c24
4
- data.tar.gz: df7f01fe21f17b7e38578c5ef539532ea37f0af23f9c35b2cbcc214cfbe8624c
3
+ metadata.gz: 430ac5700dcc8216283045a1d608e0c53982018c39797921b39eb262e8df22bb
4
+ data.tar.gz: 8af1ec08df62ec8c79f1f1177ee8629fd388dbf15975a827296ec99894b77fdd
5
5
  SHA512:
6
- metadata.gz: 771ef428fc45880ca4bcfc954b4296a7d1cb98903b038a85aa8d959e2c1f0b5c7f568060b47adc7068020543fd1663a6473cfbf04ea636b7038e467115f89e13
7
- data.tar.gz: 69be18e3477784987d41b16b8376894a43d8efbe0e1313b36926342abece6769750a8965046f848bd138f5680d4a214cb9a1f08c93bbe99ad803f990030bbb94
6
+ metadata.gz: 1182b247e8c1128e748d2c24a3f1066e10be2c0e561b50ed02df1b39cbef77450035fa383f9fdb4da50552de56b867201acb9f6e3e8797034da1c9a437dd96e2
7
+ data.tar.gz: 9b461d925debaed83878c368635c4b6a3b1a1543984896501ef43d5441d4c3b67667ffe4aae2cc0958ea8c82c226e7c46834352de90b3be56c98dcb0b17ed549
data/bin/rsh CHANGED
@@ -8,7 +8,7 @@
8
8
  # Web_site: http://isene.com/
9
9
  # Github: https://github.com/isene/rsh
10
10
  # License: Public domain
11
- @version = "2.2"
11
+ @version = "2.3"
12
12
 
13
13
  # MODULES, CLASSES AND EXTENSIONS
14
14
  class String # Add coloring to strings (with escaping for Readline)
@@ -416,7 +416,8 @@ def tab(type)
416
416
  @postab = @history[0][@pos..].to_s # Extract the current line from cursor to end
417
417
  @c_row, @c_col = @c.pos # Get cursor position
418
418
  @tabstr = @pretab.split(/[|, ]/).last.to_s # Get the sustring that is being tab completed
419
- @tabstr = "" if @pretab[-1] =~ /[ |]/
419
+ @tabstr = "" if @pretab[-1] =~ /[ |]/ # Tab from nothing if tabbing starts with space or pipe
420
+ @tabstr = @pretab if type == "hist" # Searching for matches with whole string in history
420
421
  @pretab = @pretab.delete_suffix(@tabstr)
421
422
  type = "switch" if @tabstr[0] == "-"
422
423
  while chr != "ENTER"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-shell
3
3
  version: !ruby/object:Gem::Version
4
- version: '2.2'
4
+ version: '2.3'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geir Isene
@@ -13,8 +13,7 @@ dependencies: []
13
13
  description: 'A shell written in Ruby with extensive tab completions, aliases/nicks,
14
14
  history, syntax highlighting, theming, auto-cd, auto-opening files and more. In
15
15
  continual development. New in 2.0: Full rewrite of tab completion engine. Lots of
16
- other bug fixes. 2.1: Better error handling. 2.2: Fixed pasting to commandline and
17
- reading of PATH'
16
+ other bug fixes. 2.3: Better history search.'
18
17
  email: g@isene.com
19
18
  executables:
20
19
  - rsh