PB IDE plugin : smart indent, remove spaces, autocompletions

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Post by eddy »

1378 => CallNextHookEx(@pluginHook()....)
:shock:

It will be very hard to debug this.
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Post by eddy »

[released v3.5b ]
- BUG FIX : simple hook ( break the hook chain to fix keyboard input bug :roll: )

Check this new option.
I hope it will fix your problem without any side effect



Idea for the next version :
- preview folded code
- drag'n drop folded code


Image
Last edited by eddy on Sun Jun 01, 2008 2:31 pm, edited 1 time in total.
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Post by eddy »

[released v3.6]
- ADDED: ticker cursor
- ADDED: indent guide
- ADDED: preview folded lines

Image
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
Foz
Addict
Addict
Posts: 1359
Joined: Tue Nov 13, 2007 12:42 pm
Location: Manchester, UK

Post by Foz »

Could you add a spacing option for the + operator please?

I prefer to have my maths and string concatenations spread out :)
inc.
Enthusiast
Enthusiast
Posts: 406
Joined: Thu May 06, 2004 4:28 pm
Location: Cologne/GER

Post by inc. »

Indeed this is a very nice work eddy!
Check out OOP support for PB here!
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Post by eddy »

[released v3.7]
ADDED : spacing rules
UPDATED : automatic formatting (can format 'last opened files', files open at start of IDE)

:arrow: Remark: you have to restart the installer, i changed some trigger parameters
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Post by eddy »

It would be interesting to replace the standard autocompletion list.

But perhaps this idea is too ambitious....
- need to know all keywords constants interfaces structures
- parse project files
- sort list
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
Foz
Addict
Addict
Posts: 1359
Joined: Tue Nov 13, 2007 12:42 pm
Location: Manchester, UK

Post by Foz »

As the IDE already has the autocomplete, what would be gained by having your own?

Is there some sort of super-duper-snazzy-wonderful plan behind your thinking?
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Post by eddy »

the autocompletion list is the last weak point of this IDE.
-> some bugs and missing features

But it's just an idea.
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Post by eddy »

[released v3.8]
ADDED : backspace unindents (like DELPHI)
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
Foz
Addict
Addict
Posts: 1359
Joined: Tue Nov 13, 2007 12:42 pm
Location: Manchester, UK

Post by Foz »

I don't know how much work is involved, so I don't know if you are biting off more than you can chew.

However, if you feeling up to replacing the autocomplete, I think you have an army of willing testers waiting to sample your work ;)
User avatar
oreopa
Enthusiast
Enthusiast
Posts: 283
Joined: Sat Jun 24, 2006 3:29 am
Location: Edinburgh, Scotland.

Post by oreopa »

Just wanted to express my appreciation for this add-on... had missed it up until now. Very very useful indeed. Good work and thanx!
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Post by Num3 »

Would be nice if you made the preferences file path relative...
It' very boring to have to open all purebasic preference file and edit them by hand :(

Code: Select all

d:\programing\PB4\IDETools\PBIicon.ico
to
PBIicon.ico
SofT MANiAC
Enthusiast
Enthusiast
Posts: 142
Joined: Mon Sep 17, 2007 10:28 am
Location: P.O.P
Contact:

Post by SofT MANiAC »

it looks ugly (Pure formatter AUTO):

Code: Select all

;	used here include 16,32,50, etc. The findPath procedure uses this
  ;	number to convert current and destination locations (see below)
  ;	to locations in the walkability array.
  ;	- startingX,startingY = location of the pathfinder (pixel based coordinates)
  ;	- targetX,targetY = location of the target destination (pixel based coordinates)
  
  ;	The findPath() procedure procedureReturns whether a path could be found (1) or
    ;	if it's nonexistent (2). If there is a path, it stores it in a bank
        ;	called pathBank(pathfinderID).
        
        ;2.	readPath(pathfinderID,currentX,currentY,tileSize,pixelsPerFrame)
        ; This procedure reads the path data generated by findPath() and procedureReturns
        ;	the x and y coordinates of the next step on the path. They are stored
        ;	as xPath(pathfinderID) and yPath(pathfinderID). These coordinates are
        ;	pixel coordinates on the screen. See the procedure for more info.
            ;	The parameters are:
            ;	- pathfinderID = same as above
            ;	- currentX,currentY = current location of pathfinder in pixel
            ;	based coordinates
            ;	- tileSize = same as above
            ;	- pixelsPerFrame = number of pixels traveled per frame. This info
            ;	is used by the path finder to determine how close to the center
            ;	of a square the pathFinder must get before it looks up the
          ;	next step on the path.
          
          ;3.	preProcessMap(mapWidth,mapHeight) = this procedure preprocesses
            ;	the map for faster pathfinding.
              
              ;Background (for those who want to understand the findPath() procedure)
              ;----------
              ;	The basic A* method is to begin at the starting location and search
              ;	adjacent squares with the lowest F costs (see below) until you find
              ;	the target. The path is then generated by working backwards from the
              ;	target to the starting location, moving from each square to its
              ;	adjacent "parent" square.
              
              ;	F = G + H
              ;	G = distance from starting location to a given square by
              ;	going along the path generated to get to there.
              ;	H = distance from the given square to the target square. This
              ;	is often referred to as the "heuristic" - an unnecessarily
              ;	confusing term in my opinion.
              
              ;	The best way to follow how A* works is to do a step-by-step
              ;	search in Demo #1
              
              Declare readPath(pathfinderID, currentX, currentY, tileSize, pixelsPerFrame)
POiNT.OF.PRESENCE group
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Post by eddy »

I know...
I have this problem sometimes.

This is my main task for the next release
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
Post Reply