Skip to content

Instantly share code, notes, and snippets.

@dohzya
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dohzya/9370517 to your computer and use it in GitHub Desktop.
Save dohzya/9370517 to your computer and use it in GitHub Desktop.

I have this code

module M1
  module M2
    module M3
      module M4
        module M5
          def foo; end
a = 1
b = 2
c = 3
d = 4
        end
      end
    end
  end
end

1. Top-down

If I put my cursor before a and expand it (using ctrl+shift+down) until d, when I press tab:

module M1
  module M2
    module M3
      module M4
        module M5
          def foo; end
          a = 1
          b = 2
          c = 3
          d = 4
        end
      end
    end
  end
end

2. Bottom-up 1

If I put my cursor before d and expand it (using ctrl+shift+down) until a, when I press tab:

module M1
  module M2
    module M3
      module M4
        module M5
          def foo; end
          a = 1
  b = 2
  c = 3
  d = 4
        end
      end
    end
  end
end

3. Bottom-up 2

If I put my cursor before d and expand it (using ctrl+shift+down) until a, when I press tab 2 times:

module M1
  module M2
    module M3
      module M4
        module M5
          def foo; end
            a = 1
          b = 2
    c = 3
    d = 4
        end
      end
    end
  end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment