Raised This Month: $12 Target: $400
 3% 

[RELEASE|SOURCE] BasicPawn - SourcePawn Editor


Post New Thread Reply   
 
Thread Tools Display Modes
Timocop
AlliedModders Donor
Join Date: Mar 2013
Location: Germany
Old 04-25-2019 , 12:27   Re: [RELEASE|SOURCE] BasicPawn - SourcePawn Editor
Reply With Quote #41

Quote:
Originally Posted by Dragokas View Post
Or better, if you could make it support relative paths, like:
I think its better when i add a propper Pre/Post-build events that you can edit in the configs and scrap the "Shell". Otherwise its getting pretty confusing. The BasicPawn CompileSource function is already pretty bloated.

Quote:
Originally Posted by Dragokas View Post
I also tried to use there "%inputfolder%" as pre-defined macro for your "Shell", but it doesn't accept it.
- %inputfilename%/%inputfolder% - Only works when the tab file is valid (on disk).
- %includes%/%compiler%/%output% - Only work when the include/compiler/output paths are set manualy.
"Shell" is pretty old and flawed, better dont use it. Ill replace it with Pre/Post-build events in the future.

Quote:
Originally Posted by Dragokas View Post
"MS Visual Studio" F12 shortcut for "Go to definition"
BasicPawn isnt much context aware to determind what is where located. Thats why i put "List references" instead.
However, i could add shortcuts for "List references" and make the information tab accept keyboard inputs too.

Quote:
Originally Posted by Dragokas View Post
I don't quite understand how to use autocomplete feature.
Its not much different. You just have to hold "Ctrl" now.
To display all available shortcuts Go: Help > Special Controls

Quote:
Originally Posted by Dragokas View Post
why I can't setup paths via "Default" config name.
The "Default" config is read-only. Its cant be modified. Its mostly used for working out-of-the-box.
__________________
Timocop is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 04-25-2019 , 12:35   Re: [RELEASE|SOURCE] BasicPawn - SourcePawn Editor
Reply With Quote #42

Ok, thanks a much for your work.
It looks fantastic.

I just like it to be as most handy and no-mouse fashion as possible.
And I described functions personally I most often use in other lang IDE-s.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
Timocop
AlliedModders Donor
Join Date: Mar 2013
Location: Germany
Old 04-25-2019 , 15:03   Re: [RELEASE|SOURCE] BasicPawn - SourcePawn Editor
Reply With Quote #43

Thank you
Ill try to add more keyboard shortcuts.

Speaking of shortcuts.
Ive added a yet unknown feature for easier autocompletion using functype/funcenum/typedef/typeset's. You can type typedefs as enums and BasicPawn will automatically autocomplete them.

Where as the enum name will be the name of the typedef and the constant name will be the callback name for the method that will be generated. Syntax: <typedef>:<name> (example: ConCmd:OnCmdTest).
However, this will only autocomplete the first entry of typeset/funcenum's. Use the manual method for select individual entries from typeset/funcenum's.

Manual Method

Quick Method
__________________
Timocop is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 04-25-2019 , 15:21   Re: [RELEASE|SOURCE] BasicPawn - SourcePawn Editor
Reply With Quote #44

Nice, looks handy.

Above manual method looks quicker
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
Timocop
AlliedModders Donor
Join Date: Mar 2013
Location: Germany
Old 04-26-2019 , 02:46   Re: [RELEASE|SOURCE] BasicPawn - SourcePawn Editor
Reply With Quote #45

Thats just because i have slower mouse movements in the quick one
Also the quick method requires less keyboard/mouse input.
__________________
Timocop is offline
Timocop
AlliedModders Donor
Join Date: Mar 2013
Location: Germany
Old 04-30-2019 , 07:32   Re: [RELEASE|SOURCE] BasicPawn - SourcePawn Editor
Reply With Quote #46

Just a little preview whats comming for the next release:

Build Events replaced Shell
The 'Shell' function was a crappy old design. So ive replaced it with already known 'Pre/Post Build Events' from other IDEs which are executed while compiling sources. Which can be configured per-config.



Shortcut controls for Details tab
Normaly some navigation keyboard shortcuts where only available for the 'Autocomplete & IntelliSense' tab.
But as request ive added more shortcuts to controls. Now you can control the whole details tab with arrow keys (Ctrl+Up, Ctrl+Down, Ctr+Left, Ctrl+Right).
Actions are also not only limited to the 'Autocomplete & IntelliSense' tab (Ctrl+Enter, Shift+Ctrl+Enter).



Passive Syntax Parsing
As for now BasicPawn always parsed files in a giving time, everytime. Even when no file/editor content has changed. Now BasicPawn parses the syntax when files (last write time) and editor content changed.
__________________
Timocop is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 04-30-2019 , 08:00   Re: [RELEASE|SOURCE] BasicPawn - SourcePawn Editor
Reply With Quote #47

Thanks, very-very nice!

Quote:
But as request ive added more shortcuts to controls. Now you can control the whole details tab with arrow keys (Ctrl+Up, Ctrl+Down, Ctr+Left, Ctrl+Right).
Just one more request. Is it possible to add one shortcut to jump instantly directly on user declared function instead of listing all the references and searching which line refers to the declaration?

Thanks.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
Timocop
AlliedModders Donor
Join Date: Mar 2013
Location: Germany
Old 04-30-2019 , 08:29   Re: [RELEASE|SOURCE] BasicPawn - SourcePawn Editor
Reply With Quote #48

Not for now sadly. Maybe in the future.

Quote:
Originally Posted by Timocop View Post
BasicPawn isnt much context aware to determind what is where located. Thats why i put "List references" instead.
__________________

Last edited by Timocop; 04-30-2019 at 08:30.
Timocop is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 04-30-2019 , 09:19   Re: [RELEASE|SOURCE] BasicPawn - SourcePawn Editor
Reply With Quote #49

Quote:
BasicPawn isnt much context aware to determind what is where located. Thats why i put "List references" instead.
I think it's not very hard to add such logic to determine is it a beginning of function declaration (by return type or so). Instant jump to function is very time saving function especially for a large source codes.
You already have such parser for "public" in Object browser.

Do you have bookmarks? It's one more most important time saving feature.
You probably, could use vertical separator bar (between left window and source code line numbers) to mark there breakpoints / bookmarks, like so:

- left click - toggle bookmark
- mouse hover on bookmark in that bar - show tooltip about shortcut (like, how to move between bookmarks).
- possibly, one more shortcut (or right click there) to show full list of bookmarks in "autocomplete window".
- saving all bookmark positions to config file will be also very handy and unique function for your project.

Do you have a guide how correctly setup a debugger?
When I press Tools => Cleanup ... -> I have "Invalid server directory".
When I press Start debugger -> I have "Invalid client directory".

Feature request:
- Double click on tab - Close this tab
- Ctrl + F4 - Close active tab
- add ability to jump to function definition by double clicking on Object browser's => "public method" => Name of method
- Close "Search & replace" window by pressing "Esc"
- shortcut for toggle (add/remove) breakpoint.
- Add list of recently files to "File" => "Recent Files".
- Sometimes I need to convert code to a new syntax, like using: https://forums.alliedmods.net/showpo...8&postcount=54
Can you think about how to implement? Like, not removing "Shell" feature at all, and leave ability to call it separately by shortcut or so.
- When I add "public" to function it doesn't apper in Object Broswser. I know it's very CPU consuming, so maybe you could add somewhere (like in "Object Browser" tab context) "Refresh" button.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
Timocop
AlliedModders Donor
Join Date: Mar 2013
Location: Germany
Old 05-01-2019 , 08:05   Re: [RELEASE|SOURCE] BasicPawn - SourcePawn Editor
Reply With Quote #50

Quote:
Originally Posted by Dragokas
Do you have a guide how correctly setup a debugger?
No currently i have no guide nor wiki for features in BasicPawn. I will add them later on GitHub.
You have to setup client, server and sourcemod directory in your configs.

If you use local host, client and server are the same game directory.
If you use scrds, client will be the game directory and server the scrds directory.



Quote:
Originally Posted by Dragokas
Double click on tab - Close this tab
Middle mouse button closes the tab already.

Quote:
Originally Posted by Dragokas
Sometimes I need to convert code to a new syntax
I dont think this should be a main feature. However, you could port it as a BasicPawn plugin using C# or VB.NET (Required references here).

Quote:
Originally Posted by Dragokas
When I add "public" to function it doesn't apper in Object Broswser.
Press F5 (Shift+F5 for all tabs) to re-run the syntax parsing task manualy. After its completed it will add all missing entries into the Object Browser.
Syntax parsing happens automatically every 60sec, variable syntax parsing every 10sec.
__________________
Timocop is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:30.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode