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

Toggle comment #9

Open
diegoiast opened this issue Sep 18, 2024 · 1 comment
Open

Toggle comment #9

diegoiast opened this issue Sep 18, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@diegoiast
Copy link
Owner

diegoiast commented Sep 18, 2024

Kate has this feature that pressing control+d, this is saved as part of the syntax files. It should be possible to implement this in qutepart.

@diegoiast diegoiast added the enhancement New feature or request label Sep 19, 2024
@diegoiast diegoiast self-assigned this Oct 22, 2024
diegoiast added a commit that referenced this issue Nov 8, 2024
This PR addsa a new shortcur (control+/) that will toggle selection of
single line of the document:

- if no selection - the current line will be toggled using the single
line comment.
- if there is a silection -  that selection will be inside the start/end
  comment, if there is a multiline commment. If not - all lines will be
prefixed with single line comments.

Problem - in mixed lanaguage documents, the language is pullled from the
top document, and not from the corresponding context. This is a huge
TODO.

refs #9
@diegoiast
Copy link
Owner Author

Current implementation, works on a language level and not block level. If a block has a different language,it will need different block end/start.

diegoiast added a commit that referenced this issue Dec 5, 2024
Apparently we can. New problem - which language this context originated
from? I think I got it right, but in practice this just does not work.

refs #9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: In progress
Development

No branches or pull requests

1 participant