Git Product home page Git Product logo

conduct.nvim's People

Contributors

aaditeynair avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

conduct.nvim's Issues

[Feature Request] API for checking if a directory is a project

I'm trying to make my startup screen smart:

  • If no directory is supplied, open conduct project picker
  • If directory is supplied, open telescope search file

I want to open conduct session picker if the current directory has a conduct project instead of always find_file, but it looks like the current API doesn't provide that function, it would be nice to have that.

My idea for implementation is a method to return the entire project list as a list of projects(akin to current_project), which allows people to work from there, and eliminates the need for something like list_all_projects. Furthermore, the method could accept a list of strings as what field to query, so you can only query, for example, the cwd for performance reasons for whatever.

Enhance DX

IMO, the current workflow needs enhancements. It would be better if

I'm not sure if my suggestions are better, however, please take a look at them (ideas come from VS Code)

Principal: Plugin should provide a default behavior, and the ability to be customized by users.

  • Add configuration for automatically save new project using the current working directory or may be root git directory.
    • If the user closes a project, save it automatically.
  • Each project will have a default session, if the user does not create anyone.
    • When run Neovim at a specific directory without file as argument, find and load the default session of the matched project depending on the working directory.
  • Opening project B while working on project A should open project B in new tab. At this moment, I see that it only opens new empty buffer and change the working directory.
    • If user opens the project A, and it is opening in the current Neovim session, just need to switch to the matched tab page instead of open.
  • Relate to #1:
    • Add mapping to display project context menu, user can press it and choose the action they want the plugin to do.
    • Add action for loading sessions of the selected project.

I don't understand how to use this plugin

Everything is in the question.
How can I define all my projects ?? I thought there were a projects entry in configuration with the path for each project.
When I look the code, I see that a data.json file should be present at the root of the project.
Anyways, it's not clear how to use this plugin.

@aaditeynair Can you explain a little bit furthermore ? Does the docs needs update ??

Feature request: Actions for Telescope picker

Example scenario:

  1. Run Telescope conduct projects to open project list.
  2. Put the cursor at a project name.
  3. Press hotkey to apply action on the selected project.

Example:

Mapping Action
e rename project
d delete project
r reload project

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.