Feature request #9009
Field calculator expression should remember expression used
|Pull Request or Patch supplied:
|Copied to github as #:
Hi, when using field calculator in arttribute, it would be great that the dialog keep in memory the expression and parameter used (selection Y/N, field, expression) at least during the life time of the attribute table window, or better as long as layer is present. Saving in the project is not really usefull.
User often do a update, then rework the expression after having scanned results.
#1 Updated by Matthias Kuhn over 10 years ago
I remember this has been discussed before (maybe mailing list?).
- Save to file (So it can be used from different projects)
- A list of recent expressions (instead of a single one)
- Maybe even an online resource (as in plugins and hopefully soon svg symbols)
Maybe it should also work independent of layers (you may have a copy of a layer where you want to test and then apply to the real layer). Probably a checkbox (show history only for this layer) can help to keep this simple.
#2 Updated by Antonio Locandro over 10 years ago
In other COTS software it is kept in memory during the lifetime of the open project. Lets say I created an expression to add something, closed the layer and open another one I want to do the same thing, then its just there so I can run it again.
I think its useful to
a. Save to file if I wanted to, to use in other projects
b. recent expression sounds great. maybe the last 3 used or something
#3 Updated by Richard Duivenvoorde about 10 years ago
I think an online resource is not feasible for this, because these expressions are mostly very data specific, and not so big that it would need a file (copy to clipboard/wiki is enough)
Save to file: well, not sure if I would use this, for the same reason.
recent expressions: yes yes :-) Not via a dropdown or something like that (because again expression can be huge. But maybe in the same way as you have a history on your command line or python commmand line. So an array with last 20 expressions, an by using your arrow keys you can navigate through it?
(to start with... if really usefull we could make some gui component around this)?