zanna-37 / hass-swipe-navigation

↔️ Swipe through Home Assistant Dashboard views on mobile.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Custom swipe actions

bergh-io opened this issue · comments

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.

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

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

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

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.

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. ☺️

good idea , left swipe back to homepage

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?

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. 😊

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: ...

This is developed in PR #37.

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