Git Product home page Git Product logo

Comments (2)

barneywilliams avatar barneywilliams commented on July 17, 2024

JC,

I have been wanting that support for a long while and definitely +1 this.
The window vim-ish window splitting should work just fine in Sublime. I
have used it a little in the past, so I might take a crack at it if I can
dig up some free time. Not quite sure when that may be though... ;) Maybe
someone else will beat me to it.

Greg

On Tue, Sep 11, 2012 at 9:05 PM, JC Grubbs [email protected] wrote:

I know almost nothing about Python OR the internals of SublimeText
otherwise I'd do this as a pull request but I'd love to see window
management commands such as :vs and :sp added. The basic windowing approach
seems somewhat different from vim so this may not be able to work exactly
as vim does but being able to open a new file in a vertical or horizontal
split window would be fantastic.


Reply to this email directly or view it on GitHubhttps://github.com//issues/15.

Greg Williams | Embedded Craftsman
Atomic Embedded | http://atomicembedded.com
[Ph] +1 616 264 3734 [Fx] +1 616 776 6015

from vintageex.

masukomi avatar masukomi commented on July 17, 2024

according to this post it should be doable with something like this:

import sublime_plugin

class CloneFileToGroupCommand(sublime_plugin.WindowCommand):
    def run(self):
        if self.window.num_groups() == 1:
            self.window.run_command('set_layout',
                            {
                                "cols": [0.0, 0.5, 1.0],
                                "rows": [0.0, 1.0],
                                "cells": [[0, 0, 1, 1], [1, 0, 2, 1]]
                            })
        self.window.run_command('clone_file')
        self.window.run_command('move_to_group', {"group": 1})

from vintageex.

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.