typora / typora-issues

Bugs, suggestions or free discussions about the minimal markdown editor — Typora
https://typora.io
1.53k stars 56 forks source link

Tables Advanced #1088

Open miztizm opened 6 years ago

miztizm commented 6 years ago

original post:

Possibility to have a keyboard shortcuts for a insert row or a + to insert a new row Possibility to resize or fix text lines in the tables Possibility to sort a table ASC and DESC Possibility to change a background color ? Possibility to write on the next line in the tables?

thank you.

abnerlee commented 6 years ago

Also see https://github.com/typora/typora-issues/issues/1170

possible enhancement:

Ditch the widget and introduce the ability to resize by dragging the right or bottom edge of the actual table, with live feedback so that the user can visually see what is happening.

For telling users about columns/rows with data will be removed, we can also show warning on live resize, or highlight cells of current table with a different color in the resize panel.

vassudanagunta commented 6 years ago

Possibility to have a keyboard shortcuts for a insert row or a + to insert a new row

SHIFT-ENTER already inserts a row below the cursor.

Possibility to resize or fix text lines in the tables

What does this mean?

Possibility to sort a table ASC and DESC

Sort the rows in the source? Or just in the on-screen render?

Possibility to change a background color ?

This is already supported via customizing the theme/CSS.

Possibility to write on the next line in the tables?

What does this mean? The ability to hard-wrap within a table? Already supported.

@abnerlee I'd rather you keep the carefully written specific issues (e.g. #1170) rather than unclear and overly broad ones like this. Otherwise you're discouraging people who take the time to be clear and encourage people just to throw stuff into Issues without thought or accuracy. If you want a broad "Better Tables" issue, then #344 predates this one. Just ask @AlexPasternak to improve the description.

arne-vandamme commented 4 years ago

+1 to have a sort table on column feature, would be very handy. Kudos on Typora, great editor!

GoCyberEd commented 4 years ago

Not sure if this is what is intended by the shift + enter comment above, but that adds a line break to the current cell for me.

I would much prefer if it would add another row to the table. If tab could insert a new row if the cursor is in the last cell, that would be a huge productivity boost for me.

Update: I found out by accident that fn + B will add a new row on my work computer. This does not do the same on my personal laptop.

GoCyberEd commented 3 years ago

The correct key is ctrl + enter, not shift as described above.

Bonus points if anyone knows why fn + B works on some devices. Something with the keyboard layout?

salman2learn commented 3 years ago

It would be great to bring simple excel formulas into md tables. Found this: https://github.com/tgrosinger/md-advanced-tables/blob/main/docs/formulas.md

KubaO commented 3 years ago

At the moment, the worst problem is that tables are unusable in any professional setting. They are wide and unsightly. No way to make the columns any narrower. At least in non-pandoc export.

vassudanagunta commented 3 years ago

@KubaO you can easily make the tables look however you want them with custom CSS. See the docs.