Autocomplete for text variables
Feature propose
We could include an "option box balloon" with the available fields and references, as the same style as the code-completation of code IDEs, in the the textbox for use in the cross ref mechanism.
It is related with #2458 (comment 322144559)
Behavior
- After type
${
the balloon will list all the available references; - After the user type the
:
after typed${VALID_ID
(just with the ID/REF is valid) with the fields of the part.
It should have some filter behavior when typing: with ${
the balloon will list all the references but after typed ${R
just the references that starts with R
.
KiCad Version
Application: KiCad
Version: 5.99.0-unknown-bdada70~88~ubuntu20.04.1, release build
Libraries:
wxWidgets 3.0.4
libcurl/7.68.0 OpenSSL/1.1.1d zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh/0.9.3/openssl/zlib nghttp2/1.40.0 librtmp/2.3
Platform: Linux 5.4.0-21-generic x86_64, 64 bit, Little endian, wxGTK
Build Info:
Build date: Apr 12 2020 13:43:05
wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.24
Boost: 1.71.0
OpenCASCADE Community Edition: 6.9.1
Curl: 7.68.0
Compiler: GCC 9.3.0 with C++ ABI 1013
Build settings:
KICAD_SCRIPTING=ON
KICAD_SCRIPTING_MODULES=ON
KICAD_SCRIPTING_PYTHON3=ON
KICAD_SCRIPTING_WXPYTHON=ON
KICAD_SCRIPTING_WXPYTHON_PHOENIX=ON
KICAD_SCRIPTING_ACTION_MENU=ON
BUILD_GITHUB_PLUGIN=ON
KICAD_USE_OCE=ON
KICAD_USE_OCC=OFF
KICAD_SPICE=ON
Edited by Michael Kavanagh