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

Make wrapping lines with Alt-Q work #16

Closed
okartal opened this issue Nov 2, 2022 · 3 comments
Closed

Make wrapping lines with Alt-Q work #16

okartal opened this issue Nov 2, 2022 · 3 comments
Labels

Comments

@okartal
Copy link

okartal commented Nov 2, 2022

If I change the language mode to plain text or markdown, hard-wrapping lines with Alt-Q (which uses the rewrap extension) works but not in Quarto mode (also not in Rmarkdown mode). When I write in plain markdown or LaTeX I usually do this for readability.

I also tried to configure rewrap but without success. Is there a reason why this does not work out of the box?

System Info:

  • Quarto 1.2.242
  • VSCode Version: 1.72.2 (user setup)
    Commit: d045a5eda657f4d7b676dedbfa7aab8207f8a075
    Date: 2022-10-12T22:15:18.074Z
    Electron: 19.0.17
    Chromium: 102.0.5005.167
    Node.js: 16.14.2
    V8: 10.2.154.15-electron.0
    OS: Windows_NT x64 10.0.19044
    Sandboxed: No
@jjallaire
Copy link
Contributor

Don't know the particulars of that extension, but its likely because editor.wordWrap is enabled for the qmd file type: https://github.com/quarto-dev/quarto-vscode/blob/main/package.json#L719. Perhaps if you turn this off in your config for cmd and rmd then this will start working: https://code.visualstudio.com/docs/getstarted/settings#_language-specific-editor-settings

@okartal
Copy link
Author

okartal commented Nov 3, 2022

Thanks for the suggestion although that did not work, even if I enable wordwrap in the rewrap extension. By the way, neither the keybinding nor the command palette does work. I just saw that a related issue is posted at stkb/Rewrap#331

@jjallaire jjallaire transferred this issue from quarto-dev/quarto-vscode Dec 15, 2022
@dbdean
Copy link

dbdean commented Jan 16, 2024

It looks like this was fixed in stkb/Rewrap#367

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants