Jump to content



Photo
- - - - -

Code View Editor: What do want? Ideas, suggestions, priorities, bugs & WIP.

VPx VP10 Code View Editor

  • Please log in to reply
29 replies to this topic

#1 Brandrew

Brandrew

    Hobbyist

  • Members
  • PipPip
  • 36 posts
  • Location:Newcastle

  • Flag: United Kingdom

  • Favorite Pinball: Terminator 2

Posted 31 October 2015 - 02:58 PM

Currently working on: Admin - Change log - It's been too long without any documentation!

 

I realise most of you are using external VBS editors at the moment, so the minimum objective is to at least bring it up to a standard where external editors are no longer required. Please suggest your favourite/Most used feature please! A customised version of VBS. Then the real work of extending the Code View Editor (CVE) into the Table Editor can begin. In the future only the most basic level of understanding of VB will be required.

 

CVE Requirement  -  Priority L, M, [l,m,h]H  -  Status - Suggester
A: Intellisense & Word recognition.
   1. Parse for keywords

        1. Visual Basic   -  L    Done?
        2. Table components  -  L    Done?
        3. Local Subs, Functions & Structures  -  M Done
        3b. Members of Subs  -  M    Done -
        4. Component Names -   L    Done?
        5. Component Events (_Hit etc) -   M    To Do
        6. Core file -   H    Done?
        6b. Core Members  -  M  Done
        7.  Parse comments to Help & File Buffer -  H  ToDo  - lodger
        8. Parse external Libraries  -   L    To Do

        9. Individual word highlighting -  vH   Done - GTXJoe - LexerVP.dll rewrite required to implement

        10. Parse for for dims and list - H Done? - lodger

        11. Recognise Private & Public and act accordingly. - H To Do
    2. Auto complete    

        1. Pre-qualify suggestions from A:1.3b  -  VH  To Do   - WIP (This is the dot issue! )
        2. Mouse dwell information  -  H    Done?
        3. Complete word (Alt + right) -   H Done?
B: Preferences

    1. Fonts & Colour

        1. Colours -   L    Done?
        2. Fonts  -  L    Done?
        3. Back ground colours  -  L    To Do
    2. Auto complete    

        1. Choose list size   - L    To Do
        2. Enable / Disable (with context)  -  Done?
        3. Choose range (after 2 letters?)  -  Done?

        4. Turn off   H   Done - GTXJoe
    3. Mouse Dwell

        1. Set time to display  -  L    Done
        2. Mouse dwell information from Help -   M  WIP
C: Display/UI 

    1. Object Browser    

        1. Tree  -  M    To Do
    2. Tree/help info    

        1. Info box - M    To Do

    3. Remember box size

        1. Save size on exit - M   To Do

        2. Load size on entry - M   To Do

    4. Multi-Pane viewing -  M  To Do - lodger - This is a big job!

    5. Bookmarks - vH  To Do - lodger

     6. File Menu -  H   To Do  - GTXJoe

     7. Assets list - H  To Do - lodger

    8. Update Menus - M ToDo - arngrim

    9. Show undo list/ recent changes - M To Do- Shoopity

    10. copy and paste relevant code at the same time as table item- vH To Do - Arngrim

D: CVE Context Menu

    1. Go to    

        1. Sub / Function    L    To Do
        2. Table Component    L    To Do
    2. Create

        1. Sub / Function    L    To Do
E: TE Context Menu    

    1. Go to    

        1. Sub / Function    L    To Do
    2. Create    

        1. Sub / Function    L    To Do
F: Some kind of code clean up...   L To Do - FreneticA

G: Versioning    L    To Do

Status key:

Done? - It's never over till the fat lady sings on release day! (Just don't ask, I don't know :)  )
WIP - Work in Progress, something needs to be looked at again.
To Do - I hope this list will grow from your suggestions ;)
BUG - I got it wrong, badly, sorry.

I am trying to go for function over form but sometimes they overlap. I have been spending a lot of time reading the VP source code hence my slow start. There's a lot of dusty old corners of this code (10+ years) It's just like AMH and sometimes you can get lost!

The above list is incomplete without your suggestions and changes in priorities, and I look forward and value your input.

All the Best

Brandrew


Edited by Brandrew, 21 December 2015 - 08:21 PM.


#2 lodger

lodger

    Board Certified Funk Master

  • Members
  • PipPipPipPip
  • 993 posts
  • Location:Altoona Pennsylvania

  • Flag: United States of America

  • Favorite Pinball: Whirlwind, TAF

Contributor

Posted 31 October 2015 - 03:49 PM

a few features that would be awesome to have would be bookmarks, and potentially multi pane viewing of code. this would be especially helpful for keeping track of variables, etc.


berzerk2_0logo.png

http://www.vpforums....&showfile=11819

Version 2.0- Released 2/27/16


#3 Brandrew

Brandrew

    Hobbyist

  • Members
  • PipPip
  • 36 posts
  • Location:Newcastle

  • Flag: United Kingdom

  • Favorite Pinball: Terminator 2

Posted 31 October 2015 - 03:59 PM

a few features that would be awesome to have would be bookmarks, and potentially multi pane viewing of code. this would be especially helpful for keeping track of variables, etc.

 

Yes that's what I forgot ;) Updated: C4 & C5 - I'll break that down later. Appreciated muchly.



#4 gtxjoe

gtxjoe

    VPF Veteran

  • VIP
  • 5,152 posts

  • Flag: United States of America

  • Favorite Pinball: Medieval Madness, AbraCadabra



Contributor

Posted 31 October 2015 - 07:34 PM

Hmmm,

 

- How about when you highlight a word, it highlights all other instances of the word

- Maybe add the File Menu to the editor also if not too difficult



#5 BorgDog

BorgDog

    We come in peace.. shoot to kill.. shoot to kill.

  • Members
  • PipPipPipPip
  • 1,427 posts
  • Location:Leavenworth, WA

  • Flag: United States of America

  • Favorite Pinball: Alien Star, TNA



Posted 31 October 2015 - 08:02 PM

One thing I've noticed lately and I'm not sure there is a way around, but in the editor if I'm typing for example the word sound and I have a sub called soundfx that as soon as I hit a space after the word sound it automatically puts soundfx in it's place even though I only want sound   kind of annoying, like autocorrect on my phone.  Any way to not have it do this, and only put the sub in if I hit enter or something?  keep in mind I'm not a programmer and if I was told I would need to be one to make tables I might have never started doing it, so all this is somewhat foreign to me (for instance I have no idea what CVE even is).  



#6 Brandrew

Brandrew

    Hobbyist

  • Members
  • PipPip
  • 36 posts
  • Location:Newcastle

  • Flag: United Kingdom

  • Favorite Pinball: Terminator 2

Posted 31 October 2015 - 08:51 PM

One thing I've noticed lately and I'm not sure there is a way around, but in the editor if I'm typing for example the word sound and I have a sub called soundfx that as soon as I hit a space after the word sound it automatically puts soundfx in it's place even though I only want sound   kind of annoying, like autocorrect on my phone.  Any way to not have it do this, and only put the sub in if I hit enter or something?  keep in mind I'm not a programmer and if I was told I would need to be one to make tables I might have never started doing it, so all this is somewhat foreign to me (for instance I have no idea what CVE even is).  

I call this minor bug! I'll sort it out. CVE = my pet name for Code View Editor :) as opposed to Table Editor (TE) (I ammened my post, thanks!)

It's actually caused by the CVE not parsing the Core.vbs in full. It's next on my list :good:


Edited by Brandrew, 31 October 2015 - 09:05 PM.


#7 Brandrew

Brandrew

    Hobbyist

  • Members
  • PipPip
  • 36 posts
  • Location:Newcastle

  • Flag: United Kingdom

  • Favorite Pinball: Terminator 2

Posted 31 October 2015 - 09:15 PM

Hmmm,

 

- How about when you highlight a word, it highlights all other instances of the word

- Maybe add the File Menu to the editor also if not too difficult

In two words, yes, yes. Thanks my good man! There on the todo list...



#8 lodger

lodger

    Board Certified Funk Master

  • Members
  • PipPipPipPip
  • 993 posts
  • Location:Altoona Pennsylvania

  • Flag: United States of America

  • Favorite Pinball: Whirlwind, TAF

Contributor

Posted 31 October 2015 - 10:29 PM

it would also be cool to have a feature that keeps track of what vars are dim'ed, likewise being able to list in the editor what assets i.e. sounds, etc are loaded to allow easy cut and past of names


berzerk2_0logo.png

http://www.vpforums....&showfile=11819

Version 2.0- Released 2/27/16


#9 Brandrew

Brandrew

    Hobbyist

  • Members
  • PipPip
  • 36 posts
  • Location:Newcastle

  • Flag: United Kingdom

  • Favorite Pinball: Terminator 2

Posted 01 November 2015 - 07:55 AM

it would also be cool to have a feature that keeps track of what vars are dim'ed, likewise being able to list in the editor what assets i.e. sounds, etc are loaded to allow easy cut and past of names

I need to parse for vars soon anyway, but I think I understand where your coming from when keeping a track of dimensioned arrays :)

As for the assets list idea? It's a corker!

Thanks, again! :)



#10 toxie

toxie

    VPF Veteran

  • VP Dev Team
  • PipPipPipPipPipPip
  • 5,734 posts
  • Location:berlin, germany

  • Flag: Germany

  • Favorite Pinball: AFM

Posted 01 November 2015 - 12:58 PM

Also could the currently selected text be inserted into the search dialog automatically when it is opened?



#11 arngrim

arngrim

    DJ Force Feedback

  • VIP
  • 2,188 posts
  • Location:Charleroi, Belgium

  • Flag: Belgium

  • Favorite Pinball: Monster bash



Posted 01 November 2015 - 01:57 PM

search and replace option :)



#12 gtxjoe

gtxjoe

    VPF Veteran

  • VIP
  • 5,152 posts

  • Flag: United States of America

  • Favorite Pinball: Medieval Madness, AbraCadabra



Contributor

Posted 01 November 2015 - 08:59 PM

Regarding autocomplete that BorgDog brought up.  Is there a way to disable autocomplete?  

 

Also what is the expected way to type a new word, like sound (where autocomplete suggests soundFx)?  Is hitting the esc key the expected way?



#13 Brandrew

Brandrew

    Hobbyist

  • Members
  • PipPip
  • 36 posts
  • Location:Newcastle

  • Flag: United Kingdom

  • Favorite Pinball: Terminator 2

Posted 02 November 2015 - 02:58 PM

search and replace option :)

Ctrl-F  = Find

Ctrl-H = Replace

F3 = Find Next

Menus need updating!



#14 arngrim

arngrim

    DJ Force Feedback

  • VIP
  • 2,188 posts
  • Location:Charleroi, Belgium

  • Flag: Belgium

  • Favorite Pinball: Monster bash



Posted 02 November 2015 - 04:04 PM

really? i wasn't aware thanks :)

#15 chepas

chepas

    t.me/horsepin

  • Members
  • PipPipPipPip
  • 1,966 posts

  • Flag: ---------

  • Favorite Pinball: BSD, Tr0n, SW:Stern

Posted 02 November 2015 - 04:12 PM

There are plans to scan extensions, like from the command reference?

 

Wall69. (visible,collidable, droppable) etc.


Bump maps are the new auto-tune :BDH:
VPX - RSS Updates ---- blog.flippingflips.xyz/en/ -- Visual Pinball No.1 (2021) . Est.2000


#16 Brandrew

Brandrew

    Hobbyist

  • Members
  • PipPip
  • 36 posts
  • Location:Newcastle

  • Flag: United Kingdom

  • Favorite Pinball: Terminator 2

Posted 02 November 2015 - 05:08 PM

Regarding autocomplete that BorgDog brought up.  Is there a way to disable autocomplete?  

 

Also what is the expected way to type a new word, like sound (where autocomplete suggests soundFx)?  Is hitting the esc key the expected way?

auto complete disable on next build.. :) Thanks, until it's correct people shouldn't be annoyed by it!

Working on contextuality of the autocomplete suggestions...


There are plans to scan extensions, like from the command reference?

 

Wall69. (visible,collidable, droppable) etc.

Oh yes, I call it Plan "A:1.6b" :) There's a lot of donkey work to do before then i.e. parsing the extentions from the core file!



#17 freneticamnesic

freneticamnesic

    A Faint Ghost Through the Raindrops

  • VIP
  • 3,370 posts
  • Location:Portland, OR

  • Flag: United States of America

  • Favorite Pinball: Star Trek, Black Hole, AFM, Fast Draw, Tron, AMH

  • 360 Gamer Tag: sixgunsounddd

Posted 02 November 2015 - 06:37 PM

Hmm, what about something that highlights items that are not linked to a table object? Or is that beyond the scope of this project? Some kind of code clean up...



#18 Shoopity

Shoopity

    Pinball Fan

  • Members
  • PipPipPipPip
  • 691 posts
  • Location:Colorado

  • Flag: United States of America

  • Favorite Pinball: Medieval Madness

Contributor

Posted 02 November 2015 - 06:51 PM

An option to highlight changes since last save?  And/Or (because they might be related) being able to view the undo list?



#19 Brandrew

Brandrew

    Hobbyist

  • Members
  • PipPip
  • 36 posts
  • Location:Newcastle

  • Flag: United Kingdom

  • Favorite Pinball: Terminator 2

Posted 02 November 2015 - 07:04 PM

Hmm, what about something that highlights items that are not linked to a table object? Or is that beyond the scope of this project? Some kind of code clean up...

Eventually, yes. If time permits, when the graphics guys are done, that's my unknown deadline! It's on the ever growing To Do list!

 

Edit: Definitely! its another result of the itelisense engine!

An option to highlight changes since last save?  And/Or (because they might be related) being able to view the undo list?

Can't say no to that, in fact hows about a full versioning system! You got brain moving there... It's a good thing I'm not planning on dying soon though... ;)

Edit: Defiantly also! as I'll be wanting a buffer copy of any file as well for help parsing. I'm loving this :)


Edited by Brandrew, 04 November 2015 - 03:10 AM.


#20 lodger

lodger

    Board Certified Funk Master

  • Members
  • PipPipPipPip
  • 993 posts
  • Location:Altoona Pennsylvania

  • Flag: United States of America

  • Favorite Pinball: Whirlwind, TAF

Contributor

Posted 02 November 2015 - 07:11 PM

how about being able to color code sections of code (i.e change background color)


berzerk2_0logo.png

http://www.vpforums....&showfile=11819

Version 2.0- Released 2/27/16






Also tagged with one or more of these keywords: VPx, VP10, Code, View, Editor