Skip to content
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

feature request : fenced-block cells #8

Open
pierrecamilleri opened this issue Mar 29, 2023 · 4 comments
Open

feature request : fenced-block cells #8

pierrecamilleri opened this issue Mar 29, 2023 · 4 comments

Comments

@pierrecamilleri
Copy link

Hi, thanks for the useful plugin.

I am using quarto file format where cells are similar to markdown fenced-block starting and ending with ```.

I think it would be useful (to me at least ;) ) to add support for such cells that have opening and closing delimiters.

The difference in behavior that it would introduce and that I noticed so far :

  • SlimeCells{Next,Prev} would skip closing delimiters
  • ac textobject would include the closing delimiter as well (ic is already working properly).
  • (optionnaly) the closing delimiter may be highlighted differently (for instance with an horizontal rule above instead of below the closing delimiter)
@Klafyvel
Copy link
Owner

Hi,
This might be feasible. But I wonder, wouldn't using a treesitter query (if you are a neovim user) be easier?

@pierrecamilleri
Copy link
Author

I am indeed a neovim user, but relatively new to treesitter.

I don't think there is a treesitter parser for qmd quarto format yet : the "quarto-vim" plugin) I use for syntax highlighting runs on "vim-pandoc-syntax", which does not provide a treesitter parser yet. There seems to be a standard markdown treesitter parser available, but not sure how it plays with the quarto format.

If you think such functionality would be outdated as soon as a treesitter parser exists, then I don't mind waiting until the quarto tooling matures.

@Klafyvel
Copy link
Owner

Klafyvel commented Mar 29, 2023 via email

@Klafyvel
Copy link
Owner

Klafyvel commented Apr 4, 2023

I think this issue can be easily solved if we introduced a slime_cell_delimiter_start and a slime_cell_delimiter_stopparameter and makePrev/Next` use thoses. I'll give it a try.

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

No branches or pull requests

2 participants