• 98 Posts
  • 546 Comments
Joined 1 year ago
cake
Cake day: June 24th, 2023

help-circle







  • I have no idea if there’s a “normal” way to do it, but in case you don’t find anything better and if you’re willing to spend a bit of time tinkering, an option could be writing a kate plugin. I did it only once, so my knowledge is extremely poor, but it should be possible to connect to the “text selected” signal, and everytime some text is selected, you read the text document and search if there’s a comma or a period etc and in case select the whole number







  • It looks interesting, but more focused on conversions than actual operations it seems:

    octave:37> a.value = 100
    a =
    
      scalar structure containing the fields:
    
        value = 100
        unit = W
    
    octave:38> a.unit = 'W'
    a =
    
      scalar structure containing the fields:
    
        value = 100
        unit = W
    
    octave:39> b.value = 3
    b =
    
      scalar structure containing the fields:
    
        value = 3
        unit = s
    
    octave:40> b.unit = 's'
    b =
    
      scalar structure containing the fields:
    
        value = 3
        unit = s
    
    octave:41> a*b
    error: binary operator '*' not implemented for 'scalar struct' by 'scalar struct' operations