Skip to content

Commit 2525bf7

Browse files
committed
Fix visible_on_platforms
1 parent dce16b5 commit 2525bf7

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

commands/create_from_selection.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ def move_until(view, stop_char, increment, start):
2525

2626

2727
class FmCreateFileFromSelectionCommand(sublime_plugin.TextCommand):
28-
2928
CONTEXT_MAX_LENGTH = 50
3029
MATCH_SOURCE_ATTR = re_comp(r"(src|href) *= *$")
3130
MATCH_JS_REQUIRE = re_comp(r"require\(\s*$")

commands/open_in_explorer.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# -*- encoding: utf-8 -*-
22
import os
33

4+
import sublime
45
from .fmcommand import FmWindowCommand
56

67

@@ -16,3 +17,8 @@ def run(self, paths=None):
1617
"open_dir",
1718
{"dir": dirname, "file": basename},
1819
)
20+
21+
def is_visible(self, visible_on_platforms=None, paths=None):
22+
return super().is_visible() and (
23+
visible_on_platforms is None or sublime.platform() in visible_on_platforms
24+
)

0 commit comments

Comments
 (0)