Giter Site home page Giter Site logo

settings-search's People

Contributors

dependabot[bot] avatar equinoxmatt avatar github-actions[bot] avatar luckman212 avatar nothingislost avatar sigrunixia avatar valentine195 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  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  avatar

settings-search's Issues

๐Ÿž Latest version of settings-search causes other plugins to error loading.

Check for existing bug reports before submitting.

  • I searched for existing Bug Reports and found no similar reports.

Expected Behavior

All other plugins should load correctly when this plugin is enabled

Current behaviour

Latest version prevents certain plugins from loading correctly.
For example, the smart connections plugin does not load with Settings Search enabled. Disabling Settings Search fixes this issue, and Smart Connections loads correctly.

caught (in promise) TypeError: Cannot read properties of undefined (reading 'includes')
    at t.eval (plugin:settings-search:266:54)
    at t.wrapper [as addSettingTab] (plugin:settings-search:59:20)
    at t.addSettingTab (app.js:1:2028572)
    at SmartConnectionsPlugin.initialize (plugin:smart-connections:511:10)

Reproduction

  1. Install Smart Connections 1.6.34 (though I am sure this could happen to other plugins as well, since disabling Settings Search fixes the loading issue)
  2. Verify that plugin works correctly. It does
  3. Install Settings Search 1.3.9
  4. Plugin no longer loads properly. Console shows the above exception. We notice settings cog for Smart Connections dissapears
  5. Disable Settings Search
  6. Reload Obsidian
  7. Observe that plugin loads correctly

Which Operating Systems are you using?

  • Android
  • iPhone/iPad
  • Linux
  • macOS
  • Windows

Obsidian Version Check

1.4.14

Plugin Version

1.3.9

Confirmation

  • I have disabled all other plugins and the issue still persists.

Possible solution

No response

[Feature request] Scroll to specified plugin in community plugins tab

When I click the arrow, I expect to be taken to the plugin's settings, or at least have it highlighted in the community plugins page. As it stands, it just takes me to the top of the community plugins page and gets me to search again from there.

In my view this is a bug even though I submitted it as a feature request. Any plans on fixing this?

How to use keyboard navigation?

Thanks for creating this nice plugin.

The README file says:

You can use the keyboard to navigate the search results. The up and down arrow keys can be used to move through the results, and the enter button will take you to the setting.

If I press CTRL+, to display the settings dialog window and then type "core pl" into the search field in the top left corner (let's say I want to browse core plugin settings) the top item in "Settings search results" in the right pane is "Search core plugins" but how can I use keyboard navigation to activate it? Tab does not work, arrow keys does not work, enter does not work. Also, I was used to that pressing ESC would close the settings dialog. However, now ESC does nothing and I have to manually close the dialog by pressing the cross mark in the top right corner. If I do this, and close the dialog and then reopen it again by pressing CTRL+, the search field is already filled out with "core pl" but the "Settings search results" in the right pane does not show "Search core plugins" any more as the top result.

I am on Linux using Obsidian version 0.14.2

conflict with obsidian formatting assistant

see Reocin/obsidian-markdown-formatting-assistant-plugin#65 (comment)
getting this message consistently in developer console

seems to be a conflict with markdown formatting assitant and will post problem there too...

turning off settings search eliminates error message

plugin:obsidian-markdown-formatting-assistant-plugin:5107 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'active')
    at eval (plugin:obsidian-markdown-formatting-assistant-plugin:5107:56)
    at e.addToggle (app.js:1:1135946)
    at SettingsTab.eval (plugin:obsidian-markdown-formatting-assistant-plugin:5106:22)
    at step (plugin:obsidian-markdown-formatting-assistant-plugin:79:23)
    at Object.eval [as next] (plugin:obsidian-markdown-formatting-assistant-plugin:60:53)
    at eval (plugin:obsidian-markdown-formatting-assistant-plugin:53:71)
    at new Promise (<anonymous>)
    at __awaiter (plugin:obsidian-markdown-formatting-assistant-plugin:49:12)
    at SettingsTab.display (plugin:obsidian-markdown-formatting-assistant-plugin:4893:16)
    at SettingsSearch.getTabResources (plugin:settings-search:170:15)

BUG - `addResources` causes settings to be displayed with the name of the settings tabs as the title

I am adding the style settings settings with this bit of code

// compatability with Settings Search Plugin
if ((window as any).SettingsSearch) {
	const settingsSearch: any = (window as any).SettingsSearch;

	settingsSearch.removeTabResources('obsidian-style-settings');

	for (const parsedCSSSetting of this.settingsList) {
		console.log('test');
		settingsSearch.addResources(...parsedCSSSetting.settings.map(x => {
			const settingsSearchResource: SettingsSeachResource = {
				tab: 'obsidian-style-settings',
				name: 'Style Settings',
				text: getTitle(x) ?? "",
				desc: getDescription(x) ?? "",
			}
			// console.log(settingsSearchResource);
			return settingsSearchResource;
		}))
	}
}

Expected

Settings Search uses the text field as the title of the setting, as described in the comment

The name of the setting to add.

Actual

The name of the settings tab is used as the name of the settings.

image

[BUG] Periodic Note break the searching

I don't know why, but, when I enable periodic Note, the searching crash : It doesn't display any result, not even a message.

image
I have this in error.

Disable this specific plugin (periodic note) repair the plugin.

[FR] make input field focused when settings is opened

it would be nice to have the search field be focused automatically so the user can open settings via hotkey then immediately type the setting they want without having to remove their hands from the keyboard. currently, the "Search installed plugins" field is the active focus but I believe that search is subsumed by the global search of this plugin

[BUG] Admonition (and other plugins) settings won't pop out

Hi @valentine195!
I noticed that all the settings specific to some plugins (ie your Admonition, Kanban, Excalidraw etc.) won't result when I search for them as you can see here
Issue with plugin setting-search

It would be great if plugin with loads of settings, like Excalidraw, could take advantage of the search bar
Thank you in advance!

[FR] Keyboard Navigation

Hello @valentine195 !!!

I don't know if is feasible but would be great if we could navigate between the search matches using the keyboard :)

If possible ๐Ÿ™

1- highlight the active match while using the keyboard to navigate

2- would be very useful if we could hit enter to "execute" the highlighted match

Thanks for reading this.

[Feature]: test

Please make sure this feature request hasn't been suggested before.

  • I searched previous Issues and didn't find any similar feature requests.

Feature description

Test

Solution

Test

Alternatives

Test

Additional Information

Test

[feature] Jump to the line instead of only jumping to the page.

usecase

Nice plugin. Currently, it is capable of searching & jumping to the correct settings page.
But when dealing with really-long settings pages (namely, Excalidraw and Style settings), only jumping to the right page still leaves an awful lot of reading and scrolling to do.

proposed solution

When clicking the link from search result, jump to the exact line that contains your query, instead of only jumping to the page.

๐Ÿž some button disappear

Check for existing bug reports before submitting.

  • I searched for existing Bug Reports and found no similar reports.

Expected Behavior

the latest version cause a bug : setting button disappear for some plugins

plugin icon disappear from ribbon left sidebar

Current behaviour

76a34b836dd829d96fb2dec53fed81f

Reproduction

b57f07efe245d5423cebee69e197227

Which Operating Systems are you using?

  • Android
  • iPhone/iPad
  • Linux
  • macOS
  • Windows

Obsidian Version Check

1.4.14

Plugin Version

1.3.9

Confirmation

  • I have disabled all other plugins and the issue still persists.

Possible solution

No response

tiny css change so placeholder text doesn't cut off

Thanks for this awesome plugin @valentine195 !

The placeholder text "Search settings..." was being cut off on my system (I use the standard Dark theme)

I added this custom CSS to fix it:

/* slightly wider settings nav area */
.modal.mod-settings .vertical-tab-header {
  flex: 0 0 220px;
}

Before the change:
image

After this change:
image

Issue with Settings Search 'go to' arrows

When searching for a term that matches a plugin name, in the matched results I get a cog icon (to access the plugin's options/settings) and an arrow icon (presumably to go to the plugin's entry in the Community Plugins section).

However, whenever I use the arrow icon for any plugin, it never actually takes me to that plugin's entry, but rather it just dumps me at the beginning of the Community Plugins list, where I then have to manually scroll through all the entries to find the plugin for myself.

I'm not sure whether this is by design or not, but it would be good if the arrow icon in the Settings Search results took you to the general Community Plugins section and scrolled you down to the correct specific plugin entry.

Thanks.

[FR] hotlink when searching for plugins

Hello @valentine195 !!!!

Would be amazing if we could open the plugin settings with the global search.

Today, if we search for a plug-in, we are redirect to the community plugins instead for the settings tab of the plug-in.

Have a great day!!!!

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.