obsidian-table-editor
obsidian-table-editor copied to clipboard
[Feature Request] Tables From Templates
[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.
- Forgive if I suggest something not feasible.
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
- Rows number
- Columns number
- Row Headers names
- Autocomplete options for Rows OR Autocomplete options for Columns (except headers)
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 .
- But the user can decline the autocomplete list and input a different word
- A hotkey that triggers the autocomplete menu (same behavior of the
Operations Menu
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:
- Coffee + Bread
- Tea + Waffle
Autocomplete Options for Row 2:
- Hamburger + Fries + Coke
- Caeser Salad
Autocomplete Options for Row 3:
- Pizza
- Hot Chocolate
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 .
- But the user can decline the autocomplete list and input a different word
- A hotkey that triggers the autocomplete menu (same behavior of the `Operations Menu.
Example: Workout Sheet
Body Group | Exercises | Reps |
---|---|---|
Back | Lift | 12 |
Leg | Squat | 8 |
Autocomplete Options for Column 1 - Body Group
- Back
- Leg
- Shoulder
- Biceps
- ...
Autocomplete Options for Column 2 - Exercises
- Chest Press
- Triceps Dips
- Squat
- Lift
- ...
Autocomplete Options for Column 3 - Reps
- 8
- 10
- 12
- 15
- 20
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 !!!!!!
I shall look into this and get back! Thanks for the detailed write up, @FelipeRearden!
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 :)