aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2024-02-08 17:35:55 +0100
committerGitHub <noreply@github.com>2024-02-08 17:35:55 +0100
commit326c8cd3c6566e8fa4acd3a9369c718ce96f6625 (patch)
tree805ded9e78a35e9cd1ae91594358c8888a53abe2 /src
parentdocs(changelog): cwd fixes (diff)
downloadsl0ppij-326c8cd3c6566e8fa4acd3a9369c718ce96f6625.tar.gz
sl0ppij-326c8cd3c6566e8fa4acd3a9369c718ce96f6625.tar.xz
sl0ppij-326c8cd3c6566e8fa4acd3a9369c718ce96f6625.zip
feat(panes): allow specifying coordinates for a new floating pane through the CLI or plugins (#3122)
* working * add tests * add coordinates to all the places * refactor: move things around: * style(fmt): rustfmt * style(code): cleanups
Diffstat (limited to 'src')
-rw-r--r--src/main.rs24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 30770405..871d468f 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -29,6 +29,10 @@ fn main() {
name,
close_on_exit,
start_suspended,
+ x,
+ y,
+ width,
+ height,
})) = opts.command
{
let cwd = cwd.or_else(|| std::env::current_dir().ok());
@@ -45,6 +49,10 @@ fn main() {
start_suspended,
configuration: None,
skip_plugin_cache,
+ x,
+ y,
+ width,
+ height,
};
commands::send_action_to_session(command_cli_action, opts.session, config);
std::process::exit(0);
@@ -55,6 +63,10 @@ fn main() {
in_place,
configuration,
skip_plugin_cache,
+ x,
+ y,
+ width,
+ height,
})) = opts.command
{
let cwd = std::env::current_dir().ok();
@@ -70,6 +82,10 @@ fn main() {
start_suspended: false,
configuration,
skip_plugin_cache,
+ x,
+ y,
+ width,
+ height,
};
commands::send_action_to_session(command_cli_action, opts.session, config);
std::process::exit(0);
@@ -81,6 +97,10 @@ fn main() {
floating,
in_place,
cwd,
+ x,
+ y,
+ width,
+ height,
})) = opts.command
{
let mut file = file;
@@ -97,6 +117,10 @@ fn main() {
floating,
in_place,
cwd,
+ x,
+ y,
+ width,
+ height,
};
commands::send_action_to_session(command_cli_action, opts.session, config);
std::process::exit(0);