Columnar formatting in Eeschema text blocks

Bug #1769193 reported by Hildo Guillardi Júnior
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
KiCad
Fix Committed
Wishlist
Jeff Young

Bug Description

Allow some kind of text table text kind or just some aligning using <Tab> character on "Text Proprieties".
The intention is to create a graphical annotation element that allow to write informations as a table.
https://www.youtube.com/watch?v=GC7WXQltusM
https://www.youtube.com/watch?v=pHOHMZM_npI on 20seconds

Revision history for this message
Hildo Guillardi Júnior (hildogjr) wrote :

This image shows how I am working around with this "issue".
Normally I use <space> to align the elements place in different lines. Using the <Tab> will allow me a better and uniformed space to each column.

tags: added: feature.request
Seth Hillbrand (sethh)
Changed in kicad:
importance: Undecided → Wishlist
Revision history for this message
Jeff Young (jeyjey) wrote :

Tabs won't solve the horizontal rule issue seen in the attached screenshot above.

However, tables are a /much/ larger implementation effort.

summary: - Allow <Tab> char on text
+ Columnar formatting in Eeschema text blocks
Changed in kicad:
status: New → Triaged
tags: added: eeschema
Revision history for this message
KiCad Janitor (kicad-janitor) wrote :

Fixed in revision 541d4358b8a832c0f0d80747ccc7f0fe56e0531a
https://git.launchpad.net/kicad/patch/?id=541d4358b8a832c0f0d80747ccc7f0fe56e0531a

Changed in kicad:
status: Triaged → Fix Committed
assignee: nobody → Seth Hillbrand (sethh)
Seth Hillbrand (sethh)
Changed in kicad:
milestone: none → 6.0.0-rc1
Revision history for this message
Seth Hillbrand (sethh) wrote :

Here's the text box that creates your example in eeschema. Note the tabs between the columns and the spaces after the tildes

In my final PhD prototype:
~
Channel Function Sensor
~
0 linvA LEM LA55-P
1 linvB LEM LA55-P
2 linvC LEM LA55-P
3 lloadA LEM LA55-P
4 lloadB LEM LA55-P
5 lloadC LEM LA55-P
6 VpccA HCPL7520 (AC)
7 VpccB HCPL7520 (AC)
8 VpccC HCPL7520 (AC)
9 VdcA1 HCPL7520 (DC)
10 VdcB1 HCPL7520 (DC)
11 VdcB2 HCPL7520 (DC)
12 VdcC1 HCPL7520 (DC)
13 VdcC2 HCPL7520 (DC)
14 -- --

Revision history for this message
Seth Hillbrand (sethh) wrote :

And, I see launchpad mangles the text, so copy/paste won't work but you can adjust in eeschema

Revision history for this message
Hildo Guillardi Júnior (hildogjr) wrote :

I tried to press <Tab> and the dialog just change the dialog object focus.
Also, I tried to add "\t" direct at the file and it doesn't worked.
Coping and pasting a Tab for other editor works fine and the file save a "\n~\n" to represent it. If I type "<Enter>~<Enter>", it is not converted to a Tab.

Application: Eeschema
Version: 6.0.0-unknown-772dff7~86~ubuntu16.04.1, release build
Libraries:
    wxWidgets 3.0.2
    libcurl/7.47.0 OpenSSL/1.0.2g zlib/1.2.8 libidn/1.32 librtmp/2.3
Platform: Linux 4.15.0-54-generic x86_64, 64 bit, Little endian, wxGTK
Build Info:
    wxWidgets: 3.0.2 (wchar_t,wx containers,compatible with 2.8) GTK+ 2.24
    Boost: 1.58.0
    OpenCASCADE Community Edition: 6.8.0
    Curl: 7.47.0
    Compiler: GCC 5.4.0 with C++ ABI 1009

Build settings:
    KICAD_SCRIPTING=ON
    KICAD_SCRIPTING_MODULES=ON
    KICAD_SCRIPTING_PYTHON3=OFF
    KICAD_SCRIPTING_WXPYTHON=ON
    KICAD_SCRIPTING_WXPYTHON_PHOENIX=OFF
    KICAD_SCRIPTING_ACTION_MENU=ON
    BUILD_GITHUB_PLUGIN=ON
    KICAD_USE_OCE=ON
    KICAD_USE_OCC=OFF
    KICAD_SPICE=ON

Revision history for this message
Jeff Young (jeyjey) wrote :

@Seth, as it happens I was just moving this control to the Scintilla engine so it will handle cut/copy/paste and undo/redo. I'll fix up the tab handling at the same time.

Changed in kicad:
assignee: Seth Hillbrand (sethh) → Jeff Young (jeyjey)
status: Fix Committed → In Progress
Revision history for this message
KiCad Janitor (kicad-janitor) wrote :

Fixed in revision 17d64ac348de4d583503f145717ffd19190afc3e
https://git.launchpad.net/kicad/patch/?id=17d64ac348de4d583503f145717ffd19190afc3e

Changed in kicad:
status: In Progress → Fix Committed
Revision history for this message
Seth Hillbrand (sethh) wrote :

Cool, thanks Jeff!

Revision history for this message
Hildo Guillardi Júnior (hildogjr) wrote :

Nice, I will test in next Nightly.
Will be this feature be present also in Pcbnew? (Sometimes I put some tables in the board, for example, with the jumpers specifications).

Revision history for this message
Seth Hillbrand (sethh) wrote :

The formatting will be the same but it we'll need to do some more work to the dialogs before they accept the tab key. Until then, you can paste tabbed text.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.