mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-06 01:05:48 +02:00
Add flag to specify drop directory for dnd kitten
This commit is contained in:
@@ -139,7 +139,12 @@ func (dnd *dnd) run_loop() (err error) {
|
||||
debugprintln("dnd kitten exiting with error: ", err)
|
||||
}
|
||||
}()
|
||||
base_dir, err := os.Getwd()
|
||||
base_dir := dnd.opts.DropDest
|
||||
if base_dir == "" {
|
||||
base_dir, err = os.Getwd()
|
||||
} else {
|
||||
base_dir, err = filepath.Abs(base_dir)
|
||||
}
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
@@ -20,6 +20,10 @@ it will prevent that MIME type being dropped, useful to disable accepting text/p
|
||||
text/uri-list.
|
||||
|
||||
|
||||
--drop-dest
|
||||
Path to the directory in which dropped data is saved. Defaults to the current working directory.
|
||||
|
||||
|
||||
--confirm-drop-overwrite
|
||||
type=bool-set
|
||||
Ask for confirmation when dropping text/uri-list data if the drop will cause any existing
|
||||
|
||||
Reference in New Issue
Block a user