Git Product home page Git Product logo

Comments (3)

KillianLucas avatar KillianLucas commented on May 13, 2024

Hi @sankethgadadinni! Definitely, in fact on some operating systems like Mac you can already do this by dragging a file into your terminal. This will paste in the file or folder's absolute path, which is all Open Interpreter needs to work with it. We should add a video demo soon:

$: interpreter

> Hey can you resize this photo to 1000x1000?
  (try dragging a file in at this point, which pastes its absolute path on some systems)
  /Users/killianlucas/Desktop/photo.png

  Sure, I can help with that. Here's the plan:

  1. First, I will check if the required Python library PIL (Pillow) is installed on your system...

Related: #1 for a discussion of a UI that would support file dropping, conversation history, image display, etc. We'll need to do this to support operating systems that don't support dragging and dropping into terminal, or figure out how to use curses or dragon.

What OS do you use? It would be great if we knew which systems supported this behavior (I only know Mac does) then we could add that to the documentation.

from open-interpreter.

nirvor avatar nirvor commented on May 13, 2024

It would be great if we knew which systems supported this behavior (I only know Mac does) then we could add that to the documentation.

I tested it (dragging a file into the interpreter chat CLI + see if the path gets pasted + if the interpreter finds the path and file) with

  • Ubuntu 23
  • Windows 11 CLI

--> Worked on both systems, too, without issues

from open-interpreter.

KillianLucas avatar KillianLucas commented on May 13, 2024

Thanks @nirvor! Just updated the documentation with a demo.

I think we can consider drag-and-drop to be a core/supported feature of Open Interpreter instead of specifying supported systems — Windows + Ubuntu + Mac is cross-platform enough for me. Let's make a note in the docs of it not working on any systems/terminals though, if we find them.

from open-interpreter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.