Antoine Motet [Sun, 3 Dec 2017 22:30:29 +0000 (23:30 +0100)]
Improve JavaScript syntax highlighting
- Sort keywords alphabetically
- Use `symbol.operator` for operators instead of `statement`
- Add a basic support for back-tick strings
- Mark unassigned keywords as errors
Zachary Yedidia [Fri, 24 Nov 2017 19:43:26 +0000 (14:43 -0500)]
Improve command bar keybindings
The command bar now supports better keybindings:
CtrlA, CtrlLeft: start of line
CtrlE, CtrlRight: end of line
CtrlF, AltRight: next word
CtrlB, AltLeft: previous word
CtrlW, AltBackspace: delete previous word
CtrlV: Paste
Arrow keys as usual
These keybindings are not rebindable (maybe support will be added
in the future).
Zachary Yedidia [Thu, 23 Nov 2017 20:57:17 +0000 (15:57 -0500)]
Move incomplete colorschemes and improve cd
The default colorschemes should ideally use 256 colors instead
of just 16 colors. The `simple` colorscheme should cover most
16 color use cases. I went through the colorschemes and put the themes
that didn't look good or looked incomplete in an in_progress directory.
This commit also improves the `cd` command behavior when using an
unnamed buffer.
Fuji Haruka [Mon, 6 Nov 2017 11:52:28 +0000 (20:52 +0900)]
Update javascript.yaml
Add statements `async` and `await`.
Its status is stage 3 Draft.
https://tc39.github.io/ecmascript-asyncawait/#async-function-definitions
But I think it's usefull to add, because Node.js >= v7.6 support it.
Zachary Yedidia [Mon, 6 Nov 2017 01:07:14 +0000 (20:07 -0500)]
Add a scroll bar option
The option is `scrollbar` and is off by default. The scroll bar is
not interactive (you can't click and drag it) but this will likely
be fixed in the future.
Ted Singer [Sat, 21 Oct 2017 22:59:11 +0000 (18:59 -0400)]
If the history file is unreadable or unparseable, Messenger.history remained nil, causing a panic on read.
Now in that case, we temporarily disable saving history and initialize history to empty, instead of nil
Zachary Yedidia [Sat, 21 Oct 2017 19:31:04 +0000 (15:31 -0400)]
Add savehistory option
When savehistory is enabled, micro will save your command history across
sessions. This includes command-mode, shell-mode, open, jump-to-line...
Anything that uses up-arrow for history in the infobar.
Pranav Raja [Mon, 16 Oct 2017 06:35:57 +0000 (17:35 +1100)]
search: Only update lastSearch on ENTER
This has a few effects:
- `lastSearch` doesn't get overriden with partial searches
unnecessarily, which matches the behaviour of vim/emacs etc.
- Selecting a word, then pressing C-c C-f ENTER works better as you can
now use C-n and C-p to jump to more occurrences of what you just
searched for. Without this C-n would jump to what you searched for
*previously*.
- `lastSearch` will now be updated even if the search did not match -
again, this matches the behaviour of vim/emacs.
Jipok [Sat, 14 Oct 2017 15:21:41 +0000 (20:21 +0500)]
Use spaces for nim
From manual:
Nim's standard grammar describes an indentation sensitive language. This means that all the control structures are recognized by indentation. Indentation consists only of spaces; tabulators are not allowed.
Zachary Yedidia [Fri, 6 Oct 2017 17:03:43 +0000 (13:03 -0400)]
Update tcell to use gdamore's fix for idle wakeup
Note that you may encounter merge conflicts if you try to update. If you
do, remove the directory `cmd/micro/vendor/github.com/zyedidia/tcell`
and it will be recloned.
Alan Pope [Tue, 3 Oct 2017 11:50:47 +0000 (12:50 +0100)]
Ensure snap is built with git version/tag info
Changing from version: master to version: git will prevent the snap being built with the text 'master' as the version, but instead use the latest git tag or version info. This makes it easier to figure out which build is which in the store.