couldbethis / nano-configs Goto Github PK
View Code? Open in Web Editor NEWmy nano configurations and customizations (nano v 6)
License: GNU General Public License v3.0
my nano configurations and customizations (nano v 6)
License: GNU General Public License v3.0
first block:
second block:
-12-16: all perfect
third block:
fourth block:
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
this bash script ekalinin/github-markdown-toc works well locally and might be perfect to learn how to use github actions.
disable the creation of so much backup files if this is included in the action.
From README.md
: todo: In the nanorc and .nanorc files
include
them in piecesinclude
syntaxfile whose contents are more limited than the nanorc
. See the nanorc
documentation.from README
:
scopatz/nanorc
repoextendsyntax
and keep the main files general-purposeIn 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.
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.
I do not believe any of the information on the README
is exactly correct at this instant.
from the README.md
:
In the file nanorc.nanorc
, the comma confuses the regex
foreground:
icolor slate " slate"
background code:
icolor ,sea ",sea"
(linked blob does not have these colors yet, working in branch)
icolor ,bold ",bold"
icolor ,italic ",italic"
these do not work; produce error:
Color "italic" not understood
somewhat implied by nanorc man page - nano - File Formats | ManKier
The color pair may be preceded by bold and/or italic (separated by commas) to get a bold and/or slanting typeface, if your terminal can do those.
from README
:
Improvements
==
text==
for highlighting[top](#top)
YAML
frontmatterWishlist
ctrl
+ 1
(and so on): add #
to start of line (make heading level 1)enter
* [ ]
or - [ ]
)*
or -
listscode
modifiers all wrong, most things in accessible and conflicts
will it be possible to create 1 file that works cross platform?
From the README.md
:
del
, pg up
/pg dn
and function
keys.ctrl
+ arrow key navigation in how it deals with punctuation and special charecters... currently sort of confusing.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
some settings do not properly highlight; maybe it's not been updated.
I am not sure what is the best way to go about this.
From the README.md
:
nano
from README.md
:
Add or make nicer/more consistent the color scheme
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.