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

add support for folding headings and code blocks in the markdown editor #905

Open
ITProKyle opened this issue Apr 12, 2021 · 2 comments
Open
Labels
help wanted 🆘 Pull request/issue requires extra help from the community. Check these out if you're new! improvement request 🔨 Issue concerns an existing feature that needs improvement.

Comments

@ITProKyle
Copy link

Current behavior

# Headding 1

## Heading 1.1

```shell
echo "Hello world!"
```

## Heading 1.2

```shell
echo "Example 2"
```

Example text

Given the above note, all lines are shown in the code editor at all times. While fine for small notes, when a note has multiple headings/subheadings, it can be difficult to navigate.

Expected behavior

Adding the ability to fold sections of a note allows for easier navigation as large sections that do not need to be reviewed at the current time can be hidden from view.

# Headding 1

## Heading 1.1
## Heading 1.2

```shell
```

Example text

Ideally, each note would remember where its folded on a given device so that switching between notes would not unfold all folded sections. There should also be a way to fold/unfold all foldable sections of a note at once.

@Rokt33r Rokt33r added improvement request 🔨 Issue concerns an existing feature that needs improvement. help wanted 🆘 Pull request/issue requires extra help from the community. Check these out if you're new! labels Aug 19, 2021
@Rokt33r
Copy link
Member

Rokt33r commented Aug 19, 2021

We might be able to use foldcode addon of CodeMirror. https://codemirror.net/doc/manual.html#addon_foldcode

@Komediruzecki
Copy link
Contributor

@Rokt33r thanks,

I'll add this to local space roadmap and try playing with the addons, if it works well we can implement/port it to cloud space as well!

@kazup01 kazup01 added the hacktoberfest Contribute to the Boost Note and grab the swags! https://hacktoberfest.digitalocean.com/ label Oct 4, 2021
@kazup01 kazup01 removed the hacktoberfest Contribute to the Boost Note and grab the swags! https://hacktoberfest.digitalocean.com/ label Nov 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted 🆘 Pull request/issue requires extra help from the community. Check these out if you're new! improvement request 🔨 Issue concerns an existing feature that needs improvement.
Projects
None yet
Development

No branches or pull requests

4 participants