Skip to content

Added support to allow pasting as Markdown table - #36

Merged
atsyplenkov merged 5 commits into
atsyplenkov:masterfrom
juarezr:feat/markdown
Sep 9, 2025
Merged

atsyplenkov merged 5 commits into
atsyplenkov:masterfrom
juarezr:feat/markdown

Conversation

@juarezr

@juarezr juarezr commented Sep 5, 2025

Copy link
Copy Markdown
Contributor

No description provided.

@atsyplenkov

Copy link
Copy Markdown
Owner

Thanks for your PR, markdown tables were in a roadmap for very long time. I will review your submission next week

@atsyplenkov
atsyplenkov self-requested a review September 5, 2025 21:31
@atsyplenkov

Copy link
Copy Markdown
Owner

@cursor review

cursor[bot]

This comment was marked as outdated.

@atsyplenkov atsyplenkov left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR, it's looking pretty good. I've noticed that you used some custom emoji, can you please replace them with Unicode Standardized ones? Currently they are not properly rendering in the web and across platforms.

Additionally Cursor found a bug, please, fix it

Comment thread package.json Outdated
"pastum.defaultAligmentMarkdown": {
"type": "string",
"enum": [
"columnar ▥",

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

emoji characters unfortunately don’t render consistently across browsers and platforms. Can you please replace them with ones from Unicode List? https://www.unicode.org/emoji/charts/full-emoji-list.html

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 1a25729.
Please let me know if you find any icon that better represents the format differences.

Comment thread src/paste-markdown.js Outdated
// 3: Ask the user which aligment they want to use
if (aligment === null) {
aligment = await vscode.window.showQuickPick(
["columnar ▥", "compact 🗉"],

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment here regarding the emoji

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also changed in 1a25729.

Comment thread src/paste-markdown.js Resolved
@juarezr
juarezr requested a review from atsyplenkov September 9, 2025 16:17
@atsyplenkov

Copy link
Copy Markdown
Owner

@cursor review

Comment thread src/paste-markdown.js Outdated
* Generates a markdown table.
* Supports columnar and compact aligments.
*/
function createMarkdown(tableData, aligment) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Inconsistent Emoji Usage and Typo Error

The quickpick options for table alignment use inconsistent emojis (e.g., 'columnar ↩️') compared to the package.json configuration enum ('columnar ↔️'), which could confuse users. Also, 'alignment' is consistently misspelled as 'aligment' in variable and parameter names within the file.

Fix in Cursor Fix in Web

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, Cursor! 🥇

@atsyplenkov atsyplenkov left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I've just tested and everything is cool. Will merge in main

@atsyplenkov
atsyplenkov merged commit 2d75428 into atsyplenkov:master Sep 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants