Zim

Comment 3 for bug 269076

Revision history for this message
dotancohen (dotancohen) wrote : Re: Rename should not include path

> I would say that you rename notes rather than
> move them.

That is true if the new and old locations are in the same place of the Index hierarchy. For instance, if all pages are top-level pages, or the old name and the new name are under the same mother page.

However, if a page is to retain it's name yet have a new location in the hierarchy, then it is being moved, not renamed. The term "name" should only refer to the last section of the path, not to the full path itself.

For instance, if one browses his file
system in his file manager to "/home/user/bills/telephone", then renames it to "mortgage" he would expect the path to the file to become "/home/user/bills/mortgage" not "/home/user/mortgage" or even "/mortgage". The same behaviour is expected of Zim. That is why the rename function should not include the path: the path should not change when one is renaming a page. The path should change only when one is moving a page.