{"action":"opened","issue":{"url":"https://api.github.com/repos/tmux/tmux/issues/573","repository_url":"https://api.github.com/repos/tmux/tmux","labels_url":"https://api.github.com/repos/tmux/tmux/issues/573/labels{/name}","comments_url":"https://api.github.com/repos/tmux/tmux/issues/573/comments","events_url":"https://api.github.com/repos/tmux/tmux/issues/573/events","html_url":"https://github.com/tmux/tmux/issues/573","id":181916159,"number":573,"title":"Nested if-shell breaks because of quotes working ","user":{"login":"RahulKatariya","id":1857415,"avatar_url":"https://avatars.githubusercontent.com/u/1857415?v=3","gravatar_id":"","url":"https://api.github.com/users/RahulKatariya","html_url":"https://github.com/RahulKatariya","followers_url":"https://api.github.com/users/RahulKatariya/followers","following_url":"https://api.github.com/users/RahulKatariya/following{/other_user}","gists_url":"https://api.github.com/users/RahulKatariya/gists{/gist_id}","starred_url":"https://api.github.com/users/RahulKatariya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RahulKatariya/subscriptions","organizations_url":"https://api.github.com/users/RahulKatariya/orgs","repos_url":"https://api.github.com/users/RahulKatariya/repos","events_url":"https://api.github.com/users/RahulKatariya/events{/privacy}","received_events_url":"https://api.github.com/users/RahulKatariya/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-09T22:27:43Z","updated_at":"2016-10-09T22:27:43Z","closed_at":null,"body":"I have the following code in my tmux.conf\r\n\r\n```\r\n# Smart pane switching with awareness of Vim splits.\r\n# See: https://github.com/christoomey/vim-tmux-navigator\r\nis_vim=\"ps -o state= -o comm= -t '#{pane_tty}' \\ | grep -iqE '^[^TXZ ]+ +(\\\\S+\\\\/)?g?(view|n?vim?x?)(diff)?$'\"\r\n\r\nbind -n WheelUpPane if-shell \"$is_vim\" \"\" \"if -F -t = '#{mouse_any_flag}' 'send-keys -M' 'if -Ft= \"#{pane_in_mode}\" \"send-keys -M\" \"copy-mode -e\"'\"\r\n```\r\n\r\nBut the following works fine maybe because its first level of nesting\r\n```\r\nbind -n WheelUpPane if-shell -F -t = \"#{mouse_any_flag}\" \"send-keys -M\" \"if -Ft= '#{pane_in_mode}' 'send-keys -M' 'copy-mode -e'\"\r\n```\r\n\r\nI know the problem is because of second nesting of the quotes (\") & ('). Could you tell me some work around to achieve this thing."}}
{"actor":{"display_login":"RahulKatariya"}}