File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,12 @@ export default class ScriptView extends MessagePanelView {
18
18
this . scrollTimeout = null ;
19
19
this . ansiFilter = new AnsiFilter ( ) ;
20
20
this . headerView = headerView ;
21
+ // Use 'bottom' as the default position, because that was
22
+ // the behaviour before the position became configurable:
23
+ this . position = 'bottom' ;
24
+ atom . config . observe ( 'script.position' , ( newVal ) => {
25
+ this . position = newVal ;
26
+ } ) ;
21
27
22
28
this . showInTab = this . showInTab . bind ( this ) ;
23
29
this . setHeaderAndShowExecutionTime = this . setHeaderAndShowExecutionTime . bind ( this ) ;
Original file line number Diff line number Diff line change @@ -49,6 +49,19 @@ export const config = {
49
49
'Directory of the script' ,
50
50
] ,
51
51
} ,
52
+ position : {
53
+ title : 'Panel position' ,
54
+ description : 'Position of the panel with script output. \
55
+ (Changes to this value will be applied upon reopening the panel.)' ,
56
+ type : 'string' ,
57
+ default : 'bottom' ,
58
+ enum : [
59
+ 'top' ,
60
+ 'bottom' ,
61
+ 'left' ,
62
+ 'right' ,
63
+ ] ,
64
+ } ,
52
65
}
53
66
54
67
// For some reason, the text of these options does not show in package settings view
You can’t perform that action at this time.
0 commit comments