FileManager icon indicating copy to clipboard operation
FileManager copied to clipboard

Use WindowCommands to reduce some hazzle

Open deathaxe opened this issue 5 years ago • 0 comments

FileManager shouldn't abuse the ApplicationCommand class but use the WindowCommand which is designed to be used for window related commands.

By doing so some of the hazzle in the different commands used to retrieve the active window and/or file can be omitted.

It helps to make the commands a bit more pythonic.

Note:

  1. This commit is a suggestion and may some review/improvements before merging.
  2. It may break compatibility with Sublime Text 2.
  3. There may be some more things to improve.

deathaxe avatar Jan 25 '20 12:01 deathaxe