jamesfzhang / auto-save Goto Github PK
View Code? Open in Web Editor NEWAutomatically saves the current file after every modification
License: MIT License
Automatically saves the current file after every modification
License: MIT License
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.
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).
If i'm selecting multiple objects using ctrl + D and it autosaves, the autoselect is erratic
It would be nice, if you add feature to auto save temporary files.
For example, I use packages:
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.
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.
During saving process if there is other plugin suggest auto-complementation, it hide the process.
When I add this extension into sublime, auto-completion of latextools doesn't work. Is this a bug of this extension?
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.
I have done the following, as instructed:
"auto_save_on_modified": true,
"auto_save_delay_in_seconds": 0.1,
{ "keys": ["ctrl+shift+s"], "command": "auto_save" },
Can anyone please tell me, what am I doing wrong here? Please help! I'm a noob in coding! :/
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:
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.
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".
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.
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
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 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.
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" }
]
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!
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.
Not working with file:///E:/stories.html
I want to save all the autobackups into the same folder so I don't have the autosave files all over the place and is more concise. Is this possible?
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?
Calling these files
auto-save.sublime-menu
and
auto-save.sublime-commands
makes the auto-save commands appear in the command palette in ST3 even when the package is installed by simply cloning the git repository folder to Packages/.
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
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.
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:
None of these are perfect.
Thanks for auto-save.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.