Skip to content

feat(edit_src): Add org_edit_src_filetype_map for custom src block filetypes. #1002

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 2, 2025

Conversation

milanglacier
Copy link
Contributor

@milanglacier milanglacier commented Jun 27, 2025

We have implemented a hard-coded filetype map for common language aliases used in Org mode source blocks.

I propose making this map a user-configurable option. This would empower users to extend it with their own aliases.

A use case involves Emacs users who uses emacs-jupyter. This package uses the language alias jupyter-python for Python source blocks, which differs from the standard python alias. User-configurable aliases would seamlessly support such workflows.

Copy link
Member

@kristijanhusak kristijanhusak left a comment

Choose a reason for hiding this comment

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

I'm ok with the feature, but lets switch up logic a bit.

@milanglacier
Copy link
Contributor Author

Ok, I have updated the patch as you described. Please let me know if you have any other questions.

Copy link
Member

@kristijanhusak kristijanhusak left a comment

Choose a reason for hiding this comment

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

Thanks!

@kristijanhusak kristijanhusak merged commit 7ffb34c into nvim-orgmode:master Jul 2, 2025
20 checks passed
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