Coder Social home page Coder Social logo

Comments (6)

facelessuser avatar facelessuser commented on June 8, 2024 3

I'm glad to see some other plugins are picking up using MkDocs 🙂 .

from filemanager.

math2001 avatar math2001 commented on June 8, 2024

It isn't an expected behavior, but it's definitely a good idea. Maybe you haven't read the docs? In this case, you're very likely to be missing on some stuff that'll save you time. In this case, you can use the alias $here (which is just an alias for the alias $file_path). So, just $here/ and then your file name will do the trick.

Typing $here/ all the time's gonna annoy you, I know. What you can do is add an other shortcut (or overwrite the original one) so that the initial text is $here/. In my case, here's what I've done:

{
    "keys": ["ctrl+n"],
    "command": "fm_create",
    "args": {
        "initial_text": "$here/"
    }    
}

Just to let you know, the expected behavior is that the "base" is the first folder (you can see it by showing the side bar). If there is none, then it picks the currently focused file.

So, I really recommend you have a look at the docs. In this case, you want to look here.

What I can also do is add a setting so that is always uses the currently focused file, whether there is a folder in the current window or not. Would you like to have that? or the current solution works fine for you?

from filemanager.

kenvunz avatar kenvunz commented on June 8, 2024

@math2001 I did read your (super awesome) docs, but I guess I missed out the important bits about the order of file creation location 😅

anyway, your sugesstion about setting inittial_text works like a charm! So I don't think we need to complicate your plugin further with a setting to always uses the current focused file

Cheers,
Ken

from filemanager.

math2001 avatar math2001 commented on June 8, 2024

No worries! 😉

I did read your (super awesome) docs

What do you find "super awesome" about it? The theme? In this case, I agree. It's Material on mkdocs.

from filemanager.

kenvunz avatar kenvunz commented on June 8, 2024

@math2001 yes the theme and the amount of details you've put into, haven't seen anything like that for a Sublime Text plugin before :)

from filemanager.

math2001 avatar math2001 commented on June 8, 2024

haven't seen anything like that for a Sublime Text plugin before :)

Thank you! Maybe you haven't used any packages of @facelessuser then... He's the one that told me to use mkdocs. And he changed his theme to Material too (he use to use the readthedocs one). These docs are full of details too

from filemanager.

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.