Skip to content

rizutazu/krunner-whatbyte

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KRunner WhatByte

Simple byte utility (KRunner plugin)

Usage

print <value>

Construct text by given hexadecimal value array

Syntax of <value>:

  • \x11\xab\xcD\x12: \x + one or two hexadecimal digits, space is allowed between each escape character
  • {12, 0x34, 0xEf}: C-style array, decimal or hexadecimal value, an extra comma is allowed after last element

Notice:

  • Press enter to copy constructed text
  • If the constructed text contains malformed Unicode character, it will be replaced with the placeholder character
    • In this case, you can copy the raw data as a file by selecting the action, so that you can paste it somewhere else to get exactly what you want

what <input>

Display byte representation of input

Notice:

  • Two matches will be given (see examples below)
  • Press enter to copy what-it-shows, or selecting the action to copy the whole input as a C-style array.

Examples:

what こんにちは =>

  • 'こ' => {0xe3, 0x81, 0x93}, 'ん' => {0xe3, 0x82, 0x93}, 'に' => {0xe3, 0x81, 0xab}, 'ち' => {0xe3, 0x81, 0xa1}, 'は' => {0xe3, 0x81, 0xaf}
  • 5 character(s), 15 byte(s)

what hi =>

  • 'h' => {0x68}, 'i' => {0x69}
  • 2 character(s), 2 byte(s)

Install & Uninstall

Install:

  1. make sure cmake / KDE6 / Qt6 developing environment is prepared.
  2. Run ./install.sh

Uninstall:

Run ./uninstall.sh

About

Simple byte utility

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors