snibbets 2.0.24 → 2.0.25

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 26658cec9cb3753794a7f34d33e8f22f251096668251eb776e884e5f65834e4b
4
- data.tar.gz: 151eb76ee1036d1724c7618e8c8c1aa454039aeaca90abb58e839e9906d616b0
3
+ metadata.gz: 3b985def8adf2eefbe7b5f52bc67d909a8d156361f72b30e48df434946648490
4
+ data.tar.gz: 146c828808bea3f147e18852a6bcd362dd894a4e451c6abb1dd1ae0fcc8570f7
5
5
  SHA512:
6
- metadata.gz: 30f9cc2d5bf2dd06ddca1abbf7fb7c360811008b3f90f0066661cd57dfac02c936deb6ec5fc08441102bdaba06b9308f003cb7cf0a179788e6a907124ee21e8a
7
- data.tar.gz: bd723669573ace92c3c8b10b8c39c22c0f6483d46e217852788e257cd924ef70c86fb25316b8e9b1a0144409d284947059955088e6b19ccf2ecc198dbd10b89e
6
+ metadata.gz: be4e25292cfd9f4b1d13e67b7e211916a6bff4d6acd231f1c64da927901812226267880dac66b68cdc628b79455fbe4ed9e2a7cae869f24b23a60c8d7d82e234
7
+ data.tar.gz: 864ffc66ca4fccf693743ccc2f02990ba0f6ea804de561471c285d14bb8b48b321d8aba8c397b4c1cd219ff2604a09ff2c4660ad97a7caff4c017a93991af952
data/CHANGELOG.md CHANGED
@@ -1,3 +1,20 @@
1
+ ### 2.0.25
2
+
3
+ 2023-04-16 11:09
4
+
5
+ #### NEW
6
+
7
+ - `--nvultra` will open the selected snippet in nvUltra
8
+
9
+ #### IMPROVED
10
+
11
+ - Use Readline for entering info with `--paste`, allows for better editing experience
12
+ - Allow `--edit` with `--paste` to open the new snippet in your editor immediately
13
+
14
+ #### FIXED
15
+
16
+ - Code indentation with `--paste`
17
+
1
18
  ### 2.0.24
2
19
 
3
20
  2023-04-16 10:49
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- snibbets (2.0.24)
4
+ snibbets (2.0.25)
5
5
  mdless (~> 1.0, >= 1.0.32)
6
6
  tty-reader (~> 0.9, >= 0.9.0)
7
7
  tty-which (~> 0.5, >= 0.5.0)
data/README.md CHANGED
@@ -155,7 +155,7 @@ Snibbet's implementation of Skylighting has limited but better-looking themes, a
155
155
  ### Usage
156
156
 
157
157
  ```
158
- Snibbets v2.0.24
158
+ Snibbets v2.0.25
159
159
 
160
160
  Usage: snibbets [options] query
161
161
  -a, --all If a file contains multiple snippets, output all of them (no menu)
@@ -28,12 +28,12 @@ module Snibbets
28
28
  end
29
29
 
30
30
  def ext_to_lang(ext)
31
- matches = lexers.select { |lex| lex[:extensions].map(&:downcase).include?(ext.downcase) }
31
+ matches = lexers.select { |lex| lex[:extensions]&.include?(ext.downcase) }
32
32
  matches.map { |lex| lex[:lexer] }.first || ext
33
33
  end
34
34
 
35
35
  def lang_to_ext(lexer)
36
- matches = lexers.select { |lex| lex[:lexer] == lexer || lex[:aliases].map(&:downcase).include?(lexer.downcase) }
36
+ matches = lexers.select { |lex| lex[:lexer] == lexer || lex[:aliases]&.include?(lexer.downcase) }
37
37
  matches.map { |lex| lex[:extensions].first }.first || lexer
38
38
  end
39
39
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Snibbets
4
- VERSION = '2.0.24'
4
+ VERSION = '2.0.25'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snibbets
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.24
4
+ version: 2.0.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Terpstra