6

Is there some extension that can make calc autocomplete units while value entered as algebraic input? e.g.

' 1 kn<tab>

should be completed to "1 knot".

  • I very much doubt it, but it's an interesting idea, and, probably not too difficult to implement... – wvxvw Oct 23 '15 at 9:16
  • @gordon-quad I have never used calc for stuff that would need units. Can you update the question with an example where you would want the auto-completion to happen? – Kaushal Modi Oct 23 '15 at 12:57
  • well, as I understnand units are just variables, so I can reformulate question "Is there autocompletion for variable names?" – gordon-quad Oct 23 '15 at 15:00
-1

Most unit descriptions in calc are usually very short. You will find them when typing u v. In my opinion a completion is here unnecessary, just type a ' (e. g. after typing a number) and specify your unit together with the quantity in algebraic mode.

| improve this answer | |
  • 1
    I want to convert database which is provided with "units" calculator so there can be quite long names, like 'solarmass' or 'solarluminosity' – gordon-quad Oct 23 '15 at 14:58
  • @gordon-quad: I don't understand your use case. Could you please show this "database"? – Dieter.Wilhelm Oct 24 '15 at 16:54
  • no problem. Here is url of calculator: gnu.org/software/units/units.html here is example of database: github.com/ryantenney/gnu-units/blob/master/units.dat Convertion of this db to calc units is matter of simple sed script (maybe throwing away some invalid for ecalc stuff like unicode units or functions) and as you can see it has pretty long unit names and constants. – gordon-quad Oct 24 '15 at 17:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.