Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Autosave does not work for FTML files #51

Description

@zachthieme

I'm using https://github.com/FoldingText/foldingtext-for-atom which uses the FTML document type. When i navigate to a different tab it does not save for FTML files other file types save as expected.

Atom version: 1.0.19
Recently removed the Chocolatey installer version and installed via the new Squirrel-based installer

Activity

  1. izuzak commented on Oct 19, 2015

    @izuzak

    Thanks for the report, @zachthieme, I was able to reproduce this. I'm thinking it's because of this line: if event.target.matches('atom-text-editor:not([mini])'). The target element for ftml files does not match that (I just checked), so the condition fails. However, autosave works correctly when the whole window loses focus since in that case the check is not performed.

    I'm wondering if @nathansobo can share some thoughts on whether we could relax that condition so that autosave works for non atom-text-editor element (blame indicates that you were the last person to change this code 😁 ✌️)? The pane item in question does satisfy the other requirements, listed here, and again -- it autosaves correctly when the whole window is blurred, so I'm hopeful we can relax that.

  2. nathansobo commented on Oct 19, 2015

    @nathansobo
    Contributor

    Yes, I do think we can relax the selector based constraint and just use the criteria you listed.

  3. izuzak commented on Oct 20, 2015

    @izuzak

    Yes, I do think we can relax the selector based constraint and just use the criteria you listed.

    Cool, thanks for taking a look, @nathansobo 🙇

    @zachthieme With that information ☝️, are you perhaps interested in making a pull request to modify this behavior? @jessegrosjean might be interested as well. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions