GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Multi-line editing (functions, classes) · Issue #111 · bpython/bpython

Multi-line editing (functions, classes) #111

New issue
Copy link
New issue
Copy link
Closed
Closed
Multi-line editing (functions, classes)#111
Copy link
Labels
duplicateenhancementproposal

Description

@ikanobori
ikanobori
opened on Jul 4, 2014
Issue body actions

It'd be nice if you could edit entire functions or classes without going line by line. Basically treat any multi-line input as a single entry in the history (like in bash), and have also add a mode where you can edit the multi-line text, using arrow keys to move around within the multi-line text.

So if I had something like

#!python
>>> def func():
...     do_stuff()
...     print x
>>>
>>> (press up arrow once)
>>> def func():
...    do_stuff()
...    print x

And then you'd hit some key combo to go into "edit" mode, which would let you edit any line of the function using the arrow keys to move around like in a regular text editor. Hitting enter in the middle of a function would add additional lines; hitting enter at the end would behave the same as normal input. When the prompt is complete, it'd evaluate the entire input.


  • Bitbucket: https://bitbucket.org/bobf/bpython/issue/111
  • Originally Reported By: Anonymous
  • Originally Created At: 2010-03-21T07:13:25.618
Reacted by Hunter xue and Dmitry Stepanov

Activity

  1. ikanobori
    closed this as completedon Jul 4, 2014
  2. ikanobori commented on Jul 4, 2014

    @ikanobori
    ikanobori
    on Jul 4, 2014
    ContributorAuthor
    More actions

    Duplicate of #22.


    Original Comment By: Andreas Stührk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateenhancementproposal

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.