Skip to content

Commit 082017c

Browse files
committed
Small bug fix and documentation update
1 parent f05b2e2 commit 082017c

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-4
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
![]( https://img.shields.io/static/v1?label=Caster&message=0.5.11|0.6.11&color=blue)
66

7+
8+
79
![]( https://img.shields.io/static/v1?label=Version&message=0.0.3&color=green)
810

911
PythonVoiceCodingPlugin is a Sublime Text 3 plugin meant to enhance user experience

doc/SelectBigROI.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,12 @@ furthermore, big_roi_sub_index can make our lives easier even in cases like the
171171

172172
where we want to play with the indexes of a subscript!
173173

174+
### new with 0.0.4
175+
176+
Sub indexing functionality has been expanded to include picking up parts of strings :
177+
178+
![](./gif/big10.gif)
179+
174180
Finally, we clarify one more thing! What about relative vertical offsets when using above? We know that these abstract vertical keywords only count interesting lines, but what do we count as interesting here? To stay compatible with all of the above, we count all lines containing our desired big region of interest regardless of whether we can extract or not from them information with the sub index! As an example:
175181

176182
![](./gif/big9.gif)

doc/gif/big10.gif

193 KB
Loading

library/info.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ def split_string(s,even_letters = True):
287287
s = s.strip()
288288
y = urlparse(s)
289289
if not (y.scheme=="" and y.netloc==""):
290-
return make_flat( [split_string(x,False) for x in y ])
290+
return [z for z in make_flat( [split_string(x,False) for x in y ]) if z]
291291
first_attempt = [x for x in re.split("[., :/]",s) if not x.isspace()]
292292
if len(first_attempt) > 1:
293293
return first_attempt
@@ -323,7 +323,7 @@ def get_subparts_of_string(root):
323323
index += len(s)
324324
return output
325325

326-
326+
327327

328328
def get_sub_index(root,index):
329329
candidates = []
@@ -361,8 +361,10 @@ def get_sub_index(root,index):
361361
return get_sub_index(root.value,index)
362362
if match_node(root,(ast.UnaryOp)):
363363
return get_sub_index(root.operand,index)
364-
if match_node(root,(ast.UnaryOp)):
365-
return get_sub_index(root.operand,index)
364+
if match_node(root,(ast.Lambda)):
365+
return get_sub_index(root.body,index)
366+
if match_node(root,(ast.Call)):
367+
return get_sub_index(root.func,index)
366368

367369
if index<len(candidates):
368370
return candidates[index]

0 commit comments

Comments
 (0)