ganesshkumar / obsidian-table-editor

An Obsidian plugin to provide an editor for Markdown tables. It can open CSV data and data from Microsoft Excel, Google Sheets, Apple Numbers and LibreOffice Calc as Markdown tables from Obsidian Markdown editor.
MIT License
216 stars 15 forks source link

[Feature Request] Tables From Templates #11

Open FelipeRearden opened 2 years ago

FelipeRearden commented 2 years ago

[Feature Request] Tables From Templates

Hello again @ganesshkumar !!!!!

This FR is about adding templates when creating New Tables and Editing Tables.

Beside my poor English I’m gonna try to explain in details my FR and my workflow for this feature. Let me know if something is not clear.

Before you start reading I just wanna say that this is just my humble suggestion. Please feel free to change anything that you thing is not aligned with your amazing plugin. I think about this FR for a few day and I tried to fill with all my ideas based on my real workflow with tables inside Obsidian.

FR

A new settings menu that let the user create multiple templates that will be applied when creating new tables and editing tables (more below)

1- A new settings UI 2- Command Palette command for each template 3- Autocomplete options for Rows 4- Autocomplete options for Columns (except headers) 5- Editing a Table using a template Data

1- Settings UI

A settings tabs inside Obsidian Settings to create/edit templates

Setting fields

Let me know if you want examples of obsidian plugins that have templates. I can list a few for you :)

2- Command Palette command for each template

New Command: MTE: Open Editor with template_name

Each template have your own command :)

3- Autocomplete options for Rows

Would be amazing if we have a way to define a list of word that is applied to each rows .

Example: Daily Meal log

Meals 03-01-2022 03-02-2022
Breakfast Coffee + Bread Tea + Waffle
Lunch Hamburger + Fries + Coke Ceaser Salad
Dinner Pizza Chocolate

Autocomplete Options for Row 1:

Autocomplete Options for Row 2:

Autocomplete Options for Row 3:

4- Autocomplete options for Columns

Would be amazing if we have a way to define a list of word that is applied to each columns .

Example: Workout Sheet

Body Group Exercises Reps
Back Lift 12
Leg Squat 8

Autocomplete Options for Column 1 - Body Group

Autocomplete Options for Column 2 - Exercises

Autocomplete Options for Column 3 - Reps

5- Editing Tables with Template Data

We could have a scenario where the user wants to edit a table and use a template data to add a new row or column of data to the table or correct a previous import that was wrong.

My idea was a dropdown list with all templates inside the MTE editor to let the user apply a template data to the edit table


Sorry for the long text !!!!!

Thanks for reading this !!!!!!!!!!

Have a great day !!!!!!

ganesshkumar commented 2 years ago

I shall look into this and get back! Thanks for the detailed write up, @FelipeRearden!

FelipeRearden commented 2 years ago

I shall look into this and get back!

Thanks for your reply @ganesshkumar !!!!

Take your time :)

Thanks for the detailed write up, @FelipeRearden!

Thanks @ganesshkumar !!!!

I tried to detail every aspect of my FR to let us in the same page about this feature :)


Let's keep talking :)