Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 06:53 28 Nov 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : MMEdit V 5.1

     Page 3 of 8    
Author Message
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6100
Posted: 09:47pm 29 Apr 2023
Copy link to clipboard 
Print this post

  Andrew_G said  Hi Jim,
Thanks.

  Quote  You can add it to your copy to save waiting for the next update.


Sorry, but how? In Notepad (or ++) it looks like something I don't want to mess with.

Cheers,

Andrew

The .tkn files are just text files. I use notepad++ to alter them. Just add any missing keyword to the end with a space between words.
Also let me know so I can do the same.

The current picomite.tkn file has mm.info but not mm.info$. I have fixed that for the next release.

You might also notice some keywords have multiple entries
left left$ left$( etc. this allows the kw to be highlighted and included in the predictive text list as you enter.

Jim
VK7JH
MMedit   MMBasic Help
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6100
Posted: 09:51pm 29 Apr 2023
Copy link to clipboard 
Print this post

  Volhout said  Hi

5.1.2 works fine. The only odd thing I noticed that sometimes when opening a progam, it refuzes to send it to the pico, until I save it first. Essentially writing the same program on the same location on disk.

This is the linux version.
This was also happening in 5.0

No big issue for me, I am perfectly happy with 5.1.2 as is.

Volhout


I will see if I can repeat that problem here. I don't test the Linux version as fully as I should.


Jim
VK7JH
MMedit   MMBasic Help
 
Andrew_G
Guru

Joined: 18/10/2016
Location: Australia
Posts: 847
Posted: 10:39pm 29 Apr 2023
Copy link to clipboard 
Print this post

Hi Jim,
My bad.
I was looking at . . ./MMEdit/MMEdit.tkn (which is not text).
I should have been looking at . . ./MMEdit/Data/picomite.tkn (which is).
Easily fixed now.

Thanks again,

Andrew
 
Turbo46

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1611
Posted: 11:35pm 29 Apr 2023
Copy link to clipboard 
Print this post

Hi Jim,
Understandably there is no tkn file for MMB4W, can one add one by (say) copying the CMM2.tkn file and making some adjustments as appropriate and calling it MMB4W.tkn?

Also I would like you to reconsider the decision to not add a preference for a default folder for inserting files. Pinning it to Quick Access works but seems a bit 'kludgy' and I always have to navigate to it from the place where I am storing the program.

Bill
Keep safe. Live long and prosper.
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6100
Posted: 12:15am 30 Apr 2023
Copy link to clipboard 
Print this post

  Andrew_G said  Hi Jim,
My bad.
I was looking at . . ./MMEdit/MMEdit.tkn (which is not text).
I should have been looking at . . ./MMEdit/Data/picomite.tkn (which is).
Easily fixed now.

Thanks again,

Andrew


I am not sure if it will fix the crunch problem. I will have to work on it.

Jim
VK7JH
MMedit   MMBasic Help
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6100
Posted: 12:21am 30 Apr 2023
Copy link to clipboard 
Print this post

  Quote  Hi Jim,
Understandably there is no tkn file for MMB4W, can one add one by (say) copying the CMM2.tkn file and making some adjustments as appropriate and calling it MMB4W.tkn?

Yes, That is what I have done here but I was waiting for the manual to alter the list.

  Quote  
Also I would like you to reconsider the decision to not add a preference for a default folder for inserting files. Pinning it to Quick Access works but seems a bit 'kludgy' and I always have to navigate to it from the place where I am storing the program.

Bill


I will look at it again. It will be an option or maybe an additional menu item, not all in.

Jim
VK7JH
MMedit   MMBasic Help
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6100
Posted: 07:00am 30 Apr 2023
Copy link to clipboard 
Print this post

@Andrew,
I have made a change to the 'crunch' routine so it leaves the space before a quote more often. It should fix your problem.

@Bill,
In the Edit menu there is an item "Include file from store". (shortcut Alt-I)
To set the 'include' folder, hold shift when clicking the menu then select any file from your include folder. The folder will then be remembered.

The files in the ZIP also have the auto-configure device code in MMCC. To disable this, there is a menu item in Setup.

@Volhout
Files are normally saved before sending to MMCC only if they have been altered. I will change the Linux behavior to always save before sending. That should fix your issue. The Linux updates will have to wait a couple of days for me to finish a few other tweaks.


MMedit5.zip
64 bit EXE files only.

Jim
VK7JH
MMedit   MMBasic Help
 
Andrew_G
Guru

Joined: 18/10/2016
Location: Australia
Posts: 847
Posted: 10:11pm 30 Apr 2023
Copy link to clipboard 
Print this post

Hi Jim,
Many thanks - that does the trick.

Andrew
 
Turbo46

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1611
Posted: 10:59pm 30 Apr 2023
Copy link to clipboard 
Print this post

Thanks Jim,
I haven't tried it yet. I suppose the intention is to replace the files in the Programs folder?

Bill
Keep safe. Live long and prosper.
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6100
Posted: 11:06pm 30 Apr 2023
Copy link to clipboard 
Print this post

  Turbo46 said  Thanks Jim,
I haven't tried it yet. I suppose the intention is to replace the files in the Programs folder?

Bill


Yes

I am in the process of adding a "Save as in Store" menu item as well as "Open from Store".
That will make using the include folder more usable.
Edited 2023-05-01 09:09 by TassyJim
VK7JH
MMedit   MMBasic Help
 
Turbo46

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1611
Posted: 03:18am 06 May 2023
Copy link to clipboard 
Print this post

Hi Jim, It seems like the intention is to colour code subs and function names with the default colour brown (or similar). It doesn't seem to work all of the time.

sub isnumb a$
? a$
end sub

doesn't turn isnumb brown but:
sub isnumber a$
? a$
end sub

does

The same with functions, it seems to me that the name needs to be eight characters long more or less doesn't do it.

Bill
Keep safe. Live long and prosper.
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 3804
Posted: 06:45am 06 May 2023
Copy link to clipboard 
Print this post

  Turbo46 said  Hi Jim, It seems like the intention is to colour code subs and function names with the default colour brown (or similar). It doesn't seem to work all of the time.

sub isnumb a$
? a$
end sub

doesn't turn isnumb brown but:
sub isnumber a$
? a$
end sub

does

The same with functions, it seems to me that the name needs to be eight characters long more or less doesn't do it.

Bill

What happens with

sub isnumb(a$)
? a$
end sub


John
 
Turbo46

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1611
Posted: 07:07am 06 May 2023
Copy link to clipboard 
Print this post

Went back to test and now it's not colour coding it at all?


But here it is



I'm confused


Bill
Keep safe. Live long and prosper.
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 4247
Posted: 07:25am 06 May 2023
Copy link to clipboard 
Print this post

Save the program.
After the save, all highlighting is correct..
PicomiteVGA PETSCII ROBOTS
 
Turbo46

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1611
Posted: 07:52am 06 May 2023
Copy link to clipboard 
Print this post

Thanks Volhout, when I reloaded it the colour coding was there but earlier it changed to brown as I typed the eight character and then back to black as I deleted the last character. Other entries are colour coded as you type them so I'm still a bit confused.

Bill
Keep safe. Live long and prosper.
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6100
Posted: 12:49pm 06 May 2023
Copy link to clipboard 
Print this post

The line that the sub is defined is only updated when you press <enter>
(and a few other times)

I have recently made a few improvements regarding the colourcoding of user subs and it might help here.
I have a few other things to sort out before I release the update.

Jim
VK7JH
MMedit   MMBasic Help
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6100
Posted: 11:12pm 06 May 2023
Copy link to clipboard 
Print this post

I shouldn't answer posts late at night.

User sub names are only entered into the keyword lists when you press enter to leave the line as you define the SUB.
Updating as you type would slow a long program down unacceptably.

Once in the list, the word will turn brown when it is complete, just like builtin keywords.
When you swap tabs, the list is saved and reloaded to suit the new tab.

When a program is loaded, the program gets scanned to make the user list for that program.
This is where there was an issue. You could load the program and the user subs would not be highlighted until you changed tabs then back again.
This is the issue I fixed a couple of days ago and will be in the next update.

I also need to provide a "refresh" menu item. Currently, if you change the name of a sub, the old name remains in the list until the program is re-loaded.

Earlier in the week I had surgery which stopped me from doing physical things around the house so I decided to have a go at automating keyword list. This involves scanning all the mmbasic source files. How hard could it be...
I am beginning to think I would rather just have more surgery.

Jim
VK7JH
MMedit   MMBasic Help
 
Turbo46

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1611
Posted: 11:31pm 06 May 2023
Copy link to clipboard 
Print this post

Thanks Jim,
I think that explains why the colour changed as I typed the eighth character. Because it was already in the list and adding one more or deleting one meant that it wasn't one that was in the list. For the other list of three subs above I think I just copied and pasted them, edited them and used the mouse to move around.

I hope your surgery went well. It's a bugger getting older.  

One thing I meant to ask: is it possible to disable the auto prediction as you type? Sometimes I find it gets in my way.

Bill
Keep safe. Live long and prosper.
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6100
Posted: 02:42am 07 May 2023
Copy link to clipboard 
Print this post

  Turbo46 said  
One thing I meant to ask: is it possible to disable the auto prediction as you type? Sometimes I find it gets in my way.

Bill


in MMEdit.inf
in the Options section, about line 136

Auto complete = 1

Change that to 0

Jim
VK7JH
MMedit   MMBasic Help
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 4247
Posted: 06:58pm 07 May 2023
Copy link to clipboard 
Print this post

Hi Jim,

I hope you are recovering well from the surgery. Take it easy man, don't stress yourself solving MMEdit issues.

I am using 5.12 (linux 64 bit) with lots of satisfaction. Only notice that sometimes MMCC sending listing to editor does not work. But since file manager works copying and re-opening in MMEdit works for me just as well.

Volhout
PicomiteVGA PETSCII ROBOTS
 
     Page 3 of 8    
Print this page
© JAQ Software 2024