Giter Site home page Giter Site logo

Comments (5)

felko avatar felko commented on June 14, 2024

Yeah that was my idea in #2, but I thought switching would be rare.
I have no idea how to implement this, I'll investigate how counsel-recentf works.

from neuron-mode.

srid avatar srid commented on June 14, 2024

SPC p p (projectile-switch-project) works like this.

from neuron-mode.

pjones avatar pjones commented on June 14, 2024

I think that neuron-zettelkasten should be a function and not a variable. It would first check to see if default-directory is a zettelkasten and if so use it. Otherwise fall back on neuron-default-zettelkasten-directory.

In a similar fashion, neuron-default-zettelkasten-directory should be settable to a directory path (like how it is now) or a user-supplied function that returns a directory path. This would allow the user to decide what directory to use if neuron-zettelkasten can't figure it out automatically.

from neuron-mode.

felko avatar felko commented on June 14, 2024

Yeah that would be an easy way to implement it. To detect the current zettelkasten root, we could also wait for srid/neuron#161 which could provide a command to get the zettelkasten's root from the current directory, like git rev-parse --show-toplevel. But for now, the hierarchy could be recursively traversed upwards until a file named neuron.dhall is detected.

from neuron-mode.

felko avatar felko commented on June 14, 2024

This has been implemented in 60be5c1, neuron-select-zettelkasten is now deprecated.
The detection of the zettelkasten is achieved by traversing upwards the directory tree until a neuron.dhall file is found.
When no neuron.dhall file is found, it choses neuron-default-zettelkasten-directory. The zettel cache is refreshed accordingly.

from neuron-mode.

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.