Coder Social home page Coder Social logo

auto-save's People

Contributors

jamesfzhang avatar jisaacks avatar kylebebak avatar mateuszjarzewski avatar scholer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

auto-save's Issues

Issue with autocomplete

Hi,
i'm having issues with css autocomplete behaviors.( don't know yet if it happens with other languages).
When i type few characters and sublime suggests me the list of tags available, auto-save saves the file and breaks down the suggestion list.

have auto indent alongside auto save

thanks for your prefect package
is there any way to have auto-indent alongside auto save.
simply in the same time before save file indent it ( like press f12 for indenting).

[Feature request] Auto save temporary files

1. Request

It would be nice, if you add feature to auto save temporary files.

2. Justification

For example, I use packages:

Tab GhostText

If I use these packages, I write text in tabs of temporary files. If I accidentally close tab, all my text will be lost. My text do not saved in Session.sublime-session file.

3. Desirable behavior

Add option save_temporary_file → content of GhostText, GitHub Issues or Tail tabs will be automatically saved, for example, in Packages/User/Auto Save folder, for example, after each 5 minutes.

Thanks.

I added code in Preferences / Key Bindings, but auto-save is not happened

there is only key binding & setting & setting-syntax & setting-Distraction free I can find in preference fold, I cannot find setting-user or key bindings-user, I added code{ "keys": ["ctrl+shift+s"], "command": "auto_save" } in Preferences / Key Bindings, but I still cannot auto-save. I tried to add "auto-save": true and ""save_on_focus_lost": true", but it does not help.

CAN'T GET IT TO WORK! What might I be doing wrong?!

I have done the following, as instructed:

  1. Pasted these lines into Settings —User:
    "auto_save_on_modified": true,
    "auto_save_delay_in_seconds": 0.1,
  2. Pasted this line into Key Bindings — User:
    { "keys": ["ctrl+shift+s"], "command": "auto_save" },
  3. Copied "auto_save.py" into Sublime's program folder.
  4. Tried pressing the shortcut Ctrl+Shift+S several times to enable it, but nothing seems to happen!

Can anyone please tell me, what am I doing wrong here? Please help! I'm a noob in coding! :/

Editor scrolling after each save

When editing with two panes of the same file, so after one side saves, the other pane scrolls down by a line. Eventually, the view is lost.
To recreate:

  1. Set autosave to one second.
  2. File -> open folder (then select a folder)
  3. open a file. then change the layout to two panes
  4. click file -> open folder. open the same folder, open the same file and drag it into the second pane of the first editor
  5. make a change on one side, the other side will scroll down by one line
    Thanks!

incompatibility with trim_trailing_white_space_on_save

I have trim_trailing_white_space_on_save = true in my user settings. This means that every time autosave triggers, if I had just typed a space, it gets removed.

It would be nice if autosave somehow didn't do that.

Use debouncing to save only when necessary

First of all, thanks a lot for the plugin. It is very useful and I see good improvements coming :-)
As a frontend developer, I would like auto-save to save my work as fast as possible, but I believe it would be much more sensible and efficient if it used a debounce function, i.e., if it only saves the file after I stop typing for the time set in "auto_save_delay_in_seconds".

Going back to start of line when saving on empty line

I have been using the plugin in the last weeks and I really like it and appreciate your work, but I see something completely annoying. When I am in a new line, apply some tab and then for some reason I write nothing, on save the cursor goes back to the start of the line (it does not state in the position I set). It would be great if you could fix that, because I ended up disabling the plugin for this reason. Thanks a lot.

Modifying the value of "auto_save_delay_in_seconds" is not a valid solution in my humble opinion, since many times I want files to be saved very fast, so that everything is live reloaded in the browser as fast as possible and I don't have to wait.

Not working with ST3

I reinstall several times, the cmd to enable auto_save return nothing at status bar.

I put the { "keys": ["super+ctrl+s"], "command": "auto_save" } (and tried other shortcuts) at keybind user

enable plugin change time of save

Hello
Thanks for your plugin.
I am not succeeding in activate.
But also liked that he writes only 5 in 5 minutes.
This is possible by changing some parameter?

AutoSave Not Saving Automatically (FIXED)

Infomation

  • CPU: Intel Core i7 8550U (Kabby Lake-R)
  • GPU: Intel Integrated Graphics
  • COMP TYPE: Laptop
  • Sublime Text (Build 3211)

Issue

AutoSave will not work when I press ctrl+b (my custom keybind).
When I type it will not save after I modify it.
The dot beside the file tab still shows even when I modify it.

Technical Information

C:\Users\chrst\AppData\Roaming\Sublime Text 3\Packages\User\Preferences.sublime-settings

{
	"auto_save_on_modified": true,
	"color_scheme": "Packages/ayu/ayu-mirage.sublime-color-scheme",
	"font_face": "Consolas, Courier, Monaco, monospace",
	"font_size": 26,
	"ignored_packages":
	[
	],
	"tab_size": 2,
	"theme": "ayu-mirage.sublime-theme"
}

C:\Users\chrst\AppData\Roaming\Sublime Text 3\Packages\User\Default (Windows).sublime-keymap

[
	{ "keys": ["ctrl+e"], "command": "color_pick" },
	{ "keys": [ "ctrl+b" ], "command": "auto_save" }
]

Problem when open second session of sublime

Hi James,
You made a brilliant tool. But I have problem when I open one extra session of sublime. Actually it erase all the data in first session.
Any idea how I can tackle that?
Thx!

Autosave: Please provide option to be on by default

When I first bring up ST3 Autosave is by default turned off. I take it from your notes that this is considered a feature, not a bug. I take issue with this design decision. If a user has taken the trouble to install Autosave it's because they want it's functionality. It's a nuisance to have to turn on Autosave each time ST3 is activated. To make everyone happy, please provide an option to allow Autosave to be on by default for those who prefer this way of working.

My platform: ST3 Build 3126, running on Windows 7 and 10.

Autosave current file only for few files

Hey.
When I use bindings like this {"keys": ["ctrl + shift + s"], "command": "auto_save", "args": {"all_files": false}} autosave applies to only one file.
Is it possible to configure the plugin so for 2 of 3 files I can enable autosave?

Dosn't work whatsoever

I followed setup guide, add shortcut, restart editor, on status bar i get mesage that plugin is on, but it dosn't work :(

system: Win7 64
editor: v 2.0.2, Build 2221
plugin: v1.0.3

Help me!

//edit
I've got this in console:
Exception in thread Thread-75:
Traceback (most recent call last):
File ".\threading.py", line 532, in __bootstrap_inner
File ".\threading.py", line 736, in run
File ".\auto_save.py", line 37, in debounce_save
RuntimeError: Must call on main thread, consider using sublime.set_timeout(function, timeout)

// edit 2
I manage to fix this bug for me: #6

Autosave not working

I installed auto-save to Sublime Text Build 3126 a few months back and it randomly stopped working.

"save_on_focus_lost" is set to true in user settings.

Runs hooks when saving

This is great for text files when I'm banging out comments, essays, and such.
But I have hooks set for Go programming that runs the auto formatter for Go, so they run just all the time.

Due to other hooks on saving:
If I have the cursor at the very last byte of a file, it suddenly moves the cursor to the next line when it auto-saves. This is another of my save hooks. Similarly, pausing with a blank at the end of any line will auto-erase the blank.

Some solutions:

  1. Let me configure the auto save debounce to a longer time of my choosing.
  2. Let me turn auto-save on or off by file type.
  3. Sublime should offer an option (to you) to skip the hooks on saving the file.
  4. Auto-save should turn off the hooks and issue a message whenever I activate.

None of these are perfect.
Thanks for auto-save.

Don't save repeatedly while I'm editing

The project seems sadly dead but here's an enhancement idea anyways:

Don't autosave if the cursor was moved within, say, the last 2 seconds. So, while I'm 'going' (moving my cursor to) some other place to edit, it shouldn't auto save repeatedly because I'm not done editing yet. Only when I've stopped editing should it save.

I'm guessing other nodemon users can probably relate. Rebuilding big projects for every little change can add up to a lot of CPU/disk write overhead and make your laptop heat up unnecessarily.

Using the delay setting is not an ideal workaround since I don't want to add a dumb delay, I'd prefer it smartly detected when I'm done editing (when I want it to save). I don't think there's any use case where we want it to auto save repeatedly when we're in the middle of editing some file.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.