forked from Hexenon/FoxCode
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfoxconsole.py
More file actions
66 lines (52 loc) · 2.03 KB
/
Copy pathfoxconsole.py
File metadata and controls
66 lines (52 loc) · 2.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
import sublime, sublime_plugin
import re
class FoxConsoleCommand(sublime_plugin.WindowCommand):
def run(self):
path = sublime.packages_path() + "\\FoxCode\\Bats\\"
self.window.run_command("exec",{"cmd":["start.bat"],"working_dir": path})
import sublime, sublime_plugin
import os
import re
class FoxproBrowCommand(sublime_plugin.WindowCommand):
def run(self):
self.window.show_input_panel("Browse:", "", self.on_done, None, None)
pass
def on_done(self,user_input):
if user_input == "":
user_input = "?"
path = sublime.packages_path() + "\\FoxCode\\Bats\\"
self.window.run_command("exec",{"cmd":["start.bat",path + "brow.fxp",user_input],"working_dir": path})
pass
import sublime, sublime_plugin
import os
import re
class FoxproCompileCommand(sublime_plugin.WindowCommand):
def run(self):
fname = self.window.active_view().file_name()
path = sublime.packages_path() + "\\FoxCode\\Bats\\"
self.window.run_command("exec",{"cmd":["start.bat",path+"compile.fxp",fname],"working_dir": path})
import sublime, sublime_plugin
import os
import re
class FoxproModistruCommand(sublime_plugin.WindowCommand):
def run(self):
self.window.show_input_panel("Modify Structure:", "", self.on_done, None, None)
pass
def on_done(self,user_input):
if user_input == "":
user_input = "?"
path = sublime.packages_path() + "\\FoxCode\\Bats\\"
self.window.run_command("exec",{"cmd":["start.bat",path+"modistru.fxp",user_input],"working_dir": path})
pass
import sublime, sublime_plugin
import os
import re
class FoxproRunCommand(sublime_plugin.WindowCommand):
def run(self):
self.window.show_input_panel("Do ", "", self.on_done, None, None)
pass
def on_done(self,user_input):
if user_input == "":
user_input = self.window.active_view().file_name()
path = sublime.packages_path() + "\\FoxCode\\Bats\\"
self.window.run_command("exec",{"cmd":["start.bat",user_input],"working_dir": path})