mudlet/.gitmodules
Ian 17a8f9283a Add autocompletion to code editor (#1666)
* Initial commit.
Add a few hard-coded function entries for testing.
Adds autocompleter from edbee.
Updates edbee to point to my fork of edbee, which I'll try and PR after I've got it fully fleshed out.

* Several updates to edbee autocompleter, re-enables reading lua function names from a file, and adds reserved lua words to the provider.

* Updated edbee submodule remote URL

* updated to use new style of autocompleteprovider, structured more closely to langserv protocol
updates edbee-lib referenced

* Updates to newest push of edbee

* Update Edbee with my latest commit, comments from commit on edbee-lib below:

Updates the key handler to allow enter/return/tab to go to editor as usual if the currentWord exactly matches the selected item on the list(which it always will immediately after typing an exact match, based on the way the list gets updated as you type).
The menu also now hides if there is only one match in the list, and it's an exactly match of the currentWord.

* Includes luaFunctionList.json in the resources files for the project.
Updates mudlet class to use internal resource.

* Switches to updated Edbee. Autocomplete list and Tooltip should both be themed appropriately now and should be using the currently set font.

* Renamed `luaFunctionList.json` to `lua-function-list.json`
Prettified `lua-function-list.json`

* Updated edbee to adjust list size, list item size, and tooltips to handle other fonts based on config.

* Update to Edbee-lib, ListWidget is now contained in a QMenu, making event-handling much easier.

* Updated edbee.

* Fixed list resizing to fit the widest entry in the menu.
Set up constraints on where the list and tooltap can be displayed, so it avoids being offscreen as much as possible.
Removed many unnecessary comments.

* Updated edbee-lib to properly constrain the location of the list and tooltip, and to correct issues with automatically changing the list's width.

* Removed unused lua-register overwrite.

* Prevents autosave from kicking in when the autocomplete list pops up, which prevents saving while the list is up, which prevents the error message from showing up in the dialog box while the list is up. Addresses the bug brought up by @Leris

* Prevent crashes by shortcircuiting `leaveEvent` check that prevents autosave when the list shows up.

* Update to edbee-lib that should fix issue with wrong tooltips being displayed.
Updated lua-function-list.json to fix three occasions of unnecessary equals sign's messing up the list generation(equal's sign shouldn't be anywhere in the function's signature except between the return value and the function's name.

* From commit to edbee-lib:

Corrects placement of autocomplete list when editor isn't scrolled to the very top.
Updates tooltip placement to only display to the left if there is enough room left, and not enough room right. If there isn't room in either direction, it's shown right so there isn't confusion about whether the tooltip for that entry actually exists.

* Cleaned up some unnecessary changes that bloated the files changed list. List placement now takes into account the actual line-number-margin size as well as the horizontal scrollbar. All placement issues should be fixed.

* Another change to edbee

* Re-scraped the wiki for the lua-function-list, so TTS functions should be there now.

* Workaround added to get all letters in list name showing.
2018-08-13 18:57:30 +02:00

12 lines
464 B
Text

[submodule "3rdparty/edbee-lib"]
path = 3rdparty/edbee-lib
url = http://github.com/dicene/edbee-lib.git
[submodule "3rdparty/lua_code_formatter"]
path = 3rdparty/lcf
url = https://github.com/martin-eden/lua_code_formatter.git
[submodule "3rdparty/dblsqd"]
path = 3rdparty/dblsqd
url = https://bitbucket.org/pentacent/dblsqd-sdk-qt.git
[submodule "3rdparty/sparkle-glue"]
path = 3rdparty/sparkle-glue
url = https://github.com/Mudlet/mixing-cocoa-and-qt.git