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

[Feature request] Unsaved buffers support #8

Open
Kristinita opened this issue Apr 7, 2017 · 1 comment
Open

[Feature request] Unsaved buffers support #8

Kristinita opened this issue Apr 7, 2017 · 1 comment

Comments

@Kristinita
Copy link

1. Request

It would be nice, if users can run command, if they have unsaved buffer in current view.

2. Justification

More than 20 times in a day, I wrote text in unsaved buffers via next methods:

  • I create new file or new window,
  • I use GitHub Issue Sublime Text package,
  • I use GhostText Sublime Text package.

I run AutoHotkey scripts for my unsaved buffers.

3. Settings

Part of my Run App.sublime-commands file:

{
    "caption": "Run Apps: SublimeLinterCheck",
    "command": "runapp",
    "args":{
      "app": "D:\\AutoHotkey\\SublimeLinterCheck.exe"
    }
},

4. Steps to reproduce

I open any unsaved buffer → Ctrl+Shift+P (⌘⇧p for Mac) → Run Apps: SublimeLinterCheck.

5. Expected behavior

Successful run my D:\AutoHotkey\SublimeLinterCheck.exe file.

6. Actual behavior

command: runapp {"app": "D:\\AutoHotkey\\SublimeLinterCheck.exe"}
error: Save the buffer to a local file firstly

Thanks.

@liuhewei
Copy link
Owner

liuhewei commented Jul 1, 2017

You're right. Currently, "run app" doesn't accept buffered text as a "target". There are only three types of target now: directory, file and project. The fourth target type can be added, "buffer" for example. Code can be added here: https://github.com/liuhewei/run-app-sublime/blob/master/runapp.py#L23

Actually, I'm not using SublimeText now. So I can't handle the request. Sorry for that.

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