Identify and replace non-breaking spaces #254
Replies: 3 comments 4 replies
-
This sounds rather odd... I don't think that shortcut is a Pulsar thing, is this not something done via macOS? As for replacing them you should just be able to past an example of the "bad" space in the |
Beta Was this translation helpful? Give feedback.
-
In your atom.commands.add('atom-text-editor', {
'custom:insert-space': (event) => {
let editor = atom.workspace.getActiveTextEditor();
editor.insertText(' ');
}
}); Then you can map alt-space to this command in your 'atom-text-editor':
'alt-space': 'custom:insert-space' Haven't tested this, so I might've made a silly mistake. Let me know if it doesn't work. |
Beta Was this translation helpful? Give feedback.
-
'atom-text-editor': |
Beta Was this translation helpful? Give feedback.
-
Hello everyone, it seems a recent mac os might have broken something in the way Haskell deals with non-breaking spaces (such as when you hold alt + space bar). How would go about telling Pulsar to look for these in a document and replace them all ? And also how would you reconfigure that keyboard shortcut to just do a normal space ? Thanks a lot
Beta Was this translation helpful? Give feedback.
All reactions