Coder Social home page Coder Social logo

atom-local-history's Introduction

Hi there ๐Ÿ‘‹

  • ๐Ÿ”ญ Iโ€™m currently working on SaaS & PaaS projects
    • Mainly with: Elixir, Javascript, Node.js, Crystal, Docker, Kubernetes & other devOps tools
  • ๐Ÿ“ซ How to reach me: https://www.linkedin.com/in/ntalle/

NOTE: Top languages does not indicate my skill level or something like that, it's a Github metric of which languages I have the most code on Github.

atom-local-history's People

Contributors

johnmurga avatar jp187 avatar martin-reznik avatar nasa42 avatar nicolab avatar trudko 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

atom-local-history's Issues

Workspace.Object.defineProperty.get is deprecated.

Use ::getActivePaneItem() instead of the ::activePaneItem property

Workspace.Object.defineProperty.get (C:\Users\blaize9\AppData\Local\atom\app-0.190.0\resources\app\src\workspace.js:892:14)
Object.getCurrentBuffer (C:\Users\blaize9\.atom\packages\local-history\node_modules\atom-helpers\lib\editor.js:7:63)

Atom.Object.defineProperty.get is deprecated.

atom.workspaceView is no longer available.
In most cases you will not need the view. See the Workspace docs for
alternatives: https://atom.io/docs/api/latest/Workspace.
If you do need the view, please use atom.views.getView(atom.workspace),
which returns an HTMLElement.

Atom.Object.defineProperty.get (c:\Users\Serkan\AppData\Local\atom\app-0.175.0\resources\app\src\atom.js:55:11)
Object.activate (c:\Users\Serkan\.atom\packages\local-history\lib\local-history.js:43:9)

On Windows with ByeondCompare - after succesful compare its throwing error

I'm getting some weird behavior here.

This is my setting for diff:

"C:\Users\Mercurius\Desktop\Beyond Compare 4\BCompare.exe" "{revision-file}" "{current-file}"

When I do a diff it succesfully opens it.

But after I close the diff tool this error shows in atom:


Local history: difftool Command
Check the field value of difftool Command in your settings (local-history package).
Command error: "C:\Users\Mercurius\Desktop\Beyond Compare 4\BCompare.exe" "C:\Users\Mercurius\.atom\local-history\C\Users\Mercurius\Documents\GitHub\react-grid-layout\2016-05-21_3-19-40 PM_index.js" "C:\Users\Mercurius\Documents\GitHub\react-grid-layout\index.js"

Error details: Error: Command failed: C:\WINDOWS\system32\cmd.exe /s /c "cd C:\Users\Mercurius\Documents\GitHub\react-grid-layout && "C:\Users\Mercurius\Desktop\Beyond Compare 4\BCompare.exe" "C:\Users\Mercurius\.atom\local-history\C\Users\Mercurius\Documents\GitHub\react-grid-layout\2016-05-21_3-19-40 PM_index.js" "C:\Users\Mercurius\Documents\GitHub\react-grid-layout\index.js""
index.js26:19
CRLFUTF-8JavaScriptmaster+65, -5

Any idea why please?

Files showing "null" only

Any type of file I open from about the past month is showing me "null" and is 1KB in size. I tried to uninstall and reinstall, but same issue. Please help!

image

Improve date formatting

Can we switch/migrate to using 24-hour time for file names, just so that it is easier to sort when viewing the folder.

Problem running difftool

I get this error:
Command error: ksdiff "/Users/niall/test" "/Users/niall/.atom/local-history/Users/niall/Documents/2015-02-26_10-38-38 PM_test"

Error details: Error: Command failed: /bin/sh -c cd /Users/niall && ksdiff "/Users/niall/test" "/Users/niall/.atom/local-history/Users/niall/Documents/2015-02-26_10-38-38 PM_test" /bin/sh: ksdiff: command not found

However, if I run /bin/sh -c cd /Users/niall && ksdiff "/Users/niall/test" "/Users/niall/.atom/local-history/Users/niall/Documents/2015-02-26_10-38-38 PM_test" from the command line, it works fine.

Windows, local history copies are created, but cannot be found and displayed in the list

Directory opened in Atom is C:\Projects\my-project. The history is being created in %USERPROFILE%\.atom\local-history\c\Projects\my-project\<timestamp>_myfile.txt, but when I toggle Local History: Current File in the Command palette (Ctrl+Shift+P), it says No matches found and below that the full (correct) path to %USERPROFILE%\.atom\local-history

One example of a local history file: 2015-1-27_1-49-13 PM_myfile.txt
Maybe it's caused by a mismatch in timestamp formatting (e.g. by the space preceding PM)?

Atom.Object.defineProperty.get is deprecated.

atom.workspaceView is no longer available.
In most cases you will not need the view. See the Workspace docs for
alternatives: https://atom.io/docs/api/latest/Workspace.
If you do need the view, please use atom.views.getView(atom.workspace),
which returns an HTMLElement.

Atom.Object.defineProperty.get (/Applications/Atom.app/Contents/Resources/app/src/atom.js:53:11)
Object.activate (/Users/fbajanik/.atom/packages/local-history/lib/local-history.js:50:9)

Workspace.eachEditor is deprecated.

Use Workspace::observeTextEditors instead

Workspace.eachEditor (C:\Users\kai\AppData\Local\atom\app-0.190.0\resources\app\src\workspace.js:942:7)
Object.activate (C:\Users\kai\.atom\packages\local-history\lib\local-history.js:34:20)

Error when using Araxis Merge as difftool

I use Araxis Merge and I set the Difftool Command to:

compare "{current-file}" "{revision-file}"

When the diff is performed, Araxis Merge opens with the files but in Atom there are two errors displayed that say "Command failed".

If I copy the command generated by atom-local-history from the error message and paste it into a terminal window, there is no error in the terminal (just in Atom).

cd "/Users/paul/project" && compare "/Users/paul/project/file1.xml" "/Users/paul/.atom/local-history/Users/paul/project/2017-05-16_12-39-18_file1.xml"

Not sure why an error is shown in Atom and not when copying the generated command into the terminal since in both cases Araxis Merge loads and displays the diff properly.

What is diff tool for and how to use?

Hello Nicolab or anyone,

I use your local history package and I am wondering what is the diff tool for and how to use it, windows.

Regards,
Aditya A

TextBuffer.on is deprecated.

Use TextBuffer::onWillSave instead. A TextBuffer instance is no longer provided as a callback argument.

TextBuffer.on (C:\Users\kai\AppData\Local\atom\app-0.190.0\resources\app\node_modules\text-buffer\lib\text-buffer.js:1179:16)
<unknown> (C:\Users\kai\.atom\packages\local-history\lib\local-history.js:35:21)

Option to allow saving backup files with date of last mod, instead of date of save

Hi, I would like to save my backup files using the date of the last modification of the file, instead of with the date of when the save was performed.

In shell terminology, basically the idea would be to copy the file using cp -a instead of just cp.

Eventually the date encoded in the name of the file should also be changed to the date of the last modification of the file.

This could be added as an option to the configuration settings, instead of as the default behavior.

[Windows 64-bit] Local history doesn't work

Hi , after installing local history it doesn't seem to save revisions. I took a look at the code and I noticed that you listening to after-will-be-saved event.

editor.buffer.on('after-will-be-saved', function (buffer) {

who is supposed to emit this event? When I changed it for example to will-be-saved which is emitted by Atom text buffer, packaged worked correctly.

Error with react editor

This is what I'm seeing in the console:
Uncaught TypeError: Object # has no method 'lineElementForScreenRow' (index.js 22)

"diff command"

Using "meld" is meant as external program ?
Is any chanse that functionality will be enchansed to support split-diff package (there is not such command, so guess it's needed to open files side by side and then toogle diff) ?

Save history also for unsaved files

For unsaved files it would be useful to also save the history.

We cannot use the fullpath. So putting some random number as path in the right project would do the trick.

For me, it would be an awesome feature to have some track of older unsaved tabs.

Purge confirmation

Hi :). how about adding confirming dialog for purge command? Maybe is just me, but I've accidentally purge current file.(Purge command comes at top of the list)

Workspace.Object.defineProperty.get is deprecated.

Use ::getActivePaneItem() instead of the ::activePaneItem property

Workspace.Object.defineProperty.get (/Applications/Atom.app/Contents/Resources/app/src/workspace.js:892:14)
Object.getCurrentBuffer (/Users/justbane/.atom/packages/local-history/node_modules/atom-helpers/lib/editor.js:7:30)

Uncaught NotFoundError: Failed to execute 'appendChild' on 'Node': The node to be removed is no longer a child of this node. Perhaps it was moved in a 'blur' event handler?

[Enter steps to reproduce below:]

  1. Clicked 'Packages โ€บ Local History โ€บ Show current file' in Atom menu bar.
  2. Error is thrown.

Atom Version: 0.188.0
System: Mac OS X 10.10.2
Thrown From: local-history package, v2.3.0

Stack Trace

Uncaught NotFoundError: Failed to execute 'appendChild' on 'Node': The node to be removed is no longer a child of this node. Perhaps it was moved in a 'blur' event handler?

At /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:5830

Error: Failed to execute 'appendChild' on 'Node': The node to be removed is no longer a child of this node. Perhaps it was moved in a 'blur' event handler?
  at Error (native)
  at Function.jQuery.extend.buildFragment (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:5830:27)
  at WorkspaceView.jQuery.fn.extend.domManip (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:5636:22)
  at WorkspaceView.jQuery.fn.extend.append (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:5458:15)
  at WorkspaceView.jQuery.fn.(anonymous function) [as append] (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/lib/space-pen.js:396:31)
  at LocalHistoryView.findLocalHistory (/Users/Jase/.atom/packages/local-history/lib/local-history-view.js:127:22)
  at atom-workspace.<anonymous> (/Users/Jase/.atom/packages/local-history/lib/local-history.js:50:12)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:242:29)
  at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:3:61)
  at CommandRegistry.module.exports.CommandRegistry.dispatch (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:157:19)
  at EventEmitter.<anonymous> (/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:73:30)
  at EventEmitter.emit (events.js:116:17)

Commands

  2x -3:19.1 core:move-right (atom-text-editor.editor)
     -3:18.5 editor:move-to-end-of-screen-line (atom-text-editor.editor)
     -3:18.2 editor:select-to-first-character-of-line (atom-text-editor.editor)
     -3:17.1 core:copy (atom-text-editor.editor)
     -3:13.6 editor:newline (atom-text-editor.editor)
     -3:13.1 core:paste (atom-text-editor.editor)
     -3:12.2 editor:move-to-first-character-of-line (atom-text-editor.editor)
     -3:11.3 core:move-right (atom-text-editor.editor)
     -3:10.9 editor:select-to-end-of-word (atom-text-editor.editor)
  4x -3:10.5 core:select-left (atom-text-editor.editor)
     -3:08.6 editor:move-to-end-of-screen-line (atom-text-editor.editor)
     -3:04.6 core:move-right (atom-text-editor.editor)
     -3:04.1 core:select-down (atom-text-editor.editor)
     -3:03.4 core:backspace (atom-text-editor.editor)
     -3:02.5 core:save (atom-text-editor.editor)
     -0:01.7 local-history:current-file (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)

Config

{
  "core": {
    "ignoredNames": [
      ".git",
      ".svn",
      ".DS_Store",
      ".sass-cache",
      ".tmp"
    ],
    "excludeVcsIgnoredPaths": false,
    "disabledPackages": [
      "autocomplete-paths",
      "project-colorize",
      "atom-terminal",
      "color-picker",
      "notebook",
      "Zen",
      "welcome",
      "timecop",
      "linter-less",
      "linter-scss-lint",
      "linter-csslint",
      "deprecation-cop"
    ],
    "themes": [
      "newton-dark-ui",
      "newton-dark-syntax"
    ]
  },
  "local-history": {}
}

Installed Packages

# User
atom-color-highlight, v3.0.8
autoclose-html, v0.15.0
autocomplete-plus, v2.7.1
autocomplete-snippets, v1.2.0
editor-stats, v0.17.0
file-icons, v1.5.2
git-tab-status, v1.6.0
highlight-line, v0.10.1
hipster-ipsum, v0.1.0
jsonpp, v0.0.6
linter, v0.12.0
linter-jshint, v0.1.0
local-history, v2.3.0
minimap, v4.7.1
newton-dark-syntax, v1.1.1
newton-dark-ui, v1.0.4
pretty-json, v0.3.2
project-palette-finder, v2.4.16
symbols-tree-view, v0.8.3
tree-view-breadcrumb, v0.4.1

# Dev
No dev packages

Deprecated Atom APIs will be removed June 1st

Atom will no longer load this package after June 1st without changes. There are a couple deprecations on the latest version (3.1.0) of this package:

  1. The context menu CSON format has changed. Please see https://atom.io/docs/api/latest/ContextMenuManager#context-menu-cson-format for more info.
  2. Use a config schema instead. See the configuration section of https://atom.io/docs/latest/hacking-atom-package-word-count and https://atom.io/docs/api/latest/Config for more details
  3. Requiring SelectListView from atom is no longer supported. Please require SelectListView from atom-space-pen-view instead: {SelectListView} = require 'atom-space-pen-views' Note that the API has changed slightly! Please read the docs at https://github.com/atom/atom-space-pen-views Add "atom-space-pen-views": "^2.0.3" to your package dependencies.
  4. atom.workspaceView is no longer available. In most cases you will not need the view. See the Workspace docs for alternatives: https://atom.io/docs/api/latest/Workspace. If you do need the view, please use atom.views.getView(atom.workspace), which returns an HTMLElement.

Visit https://gist.github.com/benogle/6d09e295c84b717ef9b4 and search for your package name to see up-to-date deprecations.

If this package has been replaced by another package or functionality in core, please reply with this information.

See atom/atom#6867 for more info. Thanks!

Optimization for loading package

2014-07-09 9 49 23

considering use activationEvents to delay loading.

activationEvents (Optional): an Array of Strings identifying events that trigger your package's activation. You can delay the loading of your package until one of these events is triggered.

Automatic Purge

Hey Nicolas,

Thanks for this package! I missed the feature from Eclipse.

Instead of implementing an automatic purge, there's a simple workaround that you could add to the documentation. Simply add this line to your init.coffee (Edit > Init Script...):

atom.commands.dispatch(atom.views.getView(atom.workspace), 'local-history:purge');

This way, the purge command will be called automatically every time atom starts.

Unable to install 1.0.3

Seeing this:
Error serializing package 'local-history' TypeError: Cannot call method 'serialize' of null
at Object.module.exports.serialize (/Users/rcrooks/.atom/packages/local-history/lib/local-history.js:70:52)
at Package.module.exports.Package.serialize (/Applications/Atom.app/Contents/Resources/app/src/package.js:393:97)
at PackageManager.module.exports.PackageManager.deactivatePackage (/Applications/Atom.app/Contents/Resources/app/src/package-manager.js:132:65)
at PackageManager.module.exports.PackageManager.update (/Applications/Atom.app/Contents/Resources/app/node_modules/settings-view/lib/package-manager.js:177:23)
at PackageUpdateView.module.exports.PackageUpdateView.upgrade (/Applications/Atom.app/Contents/Resources/app/node_modules/settings-view/lib/package-update-view.js:154:34)
at HTMLButtonElement. (/Applications/Atom.app/Contents/Resources/app/node_modules/settings-view/lib/package-update-view.js:73:24)
at HTMLButtonElement.jQuery.event.dispatch (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4676:9)
at HTMLButtonElement.elemData.handle (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4360:28)

Crash when attempting to save a completely new file

To recreate:

  1. Create a new file from any window,
  2. Type some text,
  3. Use "Save" or "Save As" to save the file.
  4. Error! Save-file action is blocked.
Uncaught TypeError: Cannot read property 'path' of null 
/Users/brian/.atom/packages/local-history/lib/local-history.js:33

[windows] files are not stored

Hi!
I have no any stored file in c:\Users\MyUserName.atom\local-history\ on Windows (7 x64).
And empty list ("No mathes found") of revisions.

What i should to do to make it powerful on Windows?

Thank you!

Uncaught TypeError: undefined is not a function

Atom Version: 0.207.0
System: Mac OS X 10.10.3
Thrown From: local-history package, v3.2.2

Stack Trace

Uncaught TypeError: undefined is not a function

At /Users/yriveiro/.atom/packages/local-history/lib/local-history-view.js:147

TypeError: undefined is not a function
  at LocalHistoryView.openDifftool (/Users/yriveiro/.atom/packages/local-history/lib/local-history-view.js:147:31)
  at LocalHistoryView.openDifftoolForCurrentFile (/Users/yriveiro/.atom/packages/local-history/lib/local-history-view.js:142:17)
  at LocalHistoryView.confirmed (/Users/yriveiro/.atom/packages/local-history/lib/local-history-view.js:102:10)
  at LocalHistoryView.module.exports.SelectListView.confirmSelection (/opt/homebrew-cask/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/node_modules/atom-space-pen-views/lib/select-list-view.js:338:21)
  at space-pen-div.atom.commands.add.core:confirm (/opt/homebrew-cask/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/node_modules/atom-space-pen-views/lib/select-list-view.js:109:19)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/opt/homebrew-cask/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/src/command-registry.js:238:29)
  at /opt/homebrew-cask/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61
  at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/opt/homebrew-cask/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:520:16)
  at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/opt/homebrew-cask/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:355:22)
  at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/opt/homebrew-cask/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:177:20)

Commands

     -4:53.7.0 docblockr:parse-tab (atom-text-editor.editor.cursor-block.vim-mode.is-focused.insert-mode)
     -4:53.7.0 editor:indent (atom-text-editor.editor.cursor-block.vim-mode.is-focused.insert-mode)
     -4:52.7.0 core:paste (atom-text-editor.editor.cursor-block.vim-mode.is-focused.insert-mode)
     -4:50.4.0 editor:move-to-first-character-of-line (atom-text-editor.editor.cursor-block.vim-mode.is-focused.insert-mode)
     -4:46.2.0 vim-mode:activate-command-mode (atom-text-editor.editor.cursor-block.vim-mode.is-focused.insert-mode.autocomplete-active)
     -4:44.2.0 vim-mode:delete-right (atom-text-editor.editor.cursor-block.vim-mode.is-focused.command-mode)
     -4:43.8.0 vim-mode:repeat (atom-text-editor.editor.cursor-block.vim-mode.is-focused.command-mode)
     -4:43.3.0 core:save (atom-text-editor.editor.cursor-block.vim-mode.is-focused.command-mode)
     -0:14.9.0 fuzzy-finder:toggle-file-finder (atom-text-editor.editor.cursor-block.vim-mode.command-mode.is-focused)
     -0:14.7.0 core:paste (atom-text-editor.editor.mini.is-focused)
     -0:14 editor:move-to-first-character-of-line (atom-text-editor.editor.mini.is-focused)
 10x -0:13.5.0 core:delete (atom-text-editor.editor.mini.is-focused)
     -0:11.9.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:07.6.0 editor:consolidate-selections (atom-text-editor.editor.mini.is-focused)
     -0:07.6.0 core:cancel (atom-text-editor.editor.mini.is-focused)
     -0:03.8.0 core:confirm (atom-text-editor.editor.mini.is-focused)

Config

{
  "core": {
    "disabledPackages": [
      "autocomplete",
      "meteor-api",
      "meteor-helper",
      "meteor-snippets"
    ],
    "themes": [
      "atom-dark-ui",
      "seti-syntax"
    ]
  },
  "local-history": {}
}

Installed Packages

# User
atom-beautify, v0.27.12
autocomplete-paths, v1.0.2
autocomplete-php, v0.3.6
autocomplete-phpunit, v1.0.2
block-cursor, v0.12.5
color-picker, v2.0.4
docblockr, v0.7.2
file-icons, v1.5.7
flex-tool-bar, v0.4.2
git-tab-status, v1.9.2
highlight-line, v0.10.2
linter, v0.12.6
linter-php, v0.0.15
linter-shellcheck, v0.0.8
local-history, v3.2.2
markdown-format, v2.5.1
minimap, v4.9.4
minimap-git-diff, v4.1.3
php-debug, v0.1.1
phpunit, v1.1.1
seti-syntax, v0.4.0
tool-bar, v0.1.6
travis-ci-status, v0.15.0
vim-mode, v0.51.0
wakatime, v4.0.9

# Dev
No dev packages

Failed to load the local-history package

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 0.208.0
System: Mac OS X 10.10.3
Thrown From: local-history package, v3.2.2

Stack Trace

Failed to load the local-history package

At Cannot find module 'fs-plus'

Error: Cannot find module 'fs-plus'
    at Module._resolveFilename (module.js:328:15)
    at Function.Module._resolveFilename (/Applications/Atom.app/Contents/Resources/app.asar/src/module-cache.js:383:52)
    at Function.Module._load (module.js:270:25)
    at Module.require (module.js:357:17)
    at require (module.js:376:17)
    at Object.<anonymous> (/Users/vihryn/.atom/packages/local-history/lib/utils.js:8:24)
    at Module._compile (module.js:452:26)
    at Object.loadFile [as .js] (/Applications/Atom.app/Contents/Resources/app.asar/src/babel.js:162:21)
    at Module.load (module.js:347:32)
    at Function.Module._load (module.js:302:12)

Commands

Config

{
  "core": {
    "ignoredNames": [
      ".gitkeep"
    ],
    "disabledPackages": [
      "git-merge-conflicts",
      "language-objective-c",
      "linter-handlebars"
    ],
    "themes": [
      "one-light-ui",
      "one-light-syntax"
    ]
  },
  "local-history": {}
}

Installed Packages

# User
atom-handlebars, v0.5.0
atom-jshint, v2.0.0
better-handlebars, v0.1.1
ember-snippets, v1.2.1
javascript-snippets, v1.0.0
language-handlebars, v0.2.0
language-vhdl, v0.7.1
local-history, v3.2.2
regex-railroad-diagram, v0.7.4
tabs-to-spaces, v0.11.0

# Dev
No dev packages

Workspace.Object.defineProperty.get is deprecated.

Here is the other errors that show up with a fresh install of atom http://pastebin.com/raw.php?i=RuXUb6PM

Use ::getActivePaneItem() instead of the ::activePaneItem property

Workspace.Object.defineProperty.get (C:\Users\blaize9\AppData\Local\atom\app-0.190.0\resources\app\src\workspace.js:892:14)
Object.getCurrentBuffer (C:\Users\blaize9\.atom\packages\local-history\node_modules\atom-helpers\lib\editor.js:7:30)

Atom.Object.defineProperty.get is deprecated.

atom.workspaceView is no longer available.
In most cases you will not need the view. See the Workspace docs for
alternatives: https://atom.io/docs/api/latest/Workspace.
If you do need the view, please use atom.views.getView(atom.workspace),
which returns an HTMLElement.

Atom.Object.defineProperty.get (/Applications/Atom.app/Contents/Resources/app/src/atom.js:53:11)
Object.activate (/Users/fbajanik/.atom/packages/local-history/lib/local-history.js:57:9)

Problem with filenames including underscore in name

Some context first, i'm using Rails, and most of the files use underscore in name (e.g. application_helper.rb), so they aren't being listed in history, i had a look in your code and the problem seems to in getOriginBaseName ... the filename is being get by the last index of underscore ... so in my example ... it only gets helper.rb instead of application_helper.rb ... i was trying some things and i think that one solution could be using an regular expression to remove the date from the filename something like: basePath.replace(/([0-9]{4}-[0-9]{2}-[0-9]{2})([0-9]{2}-[0-9]{2}-[0-9]{2})/g, '') ... i'm not expert in regex so ... maybe could exist a better approach

Object.basename is deprecated.

Arguments to path.basename must be strings

Object.basename (C:\Users\SQ-47\AppData\Local\atom\app-1.16.0\resources\app.asar\src\electron-shims.js:31:10)
Object.getOriginBaseName (C:\Users\SQ-47\.atom\packages\local-history\lib\utils.js:29:25)
Object.getFileRevisionList (C:\Users\SQ-47\.atom\packages\local-history\lib\utils.js:51:38)
LocalHistoryView.findLocalHistory (C:\Users\SQ-47\.atom\packages\local-history\lib\local-history-view.js:137:27)
atom-workspace.<anonymous> (C:\Users\SQ-47\.atom\packages\local-history\lib\local-history.js:67:14)
CommandRegistry.handleCommandEvent (C:\Users\SQ-47\AppData\Local\atom\app-1.16.0\resources\app.asar\src\command-registry.js:259:29)

Add configurable path

How about to let user set path for backup? I am happy to add it, just want to know if you like this :)

Package.getStylesheetsPath is deprecated.

Store package style sheets in the styles/ directory instead of stylesheets/ in the local-history package

Package.getStylesheetsPath (C:\Users\kai\AppData\Local\atom\app-0.190.0\resources\app\src\package.js:433:9)
Package.getStylesheetPaths (C:\Users\kai\AppData\Local\atom\app-0.190.0\resources\app\src\package.js:444:32)

Atom.Object.defineProperty.get is deprecated.

atom.workspaceView is no longer available.
In most cases you will not need the view. See the Workspace docs for
alternatives: https://atom.io/docs/api/latest/Workspace.
If you do need the view, please use atom.views.getView(atom.workspace),
which returns an HTMLElement.

Atom.Object.defineProperty.get (/Applications/Atom.app/Contents/Resources/app/src/atom.js:54:11)
LocalHistoryView.findLocalHistory (/Users/ham/.atom/packages/local-history/lib/local-history-view.js:127:7)

Diff and easy restore for files

There should be a command to easily restore a file. The current file will of coarse be added to the history.

I'll probably build this when I have a moment.

Add optional feature to save history of a file without saving it

Hello!
It would be really great to add feature to save history of a file based on time period. Sometimes Atom crashes and it would be so useful if this plugin will save a file every edit / couple of seconds and keep history for some given time diff, like every minute or so.

Uncaught TypeError: Cannot read property 'prototype' of undefined

[Enter steps to reproduce below:]

  1. Just saving a simple file. First error happened with a .rb file, this tract is form a .scss save

Atom Version: 0.205.0 โš ๏ธ in 1.0 API Preview Mode โš ๏ธ
System: Mac OS X 10.10.3
Thrown From: local-history package, v3.1.0

Stack Trace

Uncaught TypeError: Cannot read property 'prototype' of undefined

At /Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:759

TypeError: Cannot read property 'prototype' of undefined
  at Object.module.exports.extends (/Users/.atom/packages/local-history/node_modules/atom-helpers/lib/utils.js:25:26)
  at Object.<anonymous> (/Users//.atom/packages/local-history/lib/local-history-view.js:28:16)
  at Module._compile (module.js:452:26)
  at Object.loadFile [as .js] (/Applications/Atom.app/Contents/Resources/app.asar/src/babel.js:162:21)
  at Module.load (module.js:347:32)
  at Function.Module._load (module.js:302:12)
  at Module.require (module.js:357:17)
  at require (module.js:376:17)
  at Object.module.exports.getView (/Users//.atom/packages/local-history/lib/local-history.js:82:31)
  at /Users//.atom/packages/local-history/lib/local-history.js:42:17
  at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:82:11)
  at TextBuffer.module.exports.TextBuffer.saveAs (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:1021:20)
  at TextBuffer.module.exports.TextBuffer.save (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:1014:19)
  at TextEditor.module.exports.TextEditor.save (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:578:26)
  at Pane.module.exports.Pane.saveItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:523:18)
  at Pane.module.exports.Pane.saveActiveItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:506:19)
  at Workspace.module.exports.Workspace.saveActivePaneItem (/Applications/Atom.app/Contents/Resources/app.asar/src/workspace.js:585:35)
  at atom-workspace.atom.commands.add.core:save (/Applications/Atom.app/Contents/Resources/app.asar/src/workspace-element.js:314:30)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:238:29)
  at /Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61
  at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:520:16)
  at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:355:22)
  at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:177:20)

Commands

     -2:14.3.0 emmet:insert-formatted-line-break-only (atom-text-editor.editor.cursor-i-beam.is-focused)
     -2:14.3.0 editor:newline (atom-text-editor.editor.cursor-i-beam.is-focused)
     -2:14.1.0 emmet:insert-formatted-line-break-only (atom-text-editor.editor.cursor-i-beam.is-focused)
     -2:14.1.0 editor:newline (atom-text-editor.editor.cursor-i-beam.is-focused)
     -2:13.5.0 core:move-up (atom-text-editor.editor.cursor-i-beam.is-focused)
     -2:12.7.0 core:paste (atom-text-editor.editor.cursor-i-beam.is-focused)
     -2:08.5.0 editor:consolidate-selections (atom-text-editor.editor.cursor-i-beam.is-focused)
     -2:08.5.0 core:cancel (atom-text-editor.editor.cursor-i-beam.is-focused)
     -2:06.2.0 core:backspace (atom-text-editor.editor.cursor-i-beam.is-focused)
     -1:51 core:save (atom-text-editor.editor.cursor-i-beam.is-focused)
     -1:14.5.0 deprecation-cop:view (atom-workspace.workspace.scrollbars-visible-always.cursor-i-beam.theme-base16-tomorrow-dark-theme.theme-one-dark-ui)
     -0:44.8.0 tree-view:remove (ol.tree-view.list-tree.has-collapsable-children.focusable-panel.multi-select)
     -0:22.1.0 core:backspace (atom-text-editor.editor.mini.is-focused)
     -0:09.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:04.1.0 core:paste (atom-text-editor.editor.cursor-i-beam.is-focused)
     -0:02.2.0 core:save (atom-text-editor.editor.cursor-i-beam.is-focused)

Config

{
  "core": {
    "disabledPackages": [
      "vim-mode",
      "jquery-snippets"
    ],
    "projectHome": "/Users//Projects",
    "themes": [
      "one-dark-ui",
      "base16-tomorrow-dark-theme"
    ]
  }
}

Installed Packages

# User
atom-beautify, v0.27.10
atom-html-preview, v0.1.6
block-cursor, v0.12.5
color-picker, v2.0.4
emmet, v2.3.10
file-icons, v1.5.7
flex-tool-bar, v0.3.0
git-log, v0.4.1
javascript-snippets, v1.0.0
language-babel, v0.6.2
language-javascript-jsx, v0.3.6
linter, v0.12.6
linter-csslint, v0.0.13
linter-eslint, v0.5.8
linter-htmlhint, v0.0.16
linter-scss-lint, v1.0.4
linter-tidy, v1.0.1
local-history, v3.1.0
minimap, v4.9.2
minimap-autohide, v0.10.0
minimap-bookmarks, v0.1.0
minimap-color-highlight, v4.1.4
minimap-find-and-replace, v4.2.0
minimap-git-diff, v4.1.3
minimap-highlight-selected, v4.3.0
minimap-selection, v4.2.0
project-manager, v1.15.7
script, v2.23.0
tool-bar, v0.1.5

# Dev
No dev packages

"& Close" label finnicky

Affects v1.8

Make sure the "& Close" label shows on startup of the canvas editor. It's a bit finnicky right now.

Also the "& Close" is missing from the "Search" button.

Package.activateConfig is deprecated.

Use a config schema instead. See the configuration section
of https://atom.io/docs/latest/hacking-atom-package-word-count and
https://atom.io/docs/api/latest/Config for more details

Package.activateConfig (/usr/share/atom/resources/app.asar/src/package.js:263:11)
Package.activateNow (/usr/share/atom/resources/app.asar/src/package.js:234:14)
<unknown> (/usr/share/atom/resources/app.asar/src/package.js:219:30)
Package.measure (/usr/share/atom/resources/app.asar/src/package.js:163:15)
Package.activate (/usr/share/atom/resources/app.asar/src/package.js:211:14)
PackageManager.activatePackage (/usr/share/atom/resources/app.asar/src/package-manager.js:435:21)

Atom.Object.defineProperty.get is deprecated.

atom.workspaceView is no longer available.
In most cases you will not need the view. See the Workspace docs for
alternatives: https://atom.io/docs/api/latest/Workspace.
If you do need the view, please use atom.views.getView(atom.workspace),
which returns an HTMLElement.

Atom.Object.defineProperty.get (/Applications/Atom.app/Contents/Resources/app/src/atom.js:53:11)
Object.activate (/Users/fbajanik/.atom/packages/local-history/lib/local-history.js:43:9)

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.