Giter Club home page Giter Club logo

nano-configs's People

Contributors

couldbethis avatar

Watchers

 avatar

nano-configs's Issues

nanorc.nanorc: some keywords disrupt color display

image

first block:

  • 4-6: perfect (showing that terminal color scheme can get in the way of seeing everything though)
  • 7-8: colors not displaying?
  • 9: same syntax as 7-8 but colors are working
  • 10: same colors as 7-8 but perfect

second block:
-12-16: all perfect

third block:

  • 18-23: OK I guess; nothing wrong but not very fun

fourth block:

  • 25-28: perfect

The culprit appears to be nanorc.nanorc#L178 as commenting it out results in normal behaviour. I am not sure what the intended effect of this line is.

This is as of this commit: CouldBeThis/nanorc-syntax@80c809c

repo tidy up

from README:

  • Organize files so it's clear what belongs to be and what belongs to the scopatz/nanorc repo
    • Perhaps include as a (forked) submodule
  • Move this list to github issues?
  • Move syntax changes that are just for myself to using extendsyntax and keep the main files general-purpose

use relative locations for included syntax files

In nanorc, the syntax highlighting files were originally linked as absolute paths from ~, such as

include "~/.nano/apacheconf.nanorc"

however to make things more organized and allow correct forking from original repo, I moved them into a separate subdirectory and changed to relative paths:

include "nano-syntax/apacheconf.nanorc"

it turns out that the path is relative to the current working directory from which you open nano. so the above will only work if you are in, for example, ~/.config/nano if that's the parent directory. It doesn't matter where the file you open is located, only where the user is.

Therefor I find it necessary to specify the full path like this as it is the only way to make it work:

include "~/.config/nano/nano-syntax/apacheconf.nanorc"

However, it does work to use a wildcard in specifying, so whereas previously each file had to be named specifically, in this way it is possible to catch every .nanorc file in the directory:

include "~/.config/nano/nanorc-syntax/*.nanorc"

Omitting the file extension results in errors as nano attempts to parse the other git related files.

nanorc.nanorc: review if syntax highlighting is up to date

See #6 where I investigated and found at nanorc.nanorc#L178 formatting applied to

The settings for errorcolor functioncolor keycolor numbercolor selectedcolor statuscolor stripecolor titlecolor are hardcoded but I should need to check if this should be changed/expanded/updated.

And I have to investigate if the file is up to date.

TODO: articulate this better.

markdown wishlist

from README:

Improvements

  • Markdown
    • add ==text== for highlighting
    • codeblocks are a bit odd; see if I misunderstand their use of if they need tweaking
    • add nicer (lower contrast) colors if code is in a link
    • improve anchor link display (higher constrast), e.g. [top](#top)
    • escape charecters
    • YAML frontmatter

Wishlist

  • Optimize keyboard shortcuts for markdown
    • ctrl + 1 (and so on): add # to start of line (make heading level 1)
    • add new list item at same indentation as current.
      • if possible to detect whether currently in a list and what level, this should be automatic behaviour on enter
      • if not, assign to some other keystroke
      • also include for task list ( * [ ] or - [ ])
      • recognize either * or - lists
    • make current selection, or if none selected, current word bold, italic, strikethrough, ==highlighted==, code
    • insert link/image
      • with clipboard URL inserted and cursor in description/alt portion
      • if text selected, consider that text as description/alt and paste URL from clipboard
      • is it possible to detect if clipboard contains URL?
      • how to interact between various clipboards?
    • Extra help screen for shortcuts and/or markdown syntaxt cheatsheet
    • Generate a TOC

improve keyboard navigation

From the README.md:

  • Spellchecking
  • Make use of more keys I don't have on this particular device such as del, pg up/pg dn and function keys.
  • Improve ctrl + arrow key navigation in how it deals with punctuation and special charecters... currently sort of confusing.
  • Change contents of the help menu at the bottom

Could be useful (from [nanorc(5)](https://github.com/CouldBeThis/nano-configs/issues/%5BNANORC%5D(https://nano-editor.org/dist/latest/nanorc.5.html)):

  • formatter - formatter program [argument ...]

    Invokes a full-buffer-processing program (if the active syntax defines one).

  • execute

    Prompts for a program to execute. The program’s output will be inserted into the current buffer (or into a new buffer when M−F is toggled).

  • macros:

    recordmacro

    Starts the recording of keystrokes -- the keystrokes are stored as a macro. When already recording, the recording is stopped.

    runmacro

    Replays the keystrokes of the last recorded macro.

See also #19

usage documentation

I am not sure what is the best way to go about this.

From the README.md:

  • Summarize shortcuts (cheatsheet)
    • Perhaps including rationalization fos some decisions
  • Improved (less confusing) interaction bewteen terminal emulator and nano

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.