Skip to content

Commit 24393a3

Browse files
committed
chore: FORMAT_SEPERATOR -> FORMAT_SEPARATOR
1 parent b231346 commit 24393a3

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

libtmux/formats.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"""
99
import os
1010

11-
FORMAT_SEPERATOR = os.environ.get("TMUX_SEPERATOR", "|")
11+
FORMAT_SEPARATOR = os.environ.get("TMUX_SEPERATOR", "|")
1212

1313
SESSION_FORMATS = [
1414
'session_name',

libtmux/server.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def _list_sessions(self):
142142
sformats = formats.SESSION_FORMATS
143143
tmux_formats = ['#{%s}' % f for f in sformats]
144144

145-
tmux_args = ('-F%s' % formats.FORMAT_SEPERATOR.join(tmux_formats),) # output
145+
tmux_args = ('-F%s' % formats.FORMAT_SEPARATOR.join(tmux_formats),) # output
146146

147147
proc = self.cmd('list-sessions', *tmux_args)
148148

@@ -155,7 +155,7 @@ def _list_sessions(self):
155155

156156
# combine format keys with values returned from ``tmux list-sessions``
157157
sessions = [
158-
dict(zip(sformats, session.split(formats.FORMAT_SEPERATOR)))
158+
dict(zip(sformats, session.split(formats.FORMAT_SEPARATOR)))
159159
for session in sessions
160160
]
161161

@@ -211,7 +211,7 @@ def _list_windows(self):
211211
proc = self.cmd(
212212
'list-windows', # ``tmux list-windows``
213213
'-a',
214-
'-F%s' % formats.FORMAT_SEPERATOR.join(tmux_formats), # output
214+
'-F%s' % formats.FORMAT_SEPARATOR.join(tmux_formats), # output
215215
)
216216

217217
if proc.stderr:
@@ -223,7 +223,7 @@ def _list_windows(self):
223223

224224
# combine format keys with values returned from ``tmux list-windows``
225225
windows = [
226-
dict(zip(wformats, window.split(formats.FORMAT_SEPERATOR)))
226+
dict(zip(wformats, window.split(formats.FORMAT_SEPARATOR)))
227227
for window in windows
228228
]
229229

@@ -274,7 +274,7 @@ def _list_panes(self):
274274
'window_id',
275275
'window_name',
276276
] + formats.PANE_FORMATS
277-
tmux_formats = [('#{%%s}%s' % formats.FORMAT_SEPERATOR) % f for f in pformats]
277+
tmux_formats = [('#{%%s}%s' % formats.FORMAT_SEPARATOR) % f for f in pformats]
278278

279279
proc = self.cmd('list-panes', '-a', '-F%s' % ''.join(tmux_formats)) # output
280280

@@ -293,7 +293,7 @@ def _list_panes(self):
293293

294294
# combine format keys with values returned from ``tmux list-panes``
295295
panes = [
296-
dict(zip(pformats, window.split(formats.FORMAT_SEPERATOR)))
296+
dict(zip(pformats, window.split(formats.FORMAT_SEPARATOR)))
297297
for window in panes
298298
]
299299

@@ -536,7 +536,7 @@ def new_session(
536536
tmux_args = (
537537
'-s%s' % session_name,
538538
'-P',
539-
'-F%s' % formats.FORMAT_SEPERATOR.join(tmux_formats), # output
539+
'-F%s' % formats.FORMAT_SEPARATOR.join(tmux_formats), # output
540540
)
541541

542542
if not attach:
@@ -567,7 +567,7 @@ def new_session(
567567
os.environ['TMUX'] = env
568568

569569
# combine format keys with values returned from ``tmux list-windows``
570-
session = dict(zip(sformats, session.split(formats.FORMAT_SEPERATOR)))
570+
session = dict(zip(sformats, session.split(formats.FORMAT_SEPARATOR)))
571571

572572
# clear up empty dict
573573
session = dict((k, v) for k, v in session.items() if v)

libtmux/session.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def new_window(
218218
window_args += ('-c%s' % start_directory,)
219219

220220
window_args += (
221-
'-F"%s"' % formats.FORMAT_SEPERATOR.join(tmux_formats),
221+
'-F"%s"' % formats.FORMAT_SEPARATOR.join(tmux_formats),
222222
) # output
223223
if window_name:
224224
window_args += ('-n%s' % window_name,)
@@ -239,7 +239,7 @@ def new_window(
239239

240240
window = proc.stdout[0]
241241

242-
window = dict(zip(wformats, window.split(formats.FORMAT_SEPERATOR)))
242+
window = dict(zip(wformats, window.split(formats.FORMAT_SEPARATOR)))
243243

244244
# clear up empty dict
245245
window = dict((k, v) for k, v in window.items() if v)

libtmux/window.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ def split_window(
434434
'window_index',
435435
'window_id',
436436
] + formats.PANE_FORMATS
437-
tmux_formats = [(f'#{{{f}}}{formats.FORMAT_SEPERATOR}') for f in pformats]
437+
tmux_formats = [(f'#{{{f}}}{formats.FORMAT_SEPARATOR}') for f in pformats]
438438

439439
# '-t%s' % self.attached_pane.get('pane_id'),
440440
# 2013-10-18 LOOK AT THIS, rm'd it..
@@ -478,7 +478,7 @@ def split_window(
478478
else:
479479
pane = pane.stdout[0]
480480

481-
pane = dict(zip(pformats, pane.split(formats.FORMAT_SEPERATOR)))
481+
pane = dict(zip(pformats, pane.split(formats.FORMAT_SEPARATOR)))
482482

483483
# clear up empty dict
484484
pane = dict((k, v) for k, v in pane.items() if v)

0 commit comments

Comments
 (0)