@@ -254,6 +254,15 @@ describe("terminal sessions service", () => {
254254 expect ( command ) . toContain ( "status off" )
255255 expect ( command ) . toContain ( "history-limit 50000" )
256256 expect ( command ) . toContain ( "mouse on" )
257+ expect ( command ) . toContain ( "bind-key -T root MouseDown3Pane" )
258+ expect ( command ) . toContain ( "bind-key -T root M-MouseDown3Pane" )
259+ expect ( command ) . toContain ( "#{mouse_any_flag}" )
260+ expect ( command ) . toContain ( "send-keys -M" )
261+ expect ( command ) . toContain ( "unbind-key -T root MouseDown3Status" )
262+ expect ( command ) . toContain ( "unbind-key -T root MouseDown3StatusLeft" )
263+ expect ( command ) . toContain ( "unbind-key -T root M-MouseDown3Status" )
264+ expect ( command ) . toContain ( "unbind-key -T root M-MouseDown3StatusLeft" )
265+ expect ( command ) . not . toContain ( "display-menu" )
257266 expect ( command ) . toContain ( "tmux attach-session -t" )
258267 expect ( command ) . toContain ( "docker-git-session-1" )
259268 expect ( command ) . toContain ( "/home/dev/project with spaces" )
@@ -264,6 +273,7 @@ describe("terminal sessions service", () => {
264273 const statusOffIndex = command . indexOf ( "status off" )
265274 const sessionHistoryLimitIndex = command . lastIndexOf ( "history-limit 50000" )
266275 const mouseOnIndex = command . indexOf ( "mouse on" )
276+ const rightClickBindingIndex = command . indexOf ( "MouseDown3Pane" )
267277 const attachSessionIndex = command . indexOf ( "tmux attach-session -t" )
268278
269279 expect ( startServerIndex ) . toBeGreaterThanOrEqual ( 0 )
@@ -272,13 +282,15 @@ describe("terminal sessions service", () => {
272282 expect ( statusOffIndex ) . toBeGreaterThanOrEqual ( 0 )
273283 expect ( sessionHistoryLimitIndex ) . toBeGreaterThanOrEqual ( 0 )
274284 expect ( mouseOnIndex ) . toBeGreaterThanOrEqual ( 0 )
285+ expect ( rightClickBindingIndex ) . toBeGreaterThan ( mouseOnIndex )
275286 expect ( attachSessionIndex ) . toBeGreaterThanOrEqual ( 0 )
276287 expect ( startServerIndex ) . toBeLessThan ( globalHistoryLimitIndex )
277288 expect ( globalHistoryLimitIndex ) . toBeLessThan ( newSessionIndex )
278289 expect ( newSessionIndex ) . toBeLessThan ( statusOffIndex )
279290 expect ( statusOffIndex ) . toBeLessThan ( sessionHistoryLimitIndex )
280291 expect ( sessionHistoryLimitIndex ) . toBeLessThan ( mouseOnIndex )
281- expect ( mouseOnIndex ) . toBeLessThan ( attachSessionIndex )
292+ expect ( mouseOnIndex ) . toBeLessThan ( rightClickBindingIndex )
293+ expect ( rightClickBindingIndex ) . toBeLessThan ( attachSessionIndex )
282294 } )
283295
284296 it ( "fails before creating a durable session when tmux is unavailable" , async ( ) => {
0 commit comments