cani 0.5.5 → 0.5.6
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/README.md +9 -0
- data/lib/cani.rb +1 -1
- data/lib/cani/fzf.rb +1 -1
- data/lib/cani/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7a2a9a1ade58c61f500567b529e8bf04dfb8c47f45cf560af55aae8f68948a12
|
|
4
|
+
data.tar.gz: b15bd942b13a6ff8b345a1d2f9ec9dc7c1709cf1bcb45322016497586d696016
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ca047850e4ef78cd88f3db162b35bfff5ddc9b4ed70b51e2fe7de1120effa3f7e6497c48c5dfd138a2a14adf3bff9fd70a371702ebd3dd8e475d9473f7321d44
|
|
7
|
+
data.tar.gz: 904b5aba4262ad983879f850d3ce08b733c1f7e41c51cf004a64001c8daff021a89dc4a1dc12c963eb5a27c33f49ac9d74707b810406caafd3b9e74ff8060c3f
|
data/README.md
CHANGED
|
@@ -10,6 +10,15 @@ on a regular interval together with completions.
|
|
|
10
10
|
|
|
11
11
|
## Latest changes
|
|
12
12
|
|
|
13
|
+
### 24-07-2019 VERSION 0.5.6
|
|
14
|
+
|
|
15
|
+
- Fix issue where `cani` would crash when used without arguments. Original behavior of showing `cani help` in that case is restored. ([#14](../../pull/14))
|
|
16
|
+
- Disable FZF's preview window using `--no-preview` to override `FZF_DEFAULT_OPTS` ([#12](../../issues/12))
|
|
17
|
+
|
|
18
|
+
### 06-07-2019 VERSION 0.5.5
|
|
19
|
+
|
|
20
|
+
- Added ability to (permanently) toggle between enabling and disabling of automatic shell configuration injection
|
|
21
|
+
|
|
13
22
|
### 06-10-2018 VERSION 0.5.4
|
|
14
23
|
|
|
15
24
|
- Fixed issue where `system` prints the version of fzf before running the command.
|
data/lib/cani.rb
CHANGED
|
@@ -24,7 +24,7 @@ module Cani
|
|
|
24
24
|
end
|
|
25
25
|
|
|
26
26
|
def self.exec!(command, *args_and_options)
|
|
27
|
-
return config if command
|
|
27
|
+
return config if command&.start_with? '-'
|
|
28
28
|
|
|
29
29
|
args = args_and_options.reject { |arg| arg.start_with? '-' }
|
|
30
30
|
command = :help unless command && respond_to?(command)
|
data/lib/cani/fzf.rb
CHANGED
|
@@ -13,7 +13,7 @@ module Cani
|
|
|
13
13
|
header = ohdr.is_a?(Array) ? [:cani, *ohdr].map { |v| v.to_s.downcase }.join(':')
|
|
14
14
|
: 'cani:' + ohdr.to_s
|
|
15
15
|
|
|
16
|
-
IO.popen("fzf --ansi --header=\"[#{header}]\" #{query}", 'r+') do |io|
|
|
16
|
+
IO.popen("fzf --ansi --no-preview --header=\"[#{header}]\" #{query}", 'r+') do |io|
|
|
17
17
|
io.write rows
|
|
18
18
|
io.close_write
|
|
19
19
|
io.read
|
data/lib/cani/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cani
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sidney Liebrand
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-07-
|
|
11
|
+
date: 2019-07-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: colorize
|