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

line number support #159

Closed
phodal opened this issue Dec 14, 2024 · 0 comments
Closed

line number support #159

phodal opened this issue Dec 14, 2024 · 0 comments

Comments

@phodal
Copy link
Owner

phodal commented Dec 14, 2024

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
New Variable: $selectionWithNum
New function: lineno($text)

@phodal phodal changed the title lineNo function line number support Dec 14, 2024
phodal added a commit that referenced this issue Dec 14, 2024
- Introduced `LineNo` class and corresponding `PatternActionFuncDef.LINE_NO`.
- Added error handling for missing arguments in `lineNo` function.
- Implemented line number addition in `PatternFuncProcessor`.
phodal added a commit that referenced this issue Dec 14, 2024
…159

Enhance the ContextVariableResolver to include a new variable type `SELECTION_LN` that appends line numbers to the selected text. This improves debugging and readability by providing context for the selected code..
```
phodal added a commit that referenced this issue Dec 14, 2024
- Remove unused import `javax.swing.BorderFactory`.
- Add regex to detect line numbers in code text.
- Modify `createCodeViewerEditor` to strip line numbers if present.
- Adjust editor settings to show line numbers based on detected format.
- Fix potential index out of bounds in `revertDiff` method.
- Update UI component styling in `ShirePanelView`.
@phodal phodal closed this as completed in 89b12de Dec 14, 2024
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

1 participant