Coder Social home page Coder Social logo

Comments (7)

gepd avatar gepd commented on May 29, 2024

I'll investigate if it is possible to do that in ST

from deviot.

smartsystemdesign avatar smartsystemdesign commented on May 29, 2024

Thank you. This plug in is awesome. Huge time saver to program in Sublime Text.

from deviot.

gepd avatar gepd commented on May 29, 2024

Thanks @smartsystemdesign

I've find a solution but It will available in the next relese, to add it manually please open the file

libs > Messages.py (ST Menu > Preferences > Browse Packages and look for the Deviot folder)

Inside of the MonitorView class look for the method println and replace it for:

    def println(self, text):
        try:
            from .Preferences import Preferences
        except:
            from libs.Preferences import Preferences

        # Preferences to auto-scroll
        auto_scroll = Preferences().get('auto_scroll', True)

        self.view.set_read_only(False)
        pos = self.view.size()

        if python_version < 3:
            edit = self.view.begin_edit()           
            self.view.insert(edit, pos, text)
            self.view.end_edit(edit)
        else:
            if(auto_scroll):
                self.view.show(pos)
            self.view.run_command("append", {"characters": text})
        self.view.set_read_only(True)

make sure to copy the white spaces before def println to avoid sintaxis problems

You will be able to disable this option in the next release, in the main time it's activate by default

from deviot.

smartsystemdesign avatar smartsystemdesign commented on May 29, 2024

Thanks, a big improvement. One more request, is it possibly to make it scroll after each line is printed instead of waiting for 30 lines and then scrolling? That way, I can just look at the bottom of the page for current data.

For other users, libs can be found here:
C:\Users\UserName\AppData\Roaming\Sublime Text 3\Packages\Deviot\libs

from deviot.

gepd avatar gepd commented on May 29, 2024

What O.S are you using? When I tested, it scrolled line by line, not after 30.

from deviot.

smartsystemdesign avatar smartsystemdesign commented on May 29, 2024

Windows 10 Pro 64 bit.

from deviot.

gepd avatar gepd commented on May 29, 2024

I've released a new version of the plugin which includes the option Auto-Scroll unde the Monitor Serial Menu list

I've tested what you said about the 30 lines, it seems to be an issue of ST, but when I let the cursor in the last line, it seems to work better. I keep trying to look a better solution, but at least now I know what you mean.

from deviot.

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.