-
-
Notifications
You must be signed in to change notification settings - Fork 492
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[idea] virtual files (or tabs) inside cartridges.. for organize libs, classes, etc #2414
Comments
I agree with this. If tic-80 supports virtual files, |
i imagine the editor are watching for user puts a comment like then the user inserts a comment like and the editor create a tab and show the code from this comment below (it trims the name to some chars) hovering the "shapes" tab shows a list of all active tabs..... and to delete a tab (merge 2 consecutive tabs) is enough with delete the |
Isnt this just bookmark with extra steps? I think the real solution to this is to make bookmarks saved between sessions |
Just some oldschool input: in qbasic, each function/subroutine was separated and the editor showed only one at a time. A hotkey would bring up a window with the full list, sorted by module if other modules had been imported. I remember being shocked when I moved to other IDEs and realised this was not normal 😄 |
that is... often when our code grows it got more difficult to navigate, and coding turn less efficient tangled and consuming
there are some code snippets, functions, libs, classes, etc, that would be much better organized in separate files (or TABS)... often in more "serious" programs these elements are separated in files/packages and invoked with
include
orrequire
i read tic80 also supports
require
function to load external lua files (and other languages?), but these must also be distributed along with cartridge in order to function correctly :( ... this idea comes to surpasses this limitation while keep code organized and easy at same time (like in arduino ide)maybe inside tic80 the
require
function is not even needed, should be enough with dividing entire code area in cartridge storage/ram in "pages" with some kind of deliniter (like an unlikely custom comment like-- tab1 foobarbazqux
for example) that is read as a whole by interpreter, but editor separates in fixed tabs (tab1-tab9?)the only real care i see is the
import/export code file.lua
new format, could becode1, code2, etc...
ortab1, tab2...
new paramenters for code tabsThe text was updated successfully, but these errors were encountered: