Skip to content

Mapping/command to move to beginning/end of blocks, parent blocks? #1

@jeetsukumaran

Description

@jeetsukumaran

Is there such? If not, would it be possible to request it?

Nice movements would be:

  • end of current block
  • beginning of current block
  • beginning of parent block
  • beginning of next block at higher level

E.g.,
Given:

1:  class A(object):
.
.       
2:      def func1():
.           [main func1 body]
.
3:          if x:
4:              [stuff]
.
.
5:          else:
.               [stuff]             
.
6:          [more main func1 body]
.
.
7:      def func2()
.
.

(1) If the cursor is between line 4 (inclusive) and 5 (exclusive), then would move to the line just before [5].

(2) If the cursor is between line 4 (inclusive) and 5 (exclusive), then would move to [4]

(3) If the cursor is between line 4 (inclusive) and 5 (exclusive), then would move to [3]

(4) If the cursor is between line 4 (inclusive) and 5 (exclusive), then would move to [7]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions