-
-
Notifications
You must be signed in to change notification settings - Fork 961
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
How to get hints on compiler errors ? And jump into editor on error file and line ? #4491
Comments
@kovidgoyal I tried this: # kitty.conf
map super+y kitten hints --type=linenum --linenum-action=tab nvim +{line} {path} on the exact compiler errors above ...but I keep getting " |
I also tried this: # kitty.conf
map super+y _hints --linenum-action=window --type=regex --regex="\b(?P<filepath>.+):(?P<line>\d+)(:(?P<column>\d+))?" --program="nvim +{line} {filepath}" Which gives me matches on more than just what I need, by matching the command prompt paths, and doesn't seem to do anything once I select a hint... something wrong with my usage of So I also tried removing # kitty.conf
map super+y _hints --linenum-action=window --type=regex --regex="\b(?P<filepath>.+):(?P<line>\d+)(:(?P<column>\d+))?" nvim +{line} {filepath} ...but that doesn't work either and I get: " |
def linenum_marks(...)
# ...
regex = r'(?P<path>(?:\S*/\S+?)|(?:\S+[.][a-zA-Z0-9]{2,7})):(?P<line>\d+)' @kovidgoyal |
On Mon, Jan 10, 2022 at 12:12:55AM -0800, page-down wrote:
`main.c` cannot be matched by the default rules (ext 2~7). This issue has also been on my list for a while.
```python
def linenum_marks(...)
# ...
regex = r'(?P<path>(?:\S*/\S+?)|(?:\S+[.][a-zA-Z0-9]{2,7})):(?P<line>\d+)'
```
@kovidgoyal
Is there a negative impact if we add single-letter `c`, `h`, `m` files?
Should be ok to add aother branch to the regex of the form:
(?:\S+[.][hcm])
|
Consider this:
How can you get hints on just
main.c:6
and openvim
directly on that line ?Bonus: can you additionally include columns in this ? i.e hint selection would include them and
vim
opens cusor directly in that file, on that line, on that column.The text was updated successfully, but these errors were encountered: