Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOS: Dragging multiple files on the terminal does not separate them #4734

Closed
alappe opened this issue Feb 23, 2022 · 5 comments
Closed

macOS: Dragging multiple files on the terminal does not separate them #4734

alappe opened this issue Feb 23, 2022 · 5 comments
Labels

Comments

@alappe
Copy link

alappe commented Feb 23, 2022

Describe the bug
When I drag multiple files from the finder onto the terminal, the file paths are listed, but they are not separated with a space, thus rather unusable. I am unsure, but I'd say this has worked before and it certainly is the behaviour in other terminals.

To Reproduce
Steps to reproduce the behavior:

  1. Open a Finder window with some files in it.
  2. Drag two or more onto your terminal.
  3. See error

Environment details

kitty 0.24.2 created by Kovid Goyal
Darwin style.fritz.box 21.3.0 Darwin Kernel Version 21.3.0: Wed Jan  5 21:37:58 PST 2022; root:xnu-8019.80.24~20/RELEASE_ARM64_T6000 arm64
ProductName:    macOS ProductVersion:   12.2.1 BuildVersion:    21D62
Frozen: True
Paths:
  kitty: /Applications/kitty.app/Contents/MacOS/kitty
  base dir: /Applications/kitty.app/Contents/Resources/kitty
  extensions dir: /Applications/kitty.app/Contents/Resources/Python/lib/kitty-extensions
  system shell: /bin/zsh

Additional context
Try to reproduce the problem with kitty --config NONE: Same behaviour.

@alappe alappe added the bug label Feb 23, 2022
@page-down
Copy link
Contributor

Also paths do not escape characters such as spaces, or use quotation marks. This also makes it difficult to use with multiple files.

However I like the file path to remain as it is when dragging single file. ( without escaping )

I' m not sure if the style should be unified or treated differently.

@page-down
Copy link
Contributor

Line breaks will cause paths to be executed as commands in unsupported shells, or shells that cannot be integrated.

Even in a text editor, it may be possible to run the built-in "terminal mode".

Maybe space-separated is a better default.

@kovidgoyal
Copy link
Owner

kovidgoyal commented Feb 25, 2022 via email

@kovidgoyal
Copy link
Owner

Oh an dmodern shells support bracketed paste, so unless they are badly configured, pasted newlines dont cause command execution.

@page-down
Copy link
Contributor

So command-line programs like busybox sh or others that do not support bracketed paste are not supported.

If some users have such special needs, they should use other terminals for these drag-and-drop tasks.

Personally, I would never drag and drop content into these programs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants