some more files...

This commit is contained in:
henil 2021-02-10 12:23:40 +05:30
parent af95b3ff9a
commit 9b3c6863d8
5 changed files with 20 additions and 20 deletions

View file

@ -60,13 +60,13 @@ depends = "$auto"
license-file = ["LICENSE.md", "4"] license-file = ["LICENSE.md", "4"]
assets = [ assets = [
# TODO? # TODO?
# ["assets/man/mosaic.1", "usr/share/man/man1/mosaic.1", "644"], # ["assets/man/zellij.1", "usr/share/man/man1/zellij.1", "644"],
["target/release/mosaic", "usr/bin/mosaic", "755"], ["target/release/zellij", "usr/bin/zellij", "755"],
["GOVERNANCE.md", "usr/share/doc/mosaic/GOVERNANCE.md", "644"], ["GOVERNANCE.md", "usr/share/doc/zellij/GOVERNANCE.md", "644"],
["README.md", "usr/share/doc/mosaic/README.md", "644"], ["README.md", "usr/share/doc/zellij/README.md", "644"],
["assets/layouts/*", "usr/share/mosaic/layouts/", "644"], ["assets/layouts/*", "usr/share/zellij/layouts/", "644"],
["assets/plugins/*", "usr/share/mosaic/plugins/", "644"], ["assets/plugins/*", "usr/share/zellij/plugins/", "644"],
["assets/completions/mosaic.bash", "usr/share/bash-completion/completions/mosaic.bash", "644"], ["assets/completions/zellij.bash", "usr/share/bash-completion/completions/zellij.bash", "644"],
["assets/completions/mosaic.fish", "usr/share/fish/vendor_completions.d/mosaic.fish", "644"], ["assets/completions/zellij.fish", "usr/share/fish/vendor_completions.d/zellij.fish", "644"],
["assets/completions/_mosaic", "usr/share/zsh/vendor-completions/_mosaic", "644"], ["assets/completions/_zellij", "usr/share/zsh/vendor-completions/_zellij", "644"],
] ]

View file

@ -15,15 +15,15 @@ _zellij() {
local context curcontext="$curcontext" state line local context curcontext="$curcontext" state line
_arguments "${_arguments_options[@]}" \ _arguments "${_arguments_options[@]}" \
'-s+[Send "split (direction h == horizontal / v == vertical)" to active mosaic session]' \ '-s+[Send "split (direction h == horizontal / v == vertical)" to active zellij session]' \
'--split=[Send "split (direction h == horizontal / v == vertical)" to active mosaic session]' \ '--split=[Send "split (direction h == horizontal / v == vertical)" to active zellij session]' \
'-o+[Send "open file in new pane" to active mosaic session]' \ '-o+[Send "open file in new pane" to active zellij session]' \
'--open-file=[Send "open file in new pane" to active mosaic session]' \ '--open-file=[Send "open file in new pane" to active zellij session]' \
'--max-panes=[Maximum panes on screen, caution: opening more panes will close old ones]' \ '--max-panes=[Maximum panes on screen, caution: opening more panes will close old ones]' \
'-l+[Path to a layout yaml file]' \ '-l+[Path to a layout yaml file]' \
'--layout=[Path to a layout yaml file]' \ '--layout=[Path to a layout yaml file]' \
'-m[Send "move focused pane" to active mosaic session]' \ '-m[Send "move focused pane" to active zellij session]' \
'--move-focus[Send "move focused pane" to active mosaic session]' \ '--move-focus[Send "move focused pane" to active zellij session]' \
'-d[]' \ '-d[]' \
'--debug[]' \ '--debug[]' \
'-h[Prints help information]' \ '-h[Prints help information]' \

View file

@ -1,8 +1,8 @@
complete -c zellij -n "__fish_use_subcommand" -s s -l split -d 'Send "split (direction h == horizontal / v == vertical)" to active mosaic session' complete -c zellij -n "__fish_use_subcommand" -s s -l split -d 'Send "split (direction h == horizontal / v == vertical)" to active zellij session'
complete -c zellij -n "__fish_use_subcommand" -s o -l open-file -d 'Send "open file in new pane" to active mosaic session' complete -c zellij -n "__fish_use_subcommand" -s o -l open-file -d 'Send "open file in new pane" to active zellij session'
complete -c zellij -n "__fish_use_subcommand" -l max-panes -d 'Maximum panes on screen, caution: opening more panes will close old ones' complete -c zellij -n "__fish_use_subcommand" -l max-panes -d 'Maximum panes on screen, caution: opening more panes will close old ones'
complete -c zellij -n "__fish_use_subcommand" -s l -l layout -d 'Path to a layout yaml file' complete -c zellij -n "__fish_use_subcommand" -s l -l layout -d 'Path to a layout yaml file'
complete -c zellij -n "__fish_use_subcommand" -s m -l move-focus -d 'Send "move focused pane" to active mosaic session' complete -c zellij -n "__fish_use_subcommand" -s m -l move-focus -d 'Send "move focused pane" to active zellij session'
complete -c zellij -n "__fish_use_subcommand" -s d -l debug complete -c zellij -n "__fish_use_subcommand" -s d -l debug
complete -c zellij -n "__fish_use_subcommand" -s h -l help -d 'Prints help information' complete -c zellij -n "__fish_use_subcommand" -s h -l help -d 'Prints help information'
complete -c zellij -n "__fish_use_subcommand" -s V -l version -d 'Prints version information' complete -c zellij -n "__fish_use_subcommand" -s V -l version -d 'Prints version information'

View file

@ -112,7 +112,7 @@ fn main() {
"layouts/default.yaml", "layouts/default.yaml",
"layouts/strider.yaml", "layouts/strider.yaml",
]; ];
let project_dirs = ProjectDirs::from("org", "Mosaic Contributors", "Mosaic").unwrap(); let project_dirs = ProjectDirs::from("org", "Zellij Contributors", "Zellij").unwrap();
let data_dir = project_dirs.data_dir(); let data_dir = project_dirs.data_dir();
fs::create_dir_all(data_dir.join("plugins")).unwrap(); fs::create_dir_all(data_dir.join("plugins")).unwrap();
fs::create_dir_all(data_dir.join("layouts")).unwrap(); fs::create_dir_all(data_dir.join("layouts")).unwrap();

View file

@ -23,7 +23,7 @@ impl Display for LinePart {
} }
fn prefix(help: &Help) -> LinePart { fn prefix(help: &Help) -> LinePart {
let prefix_text = " Mosaic "; let prefix_text = " Zellij ";
let part = match (&help.mode, help.mode_is_persistent) { let part = match (&help.mode, help.mode_is_persistent) {
(InputMode::Command, false) => { (InputMode::Command, false) => {
let prefix = prefix_text.bold().white().on_black(); let prefix = prefix_text.bold().white().on_black();