@@ -12,8 +12,6 @@ local ksb_api
1212local ksb_keymaps
1313--- @module ' kitty-scrollback.kitty_commands'
1414local ksb_kitty_cmds
15- --- @module ' kitty-scrollback.tmux_commands'
16- local ksb_tmux_cmds
1715--- @module ' kitty-scrollback.util'
1816local ksb_util
1917--- @module ' kitty-scrollback.autocommands'
@@ -34,12 +32,6 @@ local M = {}
3432--- @field allow_remote_control string ' password' | ' socket-only' | ' socket' | ' no' | ' n' | ' false' | ' yes' | ' y' | ' true'
3533--- @field listen_on string
3634
37- --- @class KsbTmuxData
38- --- @field socket_path string server socket path
39- --- @field pid string server PID
40- --- @field session_id string unique session ID
41- --- @field pane_id string unique pane ID
42-
4335--- @class KsbKittyData
4436--- @field scrolled_by integer the number of lines currently scrolled in kitty
4537--- @field cursor_x integer position of the cusor in the column in kitty
@@ -54,7 +46,6 @@ local M = {}
5446--- @field kitty_config_dir string kitty configuration directory path
5547--- @field kitty_version table kitty version
5648--- @field kitty_path string kitty executable path
57- --- @field tmux KsbTmuxData | nil tmux data
5849--- @field shell string kitty shell program to execute
5950
6051--- @class KsbPrivate
@@ -157,12 +148,6 @@ local set_cursor_position = vim.schedule_wrap(function(d)
157148 local y = d .cursor_y - 1 - tab_offset
158149 local scrolled_by = d .scrolled_by
159150 local lines = d .lines - tab_offset
160- if p .kitty_data .tmux and next (p .kitty_data .tmux ) then
161- local ok , status_option = ksb_tmux_cmds .show_status_option ()
162- if ok then
163- lines = lines - status_option
164- end
165- end
166151 if y < 0 then
167152 -- adjust when on first line of terminal
168153 lines = lines + math.abs (y )
@@ -217,7 +202,6 @@ local function load_requires()
217202 ksb_api = require (' kitty-scrollback.api' )
218203 ksb_keymaps = require (' kitty-scrollback.keymaps' )
219204 ksb_kitty_cmds = require (' kitty-scrollback.kitty_commands' )
220- ksb_tmux_cmds = require (' kitty-scrollback.tmux_commands' )
221205 ksb_util = require (' kitty-scrollback.util' )
222206 ksb_autocmds = require (' kitty-scrollback.autocommands' )
223207 ksb_health = require (' kitty-scrollback.health' )
@@ -298,7 +282,6 @@ M.setup = function(kitty_data_str)
298282
299283 ksb_util .setup (p , opts )
300284 ksb_kitty_cmds .setup (p , opts )
301- ksb_tmux_cmds .setup (p , opts )
302285 ksb_win .setup (p , opts )
303286 ksb_footer_win .setup (p , opts )
304287 ksb_autocmds .setup (p , opts )
@@ -327,15 +310,12 @@ end
327310
328311--- @class KsbKittyGetTextArguments
329312--- @field kitty string kitty args for get-text
330- --- @field tmux string tmux args for capture-pane
331313
332314--- @return KsbKittyGetTextArguments
333315local function get_text_opts ()
334316 local ansi = ' --ansi'
335- local tmux_ansi = ' -e'
336317 if not opts .kitty_get_text .ansi then
337318 ansi = ' '
338- tmux_ansi = ' '
339319 end
340320
341321 local clear_selection = ' --clear-selection'
@@ -344,23 +324,17 @@ local function get_text_opts()
344324 end
345325
346326 local extent = ' --extent=all'
347- local tmux_extent = ' -S - -E -'
348327 local extent_opt = opts .kitty_get_text .extent
349328 if extent_opt then
350329 extent = ' --extent=' .. extent_opt
351- if extent_opt == ' screen' then
352- tmux_extent = ' -S 0 -E -'
353- end
354330 end
355331
356332 -- always add wrap markers, wrap markers are important to add blank lines with /r to
357333 -- fill the screen when setting the cursor position
358334 local add_wrap_markers = ' --add-wrap-markers'
359- local tmux_add_wrap_markers = ' -J'
360335
361336 return {
362337 kitty = ansi .. ' ' .. clear_selection .. ' ' .. add_wrap_markers .. ' ' .. extent ,
363- tmux = tmux_ansi .. ' ' .. tmux_add_wrap_markers .. ' ' .. tmux_extent ,
364338 }
365339end
366340
0 commit comments