aboutsummaryrefslogtreecommitdiffstats
path: root/vimput.pl
diff options
context:
space:
mode:
Diffstat (limited to 'vimput.pl')
-rw-r--r--vimput.pl8
1 files changed, 5 insertions, 3 deletions
diff --git a/vimput.pl b/vimput.pl
index fc9d38e..ad6dea3 100644
--- a/vimput.pl
+++ b/vimput.pl
@@ -185,9 +185,11 @@ if ($pid == 0) {
# my $fifo_path = "$tempdir/fifo";
# print $write_handle VIMPUT_IPC_COMMAND_PREFIX . $fifo_path;
- print $command_handle VIMPUT_IPC_COMMAND_PREFIX . $fifo_path;
+ # print $command_handle $fifo_path;
close $command_handle;
+ open_tmux_split('rando', $fifo_path);
+
mkfifo($fifo_path, 0600) or die $!;
open my $fifo, '<', $fifo_path or die $!;
@@ -267,9 +269,9 @@ sub pipe_open_tmux_split {
my ($args) = @_;
my ($read_handle, $pipe_tag) = @$args;
- my $input = <$read_handle>;
+ my $fifo_path = <$read_handle>;
- print 'C: ' . $input;
+ # open_tmux_split('rando', $fifo_path);
# TODO: Add $forked to not spawn more than one children unnecessarily