Code Monkey home page Code Monkey logo

Comments (6)

skuroda avatar skuroda commented on August 22, 2024

The name of the command is advanced_new_file_new. Valid command names can be found on https://github.com/skuroda/Sublime-AdvancedNewFile/wiki/Commands. Thank you for using AdvancedNewFile.

from advancednewfile.

 avatar commented on August 22, 2024

Thank you. However: that does not seem to work (tested on Linux). Please explain in a straightforward fashion how I can make ctrl-S save in a directory, and with a filetype, that I have preset.

from advancednewfile.

skuroda avatar skuroda commented on August 22, 2024

{"keys": ["ctrl+s"], "command": "advanced_new_file_new"} in your user key bindings file should work. If it is not, you can enable some level of ST debugging by entering sublime.log_input(True) in the ST console.

When enabled, you should see an entry similar to

key evt: control+s

Setting an extension can be done by setting default_extension, in your AdvanedNewFile user settings file.

"default_extension": ".txt"

If you are still having trouble with the key bindings, you may want to review http://docs.sublimetext.info/en/sublime-text-3/customization/key_bindings.html or ask on https://forum.sublimetext.com/. I haven't done much work with the Sublime Text plugins in quite some time, so there may be new tooling or configurations available to better isolate the problem.

from advancednewfile.

 avatar commented on August 22, 2024

Thank you.

I tried those suggestions, on Windows and Linux, with results I regard as poor. To wit: when I tried to save my existing AdvancedNewFile.sublime-settings file (!), I was prompted, in the status bar - not even a GUI - for a new file name.

Unless I make some mistake, this cure for SublimeText's new file handling is more inconvenient than the original disease.

from advancednewfile.

skuroda avatar skuroda commented on August 22, 2024

It sounds like this is a misunderstanding of what this plugin does. It's designed to create a new named file, not save the existing file.

While I believe it's been improved now, earlier versions of sublime text always required saving new files via a GUI. For many use cases, this was unnecessary, as the file being created was known. To put this another way, it is an enhancement of creating and saving a new file without requiring a file UI interaction.

from advancednewfile.

 avatar commented on August 22, 2024

Yes, I think I misunderstood what the plugin is intended to do.

from advancednewfile.

Related Issues (20)

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.