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

add option to show line numbers in editor #2499

Open
wants to merge 2 commits into
base: master
from
Open
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

@@ -2127,7 +2127,7 @@ class NoteTextComponent extends React.Component {
width={`${editorStyle.width}px`}
height={`${editorStyle.height}px`}
fontSize={editorStyle.fontSize}
showGutter={false}
showGutter={ Setting.value('editor.showGutter') }
name="note-editor"
wrapEnabled={true}
onScroll={() => {
@@ -434,6 +434,7 @@ class Setting extends BaseModel {
},
'style.sidebar.width': { value: 150, minimum: 80, maximum: 400, type: Setting.TYPE_INT, public: false, appTypes: ['desktop'] },
'style.noteList.width': { value: 150, minimum: 80, maximum: 400, type: Setting.TYPE_INT, public: false, appTypes: ['desktop'] },
'editor.showGutter': { value: false, type: Setting.TYPE_BOOL, section: 'appearance', public: true, appTypes: ['desktop'], label: () => _('Show line numbers and folding marks in editor') },

// TODO: Is there a better way to do this? The goal here is to simply have
// a way to display a link to the customizable stylesheets, not for it to
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.