Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow direct renaming of folders #149

Closed
freezingDaniel opened this issue Oct 15, 2024 · 4 comments
Closed

Allow direct renaming of folders #149

freezingDaniel opened this issue Oct 15, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@freezingDaniel
Copy link

I hope I have not just overlooked a way to do this correctly, but I could not find a simple way to rename a folder

say one creates 2 wiki entries:

a/b
a/c
but not a itself

Filestructure:

└── a
    ├── b.md
    └── c.md

to rename the folder a, the wikis b and c need to be moved. This can be tedious for many pages.

It would be desirable that the "rename" option exists on a / empty dirs / the "Page Index" too and not only for wiki entries (md).

@redimp redimp added the enhancement New feature or request label Oct 15, 2024
@redimp
Copy link
Owner

redimp commented Oct 15, 2024

Hey @freezingDaniel, thanks for bringing this to my attention .. a page that only exists as pageindex lacks Rename and Delete .. currently I'm not sure if an Edit button should be available too.

@freezingDaniel
Copy link
Author

By Edit you mean a shortcut to create the respective md-file?
Then maybe, but I'd say as a separate Issue with lower priority, as I found the "workaround" of just using the regular "Create Page" quite easily.

  • Edit/Create page: Possible to find (first guess)
  • Delete: bit harder to think of creating a page first
  • Rename: would be really nice as pages can't be deleted separately and the workaround is tedious.

But as food for thought, a possible implementation might include:

  • Create an md-file for each folder (and keep the names synced)
  • Interpret an empty md-file as pageindex :)

@redimp
Copy link
Owner

redimp commented Oct 19, 2024

Hehe, just creating empty .md files and treating them as pageindex is a idea. Will think about it!

Another feature in this context I was thinking about, was to add a pageindex to a page/a page to a pageindex. The first. idea was to make this via yaml front matter, like

---
pageindex: top / bottom / hidden (default)
---
# The Page

and its content.

redimp added a commit that referenced this issue Nov 16, 2024
redimp added a commit that referenced this issue Nov 16, 2024
…heir attachments

- Renaming of folders was brought up in #149.
- Deleting pages without deleting their subpages (subpages are
  technically just attachments) was brought up in #150.
@redimp
Copy link
Owner

redimp commented Nov 17, 2024

Released in v2.8.0.

@redimp redimp closed this as completed Nov 17, 2024
eifelmicha pushed a commit to Schmitzis/otterwiki that referenced this issue Dec 14, 2024
eifelmicha pushed a commit to Schmitzis/otterwiki that referenced this issue Dec 14, 2024
…heir attachments

- Renaming of folders was brought up in redimp#149.
- Deleting pages without deleting their subpages (subpages are
  technically just attachments) was brought up in redimp#150.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants