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

Loss of csv file sync when saving #9

Open
igoralmeida opened this issue Feb 10, 2021 · 1 comment
Open

Loss of csv file sync when saving #9

igoralmeida opened this issue Feb 10, 2021 · 1 comment

Comments

@igoralmeida
Copy link

Hey tecosaur, I'm trying out org-pandoc-import to manage some csvs, and there is an important papercut I'd like to address when transient mode is enabled:

  1. I add a new line to the org table (point is <|>)
...other rows...
| last | row |
|  abc | defgh<|> |
  1. I press TAB to align everything nicely
...other rows...
| last |   row |
|  abc | defgh |
|<|>   |       | 
  1. Leave insert state and delete the final line
...other rows...
| last |   row |
|  abc | defgh |
<|>
  1. Try to save the file and get an error message
    user-error: Point is not inside a table

Now at this point the CSV and org files are no longer in sync. If I remember, I will go back to the table and save the file again, only to get (No changes need to be saved), so I need to make the file dirty again, get it back to how it looks on step 3 there, move my cursor to inside the table, and then save.

As a workaround, I could delete two lines on step 3, which would get me back to the end of the table and avoid the problem in step 4, but it would be better to make the saving function a bit smarter. How can I achieve that?

@tecosaur
Copy link
Owner

Mmmm. This definitely feels like it needs changing. This might take a bit (I'll try to address issue 8 first) but I have an idea for solving this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants