Giter Club home page Giter Club logo

Comments (3)

xigoi avatar xigoi commented on August 11, 2024

I would appreciate if it was possible to create project-local sessions. Or alternatively, automatically make the outer terminal cd to the correct directory when opening a session (is that even possible?) Sorry if this is already a thing, I haven't played around that much with sessions.

from mini.nvim.

echasnovski avatar echasnovski commented on August 11, 2024

Thanks for the feedback!

Well, session is just a file which should be sourced. There is a possibility to create project-local sessions: look for certainly named file (Session.vim by default) inside current working directory. I thought about it but decided to stick to what 'vim-startify' seemed to be doing.

I wasn't sure how to align this possibility with quite clean idea of "all session files are stored in this configured directory". Maybe something like MiniSessions.config.use_local? If nil, don't search in current working directory, if string - search for that file inside current working directory and display it first?

from mini.nvim.

echasnovski avatar echasnovski commented on August 11, 2024

Adam, thank you once again for constructive feedback. I never use local sessions because i use start screen to choose a session, so I just forgot to implement this.

Now 'mini.sessions' can handle global and local sessions. It is primarily designed for two workflows:

  • Use global sessions (files stored in configured directory) together with 'mini.starter' to choose them upon opening.
  • Use local sessions (configured file that is stored inside current working directory) which will be automatically sourced if config.autoread is true and global sessions are disabled.

from mini.nvim.

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.