Skip to content

Commit 7700ac7

Browse files
committed
Update TODO, Freeze uses session name as default file option.
1 parent 19710ef commit 7700ac7

File tree

4 files changed

+18
-12
lines changed

4 files changed

+18
-12
lines changed

TODO

+6-6
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,6 @@ TODO
55
-------------
66

77
- `pep8`_, `pep257`_ for tests. (ongoing)
8-
- tmuxp freeze:
9-
10-
- offer to save ``session_name`` as default file if filename
11-
doesn't already exist in config dir.
12-
13-
- Remove -zsh command, python, etc if just in shell.
148
- `teamocil`_ and `tmuxinator`_ import support for blank panes
159
- ``shell_command_before`` for `teamocil`_.
1610
- if no ``window_name`` in config, option ``automatic_rename: on`` by
@@ -40,6 +34,12 @@ Done
4034
- python 2.6 support
4135
- Remove doc for ``run_tests.py`` visual test runner. Just have
4236
instruction for running test builder package.
37+
- tmuxp freeze:
38+
39+
- offer to save ``session_name`` as default file if filename
40+
doesn't already exist in config dir.
41+
42+
- Remove -zsh command, python, etc if just in shell.
4343

4444

4545
Future

tmuxp/cli.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ def command_freeze(args):
346346
dest = None
347347
while not dest:
348348
dest_prompt = prompt('Save to: ', os.path.abspath(
349-
os.path.join(config_dir, 'myimport.%s' % config_format)))
349+
os.path.join(config_dir, '%s.%s' % (sconf.get('session_name'), config_format))))
350350
if os.path.exists(dest_prompt):
351351
print('%s exists. Pick a new filename.' % dest_prompt)
352352
continue

tmuxp/testsuite/test_workspacefreezer.py

+9-3
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,16 @@ def test_freeze_config(self):
6666

6767
kaptanconf = kaptan.Kaptan()
6868
kaptanconf = kaptanconf.import_config(sconf)
69-
json = kaptanconf.export('json', indent=2)
70-
json = kaptanconf.export('json', indent=2)
69+
json = kaptanconf.export(
70+
'json',
71+
indent=2
72+
)
7173
yaml = kaptanconf.export(
72-
'yaml', indent=2, default_flow_style=False, safe=True)
74+
'yaml',
75+
indent=2,
76+
default_flow_style=False,
77+
safe=True
78+
)
7379

7480
#logger.error(json)
7581
#logger.error(yaml)

tmuxp/workspacebuilder.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ class WorkspaceBuilder(object):
2727
2828
The normal phase of loading is:
2929
30-
1. :term:`kaptan` imports json/yaml/ini. ``.get()`` returns
31-
python :class:`dict`::
30+
1. :term:`kaptan` imports json/yaml/ini. ``.get()`` returns python
31+
:class:`dict`::
3232
3333
import kaptan
3434
sconf = kaptan.Kaptan(handler='yaml')

0 commit comments

Comments
 (0)