Comments (7)
I'll investigate if it is possible to do that in ST
from deviot.
Thank you. This plug in is awesome. Huge time saver to program in Sublime Text.
from deviot.
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.
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.
What O.S are you using? When I tested, it scrolled line by line, not after 30.
from deviot.
Windows 10 Pro 64 bit.
from deviot.
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)
- Support for python3 HOT 6
- Poorly colored .ino source
- bad cpu type in executable
- As platformio now requires python 3.x while Deviot requires 2.x, is Deviot no more ? Any work-around ? HOT 3
- Most buttons do nothing HOT 1
- Japanese Language missing
- the board list won't open HOT 4
- Python 3, pio cannot upgrade? HOT 1
- Sublimetext 4 no deviot HOT 4
- ST4 install library fail HOT 5
- Guide: Running Deviot with ST3 / ST4, PlatformIO 5, and Python 3.6+ HOT 10
- OSX: Serial ports not showing on big Sur HOT 2
- ST4: serial monitor footer colors
- not reconigced
- MacOS examples shows nothing
- can't see devio menu HOT 4
- Guide: Fix Deviot menu & syntax highlighting missing HOT 1
- python HOT 1
- Select board HOT 5
- Select Board Not Working After Installing Deviot HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deviot.