DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Restore state of FARR  (Read 8,032 times)

czb

  • Honorary Member
  • Joined in 2007
  • **
  • Posts: 336
    • Plugin Coding Medal
    • Participated in NANY Challenge Once
Restore state of FARR
« on: January 03, 2008, 03:09 PM »
Hi,
I can not find any option to enable restoring of last state. By that I mean, that f.e. I do several calculations of this kind "fc 5+5" and afterwards I close the window. And when I call FARR back I would like to have completely the same state as it was when I closed it. Is there any option like this?
Thank you ;)
Oldrich Svec
My open-source online piano game: https://github.com/musicope/game

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Restore state of FARR
« Reply #1 on: January 03, 2008, 06:58 PM »
svec, that's how it already should work.

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Re: Restore state of FARR
« Reply #2 on: January 04, 2008, 12:18 AM »
it seems to be the same problem that i'm having even though i haven't tried with plugins..

• Retain keywords after losing focus

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,970
    • Gathering Badge
    • Participated in NANY Challenge Once
Re: Restore state of FARR
« Reply #3 on: January 04, 2008, 12:25 AM »
doesnt work with the calculater here at any rate -
I mean when I restart, I get the icons from the previous time it was opened..
(which suits me fine actually :))
Tom

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Restore state of FARR
« Reply #4 on: January 04, 2008, 01:01 AM »
oh i misunderstood.
if you bring farr back up and type fc again, you should see your previous history tape and the last value will still be there so that you can use it.

but you mean you want it so that if you bring up farr again, you are already open to the "fc" text and the calculator is showing?

one workaround for now is to create a special hotkey in farr that opens and starts the text saying "fc "

so now whenever you want to use farr calculator you hit shift+break or whatever, and farr will pop up ready to do calculations.

czb

  • Honorary Member
  • Joined in 2007
  • **
  • Posts: 336
    • Plugin Coding Medal
    • Participated in NANY Challenge Once
Re: Restore state of FARR
« Reply #5 on: January 04, 2008, 09:56 AM »
I agree with lanux128. That is exactly what I want  :Thmbsup:

one more problem found: When I change regular expression for Fcalc to "^ (.*)$|^ $" (so when I type "space" it starts fcalc) and write some expression and hit enter it switches from space back to its default "fc ". (for now I have solved it by such an expression "^ (.*)$|^ $|^fc (.*)$|^fc$"
My open-source online piano game: https://github.com/musicope/game
« Last Edit: January 04, 2008, 09:59 AM by czechboy »

jgpaiva

  • Artificial Idiocy
  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • Cody Award
    • Participated in NANY Challenge Once
    • Coding Snacks
    • Portugal Inhabitant
    • Linux User
Re: Restore state of FARR
« Reply #6 on: January 04, 2008, 12:50 PM »
Great idea czechboy!
I like that regex, i'll use it for myself too :)

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Re: Restore state of FARR
« Reply #7 on: January 06, 2008, 02:30 AM »
nice work, czechboy! btw, can i use the regex in the override section instead of overwriting the existing one (see pic)?

[attach=#]

Original address: https://www.donationcoder.com/forum/index.php?topic=11641.0