import sublime
import sublime_plugin
import os
import re
import subprocess
import sys

def get_setting(key, default=None):
    settings = sublime.load_settings('SublimeTmux.sublime-settings')
    os_specific_settings = {}

    if sys.platform == 'darwin':
        os_specific_settings = sublime.load_settings('SublimeTmux (OSX).sublime-settings')
    else:
        os_specific_settings = sublime.load_settings('SublimeTmux (Linux).sublime-settings')

    return os_specific_settings.get(key, settings.get(key, default))

class TmuxCommand():
    def resolve_file_path(self, path):
        if path:
            return path
        elif self.window.active_view().file_name():
            return re.sub(
                re.compile('{0}[^{0}]+$'.format(os.sep)),
                os.sep,
                self.window.active_view().file_name()
            )
        elif self.window.folders():
            return self.window.folders()[0]
        else:
            return None

    def check_tmux_status(self):
        tmux_status = subprocess.Popen(['tmux', 'info'])
        tmux_status.wait()

        return tmux_status.returncode is 0

    def run_tmux(self, path, parameters, split):
        try:
            if self.check_tmux_status():
                args = ['tmux', 'split-window' if split else 'new-window']

                if split == 'horizontal':
                    args.append('-h')

                if path:
                    args.extend(['-c', path])

                args.extend(parameters)
                subprocess.Popen(args)
        except (Exception) as exception:
            sublime.error_message('tmux: ' + str(exception))

class OpenTmuxCommand(sublime_plugin.WindowCommand, TmuxCommand):
    def run(self, path=None, parameters=[], split=None):
        path = self.resolve_file_path(path)

        self.run_tmux(path, parameters, split)

class OpenTmuxProjectFolderCommand(sublime_plugin.WindowCommand, TmuxCommand):
    def run(self, path=None, parameters=[], split=None):
        path = self.resolve_file_path(path)
        folders = [x for x in self.window.folders() if path.find(x + os.sep) == 0][0:1]

        self.run_tmux(folders[0], parameters, split)

@@ -1729,39 +1729,24 @@
 , path=None,
- parameters=%5B%5D,
  split=None)
@@ -1739,32 +1739,32 @@
 e, split=None):%0A
+
         path = s
@@ -1816,34 +1816,26 @@
 _tmux(path, 
-parameters
+%5B%5D
 , split)%0A%0Acl
@@ -1943,23 +1943,8 @@
 one,
- parameters=%5B%5D,
  spl
@@ -2120,26 +2120,18 @@
 ers%5B0%5D, 
-parameters
+%5B%5D
 , split)

Remove parameters argument from command methods