Code Monkey home page Code Monkey logo

logseq-plugin-markdown-table's Introduction

Logseq Markdown Table Editor Plugin

latest release version License

English | 简体中文

referencehttps://codesandbox.io/s/yt8jc

Read Before Use

  • Multiple tables need to be separated by blank lines, otherwise they will be recognized as one table

demo

demo

Shortcuts

  • Tab: Move cursor to the next cell
  • Shift + Tab: Move cursor to the previous cell
  • Shift + Enter: Break line in the current cell

Development

$ yarn

$ yarn start

logseq-plugin-markdown-table's People

Contributors

haydenull avatar pengx17 avatar reox avatar semantic-release-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

logseq-plugin-markdown-table's Issues

功能建议

希望您能添加表格排序功能,我在VSCode中见到过类似的插件,供您参考:插件Markdown Table Formatter(作者Fernando Crespo)。

Enhancement: Prettify Tables

Hi, thank you for this great plugin, it greatly simplifies working with tables!

One thing that other markdown tools like Typora do, is automatically "prettifying" tables:

|header|header|
|---|---|
|contentA|contentB|

automatically becomes

| header   | header   |
| -------- | -------- |
| contentA | contentB |

which is much more readable. Particularly relevant when also working with the raw markdown files. I think this would greatly improve this tool.

Faster access

Firstly I love the plugin, it makes my life easier. I was wondering if it would be possible by any means to have a shortcut or an easier way to enter the edit mode, without having to right click and select the option which is always one of the last ones

¿cómo se usa este plug in?

inglish:

I DON'T UNDERSTAND WHAT TO DO

I have seen this plug in, and I think it can and should be good, unfortunately in the git hub repository nope there are instructions on
how to use it please help me understand how to create tables or use the plug in, I tell you that I do not understand also if it is possible to
Other users would suggest making it more intuitive how to use it or also having an instruction area.

español:

NO ENTIENDO QUE HACER

he visto este plung in, y creo que puede y debe ser bueno, lamentablemente en el repositorio de git hub nop hay instrucciones sobre
como utilizarlo por favor me ayudan a entender como crear tablas o utilizar el plug in, les digo que no entiendo ademas si se puede para
otros usuarios les sugeriria aser mas intuitivo el como usarlo o tambien oiner una zona de intruccion

support line break in cell

Describe the bug
cell内无法换行

Expected behavior
使用shift+enter或enter应该创建一个新行

Desktop (please complete the following information):

  • OS: Windows
  • Version: 0.6.5

Confirm button does not close the editor

Thank you for the plugin haydenull.
I would like to point out an issue with the "Confirm" button in the editor.
It saves the changes made to the table, however, to exit the editor I need to click cancel after I have already clicked confirm (which does not let me exit the editor)
To simplify:
Expected: Confirm should save changes and close the editor
Reality: Confirm saves changes but does not close the editor

I am using the 0.9.19 Logseq version

paste from xlsx

can paste from xlsx data?
like:
columnA \t columnB
111 \t 2222

Spaces before the `|` will break the plugin

Describe the bug
Spaces before the | will break the plugin

To Reproduce
Use the following table, note the space before the first row with the a1

|Col A|Col B|
|--|--|
 |a1|b1|

Expected behavior
editing the table will work

Screenshots
image

Desktop (please complete the following information):

  • OS: Win 10 and win 11
  • Browser [e.g. chrome, safari]
  • Version 0.7.4 of logseq, and 1.70 of the plugin

Additional context
trim the lines should fix the issue ?

the plugin didnt work

I couldn't use the plugin after installing it from a local file, or it didn't work. The screenshots are as follows:

I want to know whether the plugin is deprecated. If not, how can I use it, thanks!

Support for org-mode table

I like how effectively this plugin works with markdown tables.
Would you be willing to add support for org-mode tables?
I'm curious about the challenges that will come up when moving to the org-mode.

Translation Request: Use "Tabelle einfügen" instead of "markdown-table-editor" in DE

I would like to contribute to a german localization to the Markdown Table Editor.
To make the use of the application better in the german, and maybe other languages, it would be good to have the action being performed with the mennu being mentioned.

Show "Tabelle einfügen" for German, "Insert table" for English instead of "markdown-table-editor".

See screenshot:
CleanShot 2023-09-01 at 08 20 58

Please let me know if i can add or contribute some more. As well as when i have done wrong steps. I'm new here.

Best Regards
Oliver

[Enhancement] New row with shortcut + Cursor in first cell on open

First of all thank you for this very useful plugin.
To further improve UX, I would like to suggest two enhancements:

  1. Add new line below with shortcut Strg/Cmd + Enter
  • This could be relatively easily added here.
if (event.key == 'Enter' && event.ctrlKey){
    editor.edit('insert-row-below')
}
  1. Focus (set cursor in) the top left cell when the pop-up opens such that the user can directly start typing.

feature request - more keyboard controllability in the table editor

Great plugin - very useful shortcut for one of my least favourite things to try and do in Markdown. It'd be really useful to be able to tab between the cells in the table editor, rather than having to click the mouse. Similarly, if there were a few keyboard shortcuts (e.g. one to add a new row), that'd be useful too.

Feature request - better table manipulation like Notion

There is a similar plugin for a similar app that gives Markdown tables better functionality called Obsidian Notion-Like Tables. It would great to see more features from it available here.

Notable features:

  • Hidden "Type Definition" row. Below the header row there is one row which supports a text-based column type, and it forces all cells in that column to be of the chosen Type Definition e.g. text, number, date, checkbox, etc.
  • Drag-and-drop rows to move them around
  • Header menu for each column which can be clicked in order to change the Property Type (AKA Type Definition) and Sort Ascending or Descending

Cut and paste does not work

Describe the bug
If the text of a cell is copied and pasted in another cell, two bugs occur:

  1. The whole cell (that was copied) is displayed in the new cell.
  2. The text content will not be saved in the final markdown output.

To Reproduce

  1. Open new table
  2. Write something in any cell
  3. Select the text and copy (or cut) it (str + c / str + x for non mac)
  4. Paste it in a different cell (visual bug only appears for non header cells)
  5. See error
  6. Save table
  7. The cell with copied content will be empty.

Desktop (please complete the following information):

  • OS: Linux (arch based)
  • Version (logseq 0.7.5) plugin: 1.7.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.