diakonos 0.9.10 → 0.9.12

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: 4545c77e496e0e0c6ff937533229561af94ab385d972e3496909a4fe5005065d
4
- data.tar.gz: d29e22867110489b76e8bb3c1c6472313d101d7ad6fe4056950b693a10888fa8
3
+ metadata.gz: 785260a5c3a705a4bc2a441d3968b79307396fc559e471593dff06ebe5ff6fc9
4
+ data.tar.gz: a7b5686d70facc10e5902fe2ed29d27880676cb745ddf19d74abc2712c568cf0
5
5
  SHA512:
6
- metadata.gz: d879ffec3cbb1b929e933c8787285ecd94bf86f18942e9ffde6de4cef72eab7916f870ea4609c7802eafa0768fa7d23a8d855e0bb376b5044da89ed7bbf2773f
7
- data.tar.gz: 7bd4318931af575436d9816ae1bb58f5656ad44095ba2877fb5dfef877153908d3f034a0bc09846d80a8ba137c531c3be8ae33fbeed15886f7a3b9a49c54d45b
6
+ metadata.gz: 9b87711d7f9422dd2f200a644cfd9b573178a4269c3016b4cbacd6cde0b49a618c5d3004548655c54c3e5d34063f3a4d93dbb8e8ff2f82ad5c4285100cc7f51d
7
+ data.tar.gz: b284dc8cab1fcbeae25ea08e417ffa70e643d4b48dd45c0b8660fd31f247e363e8cfa906bdf7ed0df63cd1e439d09107cc05d79e0a9f82ac7d9b67a5b64771bd
data/CHANGELOG CHANGED
@@ -1,6 +1,19 @@
1
1
  Diakonos Changelog
2
2
  ------------------
3
3
 
4
+ 0.9.12
5
+
6
+ - Fix opening of already-open file
7
+
8
+ 0.9.11
9
+
10
+ - Fix installation on OSX (re: curses 1.4.5)
11
+ - Add GraphQL and Go syntax highlighting
12
+
13
+ 0.9.10
14
+
15
+ - (neglected to document)
16
+
4
17
  0.9.9
5
18
 
6
19
  - List main culprits (directories) when fuzzy file finder encounters too many files
data/diakonos.conf CHANGED
@@ -880,7 +880,7 @@ lang.css.tokens.variables.format cyan bold
880
880
 
881
881
  # Javascript, ES6
882
882
 
883
- lang.javascript.filemask \.(?:js|es6)$
883
+ lang.javascript.filemask \.(?:[cm]?jsx?|es6|tsx?|json)$
884
884
  lang.javascript.format.default white bold
885
885
  lang.javascript.format.selection inverse
886
886
  lang.javascript.format.found yellow inverse
@@ -1788,6 +1788,73 @@ lang.vue.closers.tag.closer </\1>
1788
1788
  lang.vue.surround.pair "<!--" "<!-- " " -->"
1789
1789
  lang.vue.surround.pair "/^<(.+?)>$/" "<\1>" "</\1>"
1790
1790
 
1791
+ lang.graphql.filemask \.g(raph)?ql$
1792
+ lang.graphql.format.default white bold
1793
+ lang.graphql.format.selection inverse
1794
+ lang.graphql.format.found yellow inverse
1795
+ lang.graphql.tokens.doublequoted_strings (\".*?[^\\]?\")
1796
+ lang.graphql.tokens.doublequoted_strings.format green bold
1797
+ lang.graphql.tokens.singlequoted_strings ('.*?[^\\]')
1798
+ lang.graphql.tokens.singlequoted_strings.format green bold
1799
+ lang.graphql.tokens.block_strings (""".*?[^\\]""")
1800
+ lang.graphql.tokens.block_strings.format green bold
1801
+ lang.graphql.tokens.reserved_words \b(mutation|query|subscription)\b
1802
+ lang.graphql.tokens.reserved_words.format white
1803
+ lang.graphql.tokens.comments (#.*)
1804
+ lang.graphql.tokens.comments.format = lang.shared.tokens.comments.format
1805
+ lang.graphql.comment_string "# "
1806
+ lang.graphql.tokens.non_alphanum ([!@#$%\^&*()\[\]{}/?=+\-\\|,<.>;:])
1807
+ lang.graphql.tokens.non_alphanum.format white
1808
+ lang.graphql.tabsize 2
1809
+ lang.graphql.indent.size 2
1810
+ lang.graphql.indent.auto true
1811
+ lang.graphql.indent.roundup false
1812
+ lang.graphql.indent.indenters (\{)
1813
+ lang.graphql.indent.unindenters (\})
1814
+ lang.graphql.indent.preventers (\".+?[^\\]\")|('.+?[^\\]')|(\/\/.*)
1815
+ lang.graphql.indent.ignore ^(.+:|\s*?)$
1816
+ lang.graphql.indent.closers true
1817
+ lang.graphql.context.ignore ^(.+:|\s*\{?)$
1818
+ lang.graphql.column_delimiters =|:|,
1819
+
1820
+ lang.go.filemask \.(?:go)$
1821
+ lang.go.format.default white bold
1822
+ lang.go.format.selection inverse
1823
+ lang.go.format.found yellow inverse
1824
+ lang.go.tokens.doublequoted_strings (\".*?[^\\]?\")
1825
+ lang.go.tokens.doublequoted_strings.format green bold
1826
+ lang.go.tokens.singlequoted_strings ('.*?[^\\]')
1827
+ lang.go.tokens.singlequoted_strings.format green bold
1828
+ lang.go.tokens.backquoted_strings (`.*?[^\\]`)
1829
+ lang.go.tokens.backquoted_strings.format green bold
1830
+ lang.go.tokens.constants \b([A-Z_]+|[A-Z_][A-Z0-9_]+)\b
1831
+ lang.go.tokens.constants.format yellow bold
1832
+ lang.go.tokens.comments (\/\/.*)
1833
+ lang.go.tokens.comments.format = lang.shared.tokens.comments.format
1834
+ lang.go.comment_string "/* "
1835
+ lang.go.comment_close_string " */"
1836
+ lang.go.tokens.long_comments.open \/\*
1837
+ lang.go.tokens.long_comments.close \*\/
1838
+ lang.go.tokens.long_comments.format = lang.shared.tokens.comments.format
1839
+ lang.go.tokens.regular_expressions (\/.+?[^\\]\/)
1840
+ lang.go.tokens.regular_expressions.format red bold
1841
+ lang.go.tokens.non_alphanum ([!@#$%\^&*()\[\]{}/?=+\-\\|,<.>;:])
1842
+ lang.go.tokens.non_alphanum.format white
1843
+ lang.go.tabsize 4
1844
+ lang.go.indent.size 4
1845
+ lang.go.indent.auto true
1846
+ lang.go.indent.roundup false
1847
+ #lang.go.indent.using_tabs true
1848
+ lang.go.indent.indenters (\{)
1849
+ lang.go.indent.unindenters (\})
1850
+ lang.go.indent.preventers (\".+?[^\\]\")|('.+?[^\\]')|(\/\/.*)
1851
+ lang.go.indent.ignore ^(.+:|\s*?)$
1852
+ lang.go.indent.closers true
1853
+ lang.go.context.ignore ^(.+:|\s*\{?)$
1854
+ lang.go.closers.for.regexp for$
1855
+ lang.go.closers.for.closer { |m| "( $i = 0; $i < limit; $i++ ) {\n%_\n}" }
1856
+ lang.go.column_delimiters =|:|,
1857
+
1791
1858
 
1792
1859
  # Other configuration files can be included.
1793
1860
  # If a setting is specified again, it overrides the previous setting given
@@ -32,9 +32,6 @@ module Diakonos
32
32
  end
33
33
  end
34
34
 
35
- if open_match_text
36
- # $diakonos.debug_log "OPEN\t" + [ open_index, open_token_class, open_match_text ].inspect
37
- end
38
35
  [ open_index, open_token_class, open_match_text ]
39
36
  end
40
37
 
@@ -58,9 +55,6 @@ module Diakonos
58
55
  end
59
56
  end
60
57
 
61
- if close_match_text
62
- # $diakonos.debug_log "CLOSE\t" + [close_index, close_match_text].inspect
63
- end
64
58
  [close_index, close_match_text]
65
59
  end
66
60
 
@@ -184,8 +184,10 @@ module Diakonos
184
184
  filename = nil
185
185
  do_open = false
186
186
  else
187
- # TODO: Maybe a bug here, re: paths relative to session dir (external file find)
188
- existing_buffer = @buffers.find { |b| b.name == filename }
187
+ existing_buffer = @buffers.find { |b|
188
+ b.name == filename ||
189
+ b.name == File.expand_path(filename, @session.dir)
190
+ }
189
191
  end
190
192
 
191
193
  if filename
@@ -120,7 +120,6 @@ module Diakonos
120
120
  end
121
121
 
122
122
  def redraw_input
123
- # TODO: Gracefully handle when `input` is nil
124
123
  input = @input[ @view_y...(@view_y + Curses::cols) ]
125
124
 
126
125
  curx = @window.curx
@@ -1,6 +1,6 @@
1
1
  module Diakonos
2
- VERSION = '0.9.10'
3
- LAST_MODIFIED = '2023-09-14'
2
+ VERSION = '0.9.12'
3
+ LAST_MODIFIED = '2024-06-20'
4
4
 
5
5
  def self.parse_version( s )
6
6
  if s
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: diakonos
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.10
4
+ version: 0.9.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pistos
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-15 00:00:00.000000000 Z
11
+ date: 2024-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: curses
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 1.4.4
19
+ version: 1.4.6
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: 1.4.4
26
+ version: 1.4.6
27
27
  description: Diakonos is a console text editor for the masses.
28
28
  email: diakonos dawt pistos aet purepistos dawt net
29
29
  executables:
@@ -165,7 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
167
  requirements: []
168
- rubygems_version: 3.3.7
168
+ rubygems_version: 3.5.11
169
169
  signing_key:
170
170
  specification_version: 4
171
171
  summary: Console text editor for the masses