Comments (8)
Like @kellerza wrote, this is an enhancement request which is not fulfilled or denied, yet.
But the workaround to highlight keywords as links could be moved to a wiki.
from kitty.
Indeed @CWempe my idea was multiple RegExes with individual results. Look at this screencast to see it in action.
Limited colors is not an issue, just basic ANSI colors should be ok. Even if this is only configurable in config files it will be acceptable.
Maybe 8 regexes? Will probably have to see when this has a performance hit.
from kitty.
No worries, I've been using labctl color to do the highlighting.
It works nicely with most terminals: Kitty / Windows Terminal / inside VSCode
from kitty.
Hi @cyd01 ,
I suggest to copy/move/link this in the Wiki and close this issue.
What you think?
from kitty.
Here is a suggestion:
Another way to implement this "Poor man's syntax highlighting" could be to have multiple RegEx fields with individual options/font settings.
Example:
field name | user defined Value |
---|---|
RegEx 1 | (((((https?|ftp|svn)://)|www.)(([0-9]+.[0-9]+.[0-9]+.[0-9]+)|localhost|([a-zA-Z0-9-]+.)[a-zA-Z0-9-]+.(com|net|org|info|biz|int|gov|name|edu|[a-zA-Z][a-zA-Z]))(:[0-9]+)?((/|?)[^ "][^ ,;\.:">)])?)|(mailto://[a-zA-Z0-9-.]+@[a-zA-Z0-9-.]+.[a-z]{2,})) |
font settings 1 | underlined, clickable |
RegEx 2 | (up|enabled) |
font settings 2 | green, underlined |
RegEx 3 | (down|disabled) |
font settings 3 | red, bold |
RegEx 4 | (notconnected|([0-9]{1,3}.){3}[0-9]{1,3}) |
font settings 4 | bright cyan |
RegEx 5 | (down|disabled) |
font settings 5 | white, red background |
So I would think these options/font settings would make sense:
- clickable (for hyper links)
- font color (the usual 16 colors (including bright), I guess)
https://en.wikipedia.org/wiki/ANSI_escape_code#3/4_bit - background color
- font style (bold, underlined, blink??)
What I personally do not need (to reduce the effort for the developer):
- 256 colors
- color picker or checkboxes for font style
The user can just type the name of the colors and styles (e.g. `red, bold,
If Kitty had this feature it would make managing my switches and routers much more comfortable. 🤩
What do others think?
Would you need more or less options?
How many RegEx fields would be best?
from kitty.
Hi @CWempe ,
What do others think?
I think it's an interesting idea.
from kitty.
@cyd01
Any thoughts from your side?
Do you think this would be possible to implement?
Limited colors is not an issue, just basic ANSI colors should be ok. Even if this is only configurable in config files it will be acceptable.
Maybe it would make sense to link the RegExes to the colors defined under Window > Colours
instead of custom colors for each RegEx.
This would make it compatible with putty color schemes.
But I would be happy either way.
from kitty.
Issue closed due to inactivity
from kitty.
Related Issues (20)
- download executables mixed up?
- Feature: mDNS service discovery
- Issue with Multi Tab Putty HOT 1
- Make prompt for "Allow far2l clipboard sync?" optional.
- Different interface between Win10 and Win11 HOT 5
- [Feature request]Please provide an installer with silent options
- Can the autoreconnect feature be added to the command line parameters? HOT 3
- [Feature request] "New duplicated session..." with default Host Name
- Terrapin vulnerability mitigation HOT 2
- How do I change 16 sessions for displaying opened sessions horizontally to just 3 sessions ?
- Kageant: Cannot get rid of bogus "Couldn't load this key" popup HOT 1
- UTF-8 encoded `Windows Title` is not decoded properly HOT 3
- How to adjust the space between lines?
- Buffer Overflow Vulnerabilities in KiTTY Start Duplicated Session Hostname (CVE-2024-25003) & Username (CVE-2024-25004) Variables
- Command Injection Vulnerability in KiTTY Get Remote File Through SCP Input (CVE-2024-23749)
- Is this project dead? Search for alternatives HOT 14
- [HELP] Is there a way to store auto-login username and password PER SESSION / per IP adress? HOT 2
- DetachedCertificate supported in Putty but not in Kitty HOT 1
- I can't see the option 'Wam before OSC52 clipboard sync' on low resolution display?
- CVE-2024-31497: Secret Key Recovery of NIST P-521 Private Keys Through Biased ECDSA Nonces in PuTTY Client HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kitty.