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

Custom swipe actions #8

Open
bergh-io opened this issue Sep 14, 2022 · 11 comments · May be fixed by #37
Open

Custom swipe actions #8

bergh-io opened this issue Sep 14, 2022 · 11 comments · May be fixed by #37
Labels
✨ feature New feature or request 👀 will pick this up eventually An interesting issue that is in the to-do list

Comments

@bergh-io
Copy link

bergh-io commented Sep 14, 2022

Hello

I really like the idea of this app but what I want to do is simply swipe to go back to the dispay I came from, not the one next to the one I'm in.
Is that possible to integrate as an option?

Please upvote this comment with a 👍 if you want this feature as well.

@zanna-37 zanna-37 added the ✨ feature New feature or request label Sep 14, 2022
@zanna-37
Copy link
Owner

zanna-37 commented Sep 14, 2022

It's a possibility but I'll wait to see if others are also interested.

TODO:

  • Custom action to go back
  • Custom action to go to a specific tab

@bergh-io
Copy link
Author

Great, I'll give the first thumbs up then and keep my fingers crossed :)

@zanna-37
Copy link
Owner

Given the issue on maykar/lovelace-swipe-navigation#67 @filikun might also want to add their two cents.

@zanna-37 zanna-37 changed the title Swipe to go back Custom swipe actions Sep 14, 2022
@zanna-37 zanna-37 added the 👀 will pick this up eventually An interesting issue that is in the to-do list label Oct 12, 2022
@antonio1475
Copy link

This became especially relevant with the Subviews introduced in 2022.10 😄

Even more when using a theme that hides the navigation bar - there's no way to go back unless you add a Back button in the page.

@zanna-37 zanna-37 added the 🤝 help is welcome Contributors are welcome label Dec 9, 2022
@zanna-37
Copy link
Owner

zanna-37 commented Dec 9, 2022

I acknowledge that this is an interesting feature, but it requires a bit of rework and decisions.
Even if it's on my to-do list, I don't have time to focus on this now.
If someone wants to open a pull request and draft a solution, it would be welcome. ☺️

@ritech
Copy link

ritech commented Dec 16, 2022

good idea , left swipe back to homepage

@jacobwod
Copy link

jacobwod commented Feb 2, 2023

Hi @zanna-37, I see that in this thread you mention this feature as being "under evaluation". Can this be enabled in by some experimental flag, or is it just an idea?

@zanna-37
Copy link
Owner

zanna-37 commented Feb 2, 2023

Hi @zanna-37, I see that in this thread you mention this feature as being "under evaluation". Can this be enabled in by some experimental flag, or is it just an idea?

As I mentioned few comments ago it's just an idea for lack of time. But pull requests are welcome. 😊

@albinmedoc
Copy link

albinmedoc commented Feb 10, 2023

An idea is to have the configuration like this.

views:
  - title: "Home"
    path: "home"
    cards: ...

  - title: "Living room"
    path: "living-room"
    swipe_back_path: "home"
    cards: ...

  - title: "Bedroom"
    path: "bedroom"
    swipe_back_path: "home"
    swipe_forward_path: "secret_tab"
    cards: ...

@albinmedoc
Copy link

This is developed in PR #37.

@zanna-37 zanna-37 linked a pull request Feb 13, 2023 that will close this issue
@zanna-37 zanna-37 added 🚧⚙️ work in progress... Issues I'm working on and removed 🤝 help is welcome Contributors are welcome 👀 will pick this up eventually An interesting issue that is in the to-do list labels Feb 13, 2023
@jpoeppelman1
Copy link

Hello everyone. I'm very interested in the swipe back enhancement, configurable at the view level. Any luck on this one? Would be super duper awesome! ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ feature New feature or request 👀 will pick this up eventually An interesting issue that is in the to-do list
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants