Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Settings not changing. #2087

Closed
TheDataSeneschal opened this issue Feb 4, 2024 · 8 comments
Closed

Settings not changing. #2087

TheDataSeneschal opened this issue Feb 4, 2024 · 8 comments

Comments

@TheDataSeneschal
Copy link

TheDataSeneschal commented Feb 4, 2024

I just started using it and it is not loading my basic configurations

file:///C:/Users/varit/OneDrive/Desktop/configs/Surfingkeys.js

I pasted the above file path into the Load Settings from text area and I have turned on Allow access to file URLs.

// An example to replace `T` with `gt`, click `Default mappings` to see how `T` works.
api.map('gt', 'T');

// an example to remove mapkey `Ctrl-i`
api.unmap('<ctrl-h>');

// set theme
settings.theme = {
    'font-family': 'Consolas NF, Charcoal, sans-serif',
    'font-size': '20pt',
    'background': '#24272e',
    'color': '#abb2bf'
};
settings.theme['tbody'] = {
    'color': '#fff'
};
settings.theme['input'] = {
    'color': '#d0d0d0'
};
settings.theme['.url'] = {
    'color': '#61afef'
};
settings.theme['.annotation'] = {
    'color': '#56b6c2'
};
settings.theme['.omnibar_highlight'] = {
    'color': '#528bff'
};
settings.theme['.omnibar_timestamp'] = {
    'color': '#e5c07b'
};
settings.theme['.omnibar_visitcount'] = {
    'color': '#98c379'
};
settings.theme['#sk_omnibarSearchResult ul li:nth-child(odd)'] = {
    'background': '#303030'
};
settings.theme['#sk_omnibarSearchResult ul li.focused'] = {
    'background': '#3e4452'
};
settings.theme['#sk_status, #sk_find'] = {
    'font-size': '20pt'
};

// click Save button to make above settings take effect.`

I am trying to unmap Ctrl h so that I can use it go to history, Also ctrl y does not do any thing.
I have also disabled all other extensions and it still is not working.
I have also tried copying my settings and pasting them manually after removing the file path from the Load settings from text area.

@Sheepolution
Copy link

I take it you haven't been able to solve this? I have the same problem.

@TheDataSeneschal
Copy link
Author

No not yet. Will try later.

@borjasanlei
Copy link

Similar problem here. Using the default example settings and clicking in 'save' does nothing:

// an example to create a new mapping `ctrl-y`
api.mapkey('<ctrl-y>', 'Show me the money', function() {
    Front.showPopup('a well-known phrase uttered by characters in the 1996 film Jerry Maguire (Escape to close).');
});

// an example to replace `T` with `gt`, click `Default mappings` to see how `T` works.
api.map('gt', 'T');

// an example to remove mapkey `Ctrl-i`
api.unmap('<ctrl-i>');

// set theme
settings.theme = `
.sk_theme {
    font-family: Input Sans Condensed, Charcoal, sans-serif;
    font-size: 10pt;
    background: #24272e;
    color: #abb2bf;
}
.sk_theme tbody {
    color: #fff;
}
.sk_theme input {
    color: #d0d0d0;
}
.sk_theme .url {
    color: #61afef;
}
.sk_theme .annotation {
    color: #56b6c2;
}
.sk_theme .omnibar_highlight {
    color: #528bff;
}
.sk_theme .omnibar_timestamp {
    color: #e5c07b;
}
.sk_theme .omnibar_visitcount {
    color: #98c379;
}
.sk_theme #sk_omnibarSearchResult ul li:nth-child(odd) {
    background: #303030;
}
.sk_theme #sk_omnibarSearchResult ul li.focused {
    background: #3e4452;
}
#sk_status, #sk_find {
    font-size: 20pt;
}`;
// click `Save` button to make above settings to take effect.

@TheDataSeneschal
Copy link
Author

Probably some conflict with some other extensions.

@Fred-Vatin
Copy link

Fred-Vatin commented Oct 17, 2024

Probably some conflict with some other extensions.

No there is no conflict. As I mention at #2182, I tested in fresh profiles on two very different browsers. The issue was the sample code that needs to be fixed.

@Sheepolution
Copy link

For what it's worth I suddenly don't have this issue anymore. Not sure what made that happen though.

@Fred-Vatin
Copy link

Real issues may have been fixed. Our issue is related to the sample code in the settings. Most of its commands are wrong, misleading new users. I explained it in the discussion above.

@TheDataSeneschal
Copy link
Author

This is what finally fixed it

api.mapkey('<Ctrl-y>', 'Show custom popup', function() {
    api.Front.showPopup('A well-known phrase from Jerry Maguire');
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants