Skip to content

Commit a663fd5

Browse files
committed
follow #646
1 parent 3eebd7c commit a663fd5

File tree

3 files changed

+21
-16
lines changed

3 files changed

+21
-16
lines changed

lib/package/config.coffee

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -157,26 +157,32 @@ config =
157157
usePlotPane:
158158
title: 'Enable Plot Pane'
159159
type: 'boolean'
160-
description: 'Show plots in Atom.'
161160
default: true
161+
description: 'Show plots in Atom.'
162162
order: 8
163+
maxNumberPlots:
164+
title: 'Maximum Number of Plots in History'
165+
type: 'number'
166+
default: 50
167+
description: 'Increasing this number may lead to high memory consumption and poor performance.'
168+
order: 9
163169
openNewEditorWhenDebugging:
164170
title: 'Open New Editor When Debugging'
165171
type: 'boolean'
166172
default: false
167173
description: 'Opens a new editor tab when stepping into a new file instead
168174
of reusing the current one (requires restart).'
169-
order: 9
175+
order: 10
170176
cellDelimiter:
171177
title: 'Cell Delimiter'
172178
type: 'array'
173179
default: ['##', '#---', '#%%', '# %%']
174180
description: 'Regular expressions for determining cell delimiters.'
175-
order: 10
181+
order: 11
176182
layouts:
177183
title: 'Layout Options'
178184
type: 'object'
179-
order: 11
185+
order: 12
180186
collapsed: true
181187
properties:
182188
console:
@@ -410,12 +416,6 @@ config =
410416
type: 'boolean'
411417
default: true
412418
order: 11
413-
maxNumberPlots:
414-
title: 'Maximum Number of Plots in History'
415-
type: 'number'
416-
description: 'Increasing this number may lead to high memory consumption and poor performance.'
417-
default: 50
418-
order: 12
419419
consoleOptions:
420420
type: 'object'
421421
title: 'Terminal Options'

lib/runtime/evaluation.coffee

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,7 @@ module.exports =
127127
if dirEl
128128
pathEl = dirEl.querySelector('[data-path]')
129129
if pathEl
130-
path = pathEl.dataset.path
131-
return path
130+
return pathEl.dataset.path
132131
# invoked from normal command usage
133132
file = client.editorPath(atom.workspace.getCenter().getActiveTextEditor())
134133
if file

menus/julia-client.cson

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
'context-menu':
22
'atom-text-editor[data-grammar="source julia"]': [
33
{type: 'separator'}
4-
54
{
65
label: 'Juno',
76
submenu: [
@@ -16,10 +15,17 @@
1615
{label: 'Toggle Conditional Breakpoint', command: 'julia-debug:toggle-conditional-breakpoint'}
1716
]
1817
}
19-
2018
{type: 'separator'}
2119
]
20+
2221
'.tree-view li.directory': [
23-
{ label: 'Juno: Work in Folder', command: 'julia-client:work-in-current-folder' }
24-
{ label: 'Juno: Activate Project', command: 'julia-client:activate-current-folder' }
22+
{type: 'separator'}
23+
{
24+
label: 'Juno',
25+
submenu: [
26+
{ label: 'Work in Folder', command: 'julia-client:work-in-current-folder' }
27+
{ label: 'Activate Project', command: 'julia-client:activate-current-folder' }
28+
]
29+
}
30+
{type: 'separator'}
2531
]

0 commit comments

Comments
 (0)