Git Product home page Git Product logo

Comments (3)

cscheid avatar cscheid commented on August 22, 2024

We should find what's the standard in other places.

@s-u, what's the OS X R client behavior?

And what's the rstudio behavior? @smschauhan, do you know that?

from rcloud.

s-u avatar s-u commented on August 22, 2024

In the OS X editor <Cmd><Enter> executes the selection (if any) or the current line (if there is no selection).

In the OS X R command prompt <Alt><Enter> inserts a new line, everything else executes the entire content. You cannot execute a partial input at the prompt - multi-line execution is no different than line-by-line since there are no separate cells.

I don't think "a line at a time" makes sense in RCloud at the moment, because we don't support continuations - every evaluation has to be a valid expression.

from rcloud.

gordonwoodhull avatar gordonwoodhull commented on August 22, 2024

My only strong feeling is that the key should be different from what we are using to execute a cell, even though those situations are mutually exclusive (you can't execute part of a cell, and you don't need a special execute command in the input widget).

Right now we are using Command/Ctrl-Enter in the cells. So I'm putting execute-selection on Alt-Enter for the input widget for now. But I'll be happy to remap if we come up with a different scheme.

from rcloud.

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.