Comments (5)
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.
SPC p p
(projectile-switch-project
) works like this.
from neuron-mode.
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.
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.
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)
- Non blocking cache regeneration is very slow HOT 3
- The function `neuron-toggle-connection-type` fails HOT 1
- can't run `neuron-new-zettel` in dired-mode HOT 3
- Feature request: Add ability to easily navigate between journal entries HOT 2
- Template zettels HOT 1
- Tag specific keymaps HOT 1
- neuron-mode fails to initialize HOT 10
- Cannot bind neuron-toggle-connection-type HOT 2
- Support wiki links HOT 7
- Another failure when initializing neuron mode HOT 3
- --id-hash and --id-date not supported anymore HOT 4
- Ignore log messages in output of 'neuron query' HOT 2
- 'neuron-add-tag' is unable to identify tags with latest version of neuron HOT 3
- Querying by --uri fails now? HOT 3
- neuron v2 query HOT 3
- neuron-insert-zettel-link inserts [[[nil]]] for link with non-ascii letters in filename HOT 8
- Canonical location of tags in `neuron query` (v2) HOT 1
- Release (or tag) for the last version that worked with Neuron 1.0 HOT 1
- Updates for latest (unreleased) Neuron version HOT 6
- --zettels is no longer a valid query flag HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neuron-mode.