smug: add project session setting
Add an optional session setting so that session names can be different than the smug project name. This also enables using template variables when naming sessions.
This commit is contained in:
parent
ecf019baf4
commit
f72ed9c97d
4 changed files with 37 additions and 3 deletions
5
tests/modules/programs/smug/project.yml
Normal file
5
tests/modules/programs/smug/project.yml
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
root: ~/project
|
||||
session: project-${worktree}
|
||||
windows:
|
||||
- layout: tiled
|
||||
name: src
|
||||
|
|
@ -53,11 +53,23 @@
|
|||
];
|
||||
};
|
||||
|
||||
project = {
|
||||
root = "~/project";
|
||||
session = "project-\${worktree}";
|
||||
windows = [
|
||||
{
|
||||
name = "src";
|
||||
layout = "tiled";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
nmt.script = ''
|
||||
assertFileContent home-files/.config/smug/blogdemo.yml ${./blogdemo.yml}
|
||||
assertFileContent home-files/.config/smug/project.yml ${./project.yml}
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue