https://github.com/chrispahm/kedit-fold-lines
https://github.com/chrispahm/kedit-fold-lines
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/chrispahm/kedit-fold-lines
- Owner: chrispahm
- License: mit
- Created: 2023-10-26T08:30:56.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-26T09:55:38.000Z (over 1 year ago)
- Last Synced: 2025-01-29T14:23:07.084Z (4 months ago)
- Language: JavaScript
- Size: 42 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# kedit-fold-lines
This [VS Code](https://code.visualstudio.com/) extension allows you to fold lines in a text file based on a string pattern, without modifying the file. It is similar to the [KEDIT](https://www.kedit.com/) commands ALL, MORE, LESS, and MOREN, which are used to filter lines in a text editor.
This is especiall useful for filtering large [GAMS output files](https://www.gams.com/latest/docs/UG_GAMSOutput.html).

## Features
- **ALL**: Show all lines including a string. This command will fold all lines that do not contain the string. You can enter the string in the input box that appears when you run this command.
- **MORE**: Show more lines including a string. This command will unfold one more line above and below each line that contains the string. You can enter the string in the input box that appears when you run this command.
- **MOREN**: Show more lines including a string, with n additional lines on top and m additional lines at the bottom. This command will unfold n lines above and m lines below each line that contains the string. You can enter the numbers n, m, as well as the string in the input box that appears when you run this command, separated by a blank. For example, `2 3 foo` will unfold 2 lines above and 3 lines below each line that contains `foo`.
- **LESS**: Show less lines including a string. This command will fold one less line above and below each line that contains the string. You can enter the string in the input box that appears when you run this command.
- **CLEAR**: Clear all folds. This command will unfold all lines in the file.## Requirements
This extension requires VSCode version 1.77.0 or higher.
## Extension Settings
This extension contributes the following settings:
- `folding.language`: The language identifier for which this extension is enabled. The default value is `plaintext`.
## Known Issues
VS Code folding ranges are merged with folding suggestions by other extensions and providers. **This means that when you fold lines using this extension, you may see additional folding ranges that are not related to the string you entered.**
This extension does not support folding based on regular expressions or case sensitivity.
## Release Notes
### 0.0.1
Initial release of kedit-fold-lines