1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[8719],{7082:(t,e,r)=>{r.d(e,{R:()=>i,x:()=>d});var n=r(758);const o={},s=n.createContext(o);function i(t){const e=n.useContext(s);return n.useMemo((function(){return"function"==typeof t?t(e):{...e,...t}}),[e,t])}function d(t){let e;return e=t.disableParentContext?"function"==typeof t.components?t.components(o):t.components||o:i(t.components),n.createElement(s.Provider,{value:e},t.children)}},8450:(t,e,r)=>{r.r(e),r.d(e,{assets:()=>a,contentTitle:()=>d,default:()=>l,frontMatter:()=>i,metadata:()=>n,toc:()=>c});const n=JSON.parse('{"id":"dnd","title":"Drag and Drop","description":"How to use Drag and Drop in Yazi","source":"@site/docs/dnd.md","sourceDirName":".","slug":"/dnd","permalink":"/docs/next/dnd","draft":false,"unlisted":false,"editUrl":"https://github.com/yazi-rs/yazi-rs.github.io/edit/main/docs/dnd.md","tags":[],"version":"current","sidebarPosition":5,"frontMatter":{"sidebar_position":5,"description":"How to use Drag and Drop in Yazi"},"sidebar":"docsSidebar","previous":{"title":"Image Preview","permalink":"/docs/next/image-preview"},"next":{"title":"Plugins (BETA)","permalink":"/docs/next/plugins/overview"}}');var o=r(6070),s=r(7082);const i={sidebar_position:5,description:"How to use Drag and Drop in Yazi"},d="Drag and Drop",a={},c=[{value:"Demo",id:"demo",level:2},{value:"Workaround",id:"workaround",level:2}];function h(t){const e={a:"a",code:"code",h1:"h1",h2:"h2",header:"header",p:"p",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,s.R)(),...t.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(e.header,{children:(0,o.jsx)(e.h1,{id:"drag-and-drop",children:"Drag and Drop"})}),"\n",(0,o.jsx)(e.p,{children:"Yazi has built-in Drag and Drop support, which means you can drag files from Yazi to other apps, or drop files from other apps into Yazi."}),"\n",(0,o.jsxs)(e.p,{children:["For this feature to work, your terminal needs to support ",(0,o.jsx)(e.a,{href:"https://sw.kovidgoyal.net/kitty/dnd-protocol/",children:"The Drag and Drop protocol"}),". It's a pretty new protocol, and right now only the following terminals support it:"]}),"\n",(0,o.jsxs)(e.table,{children:[(0,o.jsx)(e.thead,{children:(0,o.jsxs)(e.tr,{children:[(0,o.jsx)(e.th,{children:"Terminal"}),(0,o.jsx)(e.th,{children:"Support"})]})}),(0,o.jsxs)(e.tbody,{children:[(0,o.jsxs)(e.tr,{children:[(0,o.jsxs)(e.td,{children:[(0,o.jsx)(e.a,{href:"https://github.com/kovidgoyal/kitty",children:"kitty"})," (>= v0.47.1)"]}),(0,o.jsx)(e.td,{children:"\u2705 Supported"})]}),(0,o.jsxs)(e.tr,{children:[(0,o.jsxs)(e.td,{children:[(0,o.jsx)(e.a,{href:"https://iterm2.com",children:"iTerm2"})," (>= 3.7.0 beta10)"]}),(0,o.jsxs)(e.td,{children:["\u2705 ",(0,o.jsxs)(e.a,{href:"https://gitlab.com/gnachman/iterm2/-/work_items/12961",children:["Landed on ",(0,o.jsx)(e.code,{children:"master"})]})]})]}),(0,o.jsxs)(e.tr,{children:[(0,o.jsx)(e.td,{children:"Ghostty"}),(0,o.jsx)(e.td,{children:(0,o.jsx)(e.a,{href:"https://github.com/ghostty-org/ghostty/discussions/12851",children:"Accepted to support"})})]})]})]}),"\n",(0,o.jsx)(e.p,{children:"I'm excited to see more terminals supporting it in the future!"}),"\n",(0,o.jsx)(e.h2,{id:"demo",children:"Demo"}),"\n",(0,o.jsx)("video",{src:"https://github.com/user-attachments/assets/b886f673-ef83-423f-919a-66dfe2779ba4",width:"80%",controls:!0,muted:!0}),"\n",(0,o.jsx)(e.h2,{id:"workaround",children:"Workaround"}),"\n",(0,o.jsxs)(e.p,{children:["If your terminal doesn't support the DnD protocol, you might want to try ",(0,o.jsx)(e.a,{href:"/docs/tips#drag-and-drop",children:"this workaround"}),"."]})]})}function l(t={}){const{wrapper:e}={...(0,s.R)(),...t.components};return e?(0,o.jsx)(e,{...t,children:(0,o.jsx)(h,{...t})}):h(t)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.