zanna-37 / hass-swipe-navigation

↔️ Swipe through Home Assistant Dashboard views on mobile.
MIT License
324 stars 17 forks source link

Custom swipe actions #8

Open bergh-io opened 2 years ago

bergh-io commented 2 years ago

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 commented 2 years ago

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

TODO:

bergh-io commented 2 years ago

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

zanna-37 commented 2 years ago

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

antonio1475 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

good idea , left swipe back to homepage

jacobwod commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

This is developed in PR https://github.com/zanna-37/hass-swipe-navigation/pull/37.

jpoeppelman1 commented 1 year ago

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! ;)