Remember window size and position for each note separately
Thomas Lohrum 10 years ago • updated by Christof Deininger 7 years ago • 29
Closed due to inability to collect 10 votes for more than 2 years.
Customer support service by UserEcho
(I also made this comment in my post that you link to)Another (very different) option/possibility would be to simply have the note-windows open to a default size & location (as opposed to the same size-location of last saved note).
No. One placement will hold one uid only at any time.
>Please keep in mind that placement2 = "second editor window". So that the one and same note can be opened at different positions depending on if there's already another editor window open.
How is that? I've never been able to open the one and same note in more than one editor window.
placement1.uid = (0, 0, 100, 100)
placement2.uid = (50, 50, 150, 150)
Now if you open the note with uid as the first editor, it will be shown at (0, 0, 100, 100), but if another note is already open, it will be shown at (50, 50, 150, 150).
placement1 = <default pos for editor#1>
placement2 = <default pos for editor#2>
placement.uid[someuid1] = <pos for note with uid 1, takes precedence over placementN>
placement.uid[someuid2] = <pos for note with uid 2, takes precedence over placementN>
Is that correct?
So basically you want CN to remember position of any note that has once been opened, and use the default positions for new/never opened notes. Is that correct?
The coordinates are stored in placement1 = , just as they have always been.
> So basically you want CN to remember position of any note that has once been opened,
This makes sense only when the position would be stored along the note itself, which in turn violates read-only databases. Alex, i realize this is not really easy to answer. Basically i am asking the computer to understand my desires before i do ;) The current system is fine for simple workflows. For example when you open one or two editor windows only at the same time. Often i work on a group of notes though. In that case i want CN to remember the arrangement of the editors, that is position, size and correlating note (uid). Grouping notes is one aspect only. Duration is another. After a couple of hours/days (when the work on the group is completed) the arrangement information can be released to avoid massive data collection.
1) An option to specify "remember the position of the last open editor windows for X days"
2) A special 'pin option' (an icon on every window) so one can manually choose to remember this window position.
I would prefer option 1.
You asked Thomas: "So basically you want CN to remember position of any note that has once been opened"
and I thought the concern would be the amount of (partly unnecessary) positions that have to be stored 'forever'.
So I suggested to give those information an expiration date (keep info for X days). The window positions stored could then be deleted after X days have passed.
Does this make sense?
But maybe I didn't get the real problem you where talking about ;-(
That is exactly the problem i am talking about.
Introducing pin-state will allow finer control of window positions, thus grouping of notes will be possible as an example. However, it does not solve the above problem, which is rather common. Of course, i could pin any window when opening it. But after all i'd like CN to be smart enough to aid in such a simple case. Maybe pinning as a default could solve the request (add an ini-setting)?
Chris, this is a very interesting suggestion, as it allows to control the behaviour.
Alex, how about the following suggestion:
- keep the existing feature of window handling untouched
- introduce a second cache for pinned editors, which will hold up to 20 items
- the second cache will hold window position+size of a pinned editor window and the note's uid
- since the cache holds uids it is global in regards to different databases used
- when the cache is full the oldest item will be reused (ring buffer)
- add a pin icon to the editor to switch pin-state of the editor
- when a note gets opened, check whether there is an entry in the pin-cache. If there is an entry use it. If there is no entry proceed with the classic behaviour.
1) a hotkey to trigger it
2) a visual clue (eg. a special addition to the window title or a special windows icon)
This tool can do more but - as I found out - this also works great with the editor windows of CN.
You could even add some clever rules to open e.g. 'Tasks' on a special position (if you can identify a task from the text in the title bar).