home/rc/windowing
Marco Rebhan c57805a926 Handle spawning iTerm and screen commands with arguments containing newlines
Before, sed would add quotes to every line of the single multiline argument,
causing the final quoted argument to "split ... command" or screen to contain
unquoted newlines such as this (from kakoune-cr):

	tell application "iTerm"
	    tell current session of current window
	        tell (split vertically with same profile command "env PATH='...' 'sh' '-c' ''
	'    export KAKOUNE_SESSION=$1'
	'    export KAKOUNE_CLIENT=$2'
	'    shift 3'
	''
	'    [ $# = 0 ] && set \"$SHELL\"'
	''
	'    \"sh\"'
	'  ' '--' '51909' 'client0' 'terminal' ") to select
	    end tell
	end tell

Instead of using sed to do this which operates on single lines at a time, simply
use printf to insert ' quotes before and after the entire argument.
2022-11-20 14:00:09 +01:00
..
repl rc repl: complete tmux-repl with shell commands, not Kakoune commands 2022-07-21 16:48:44 +02:00
detection.kak Support focus Within Sway WM 2022-06-02 10:57:28 +01:00
iterm.kak Handle spawning iTerm and screen commands with arguments containing newlines 2022-11-20 14:00:09 +01:00
kitty.kak rc windowing: use menu behavior for focus 2022-07-21 16:48:44 +02:00
new-client.kak rc windowing: use menu behavior for focus 2022-07-21 16:48:44 +02:00
screen.kak Handle spawning iTerm and screen commands with arguments containing newlines 2022-11-20 14:00:09 +01:00
sway.kak rc windowing: use menu behavior for focus 2022-07-21 16:48:44 +02:00
tmux.kak rc windowing: use menu behavior for focus 2022-07-21 16:48:44 +02:00
wayland.kak rc windowing: use menu behavior for focus 2022-07-21 16:48:44 +02:00
x11.kak rc windowing: use menu behavior for focus 2022-07-21 16:48:44 +02:00