Skip to content

Commit

Permalink
fix find connections command failing tom open block level connections…
Browse files Browse the repository at this point in the history
… and cleanup
  • Loading branch information
brianpetro committed Dec 6, 2024
1 parent 4bbf697 commit fdb0128
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 59 deletions.
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,10 +206,12 @@ export default class SmartConnectionsPlugin extends Plugin {
editorCallback: (editor) => {
// if has selection, use selection
if(editor.somethingSelected()){
if(!this.lookup_view) this.open_lookup_view();
this.lookup_view.render_view(editor.getSelection());
return;
}

if(!this.view) this.open_view();
if(editor.getCursor()?.line){ // if cursor is on a line greater than 0
const line = editor.getCursor().line;
const source = this.env.smart_sources.current_note;
Expand Down
2 changes: 2 additions & 0 deletions src/smart_env.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ export const smart_env_config = {
settings: source_settings_component,
},
smart_blocks: {
connections: connections_component,
lookup: lookup_component,
settings: source_settings_component,
},
smart_threads: {
Expand Down
59 changes: 0 additions & 59 deletions src/smart_obsidian_view.js

This file was deleted.

0 comments on commit fdb0128

Please sign in to comment.