• [^] # Re: wezterm

    Posté par . En réponse au journal Quelques gemmes en CLI. Évalué à 2.

    Merci pour le lien, je ne connaissais pas.

    Dans les terminaux actuels, il est difficile de se faire une place, mais j'ai l'impression qu'il monte doucement. Il est pas révolutionnaire, il n'a pas de killer feature, mais il fait bien tout ce qu'il fait j'ai l'impression.

    J'ai juste trouvé dommage qu'il ne semble pas avoir de gestion out of the box du clipboard et du coup j'ai un truc comme ça :

    function make_mouse_binding(dir, streak, button, mods, action)
     return {
     event = { [dir] = { streak = streak, button = button } },
     mods = mods,
     action = action,
     }
    end
    config.mouse_bindings = {
     make_mouse_binding('Up', 1, 'Left', 'NONE', wezterm.action.CompleteSelectionOrOpenLinkAtMouseCursor 'PrimarySelection'),
     make_mouse_binding('Up', 1, 'Left', 'SHIFT', wezterm.action.CompleteSelectionOrOpenLinkAtMouseCursor 'PrimarySelection'),
     make_mouse_binding('Up', 1, 'Left', 'ALT', wezterm.action.CompleteSelection 'PrimarySelection'),
     make_mouse_binding('Up', 1, 'Left', 'SHIFT|ALT', wezterm.action.CompleteSelectionOrOpenLinkAtMouseCursor 'PrimarySelection'),
     make_mouse_binding('Up', 2, 'Left', 'NONE', wezterm.action.CompleteSelection 'PrimarySelection'),
     make_mouse_binding('Up', 3, 'Left', 'NONE', wezterm.action.CompleteSelection 'PrimarySelection'),
    }

    https://linuxfr.org/users/barmic/journaux/y-en-a-marre-de-ce-gros-troll