Frank LENORMAND
16068321c1
src: Support the -help
flag
...
This commit allows a help message to be printed when a `-help` flag is
passed to the editor, which will subsequently quit after a summary and a
description of all the flags available have been displayed.
The GNU convention (passing a single `--help` argument to the program)
is also supported, although undocumented.
The man page also now documents the `+:` argument, although unrelated to
the original changeset.
2017-04-10 22:23:30 +03:00
Maxime Coste
94145f2a89
ncurses: When hiding the menu, recompute the info position
2017-04-04 08:36:21 +01:00
Maxime Coste
6ad2f721dd
Do not disable autoinfo and autoshowcompl in non interactive context
...
Fixes #1303
Fixes #1152
2017-04-03 18:16:32 +01:00
Maxime Coste
f31e898f13
Change prompt completion to only update when idle
2017-04-03 18:11:09 +01:00
Maxime Coste
055ed5ff7e
Expose hook params regex captures in hook_param_capture_N
2017-03-30 11:31:07 +01:00
Maxime Coste
2cfe3cae36
Add an InsertDelete hook
2017-03-30 10:38:56 +01:00
Maxime Coste
5f4f8991e5
Merge remote-tracking branch 'lenormf/fix-makefile-distclean'
2017-03-27 15:51:05 +01:00
Frank LENORMAND
ce7673b7b7
src: Fix the distclean
Makefile target
...
Have the Makefile remove the actual binaries and generated documentation
when called with the `distclean` target
2017-03-26 10:49:17 +03:00
Maxime Coste
95e020ed77
Remove some unneeded type declarations in AliasRegistry
2017-03-24 20:13:18 +00:00
Maxime Coste
ca17572301
Try to fix clang 3.5 compilation
2017-03-22 21:08:52 +00:00
Maxime Coste
777ba287e1
Merge faces in show_whitespaces highlighter instead of replacing it
2017-03-21 18:17:43 +00:00
Maxime Coste
8b1078e510
Use a HashMap to store the normal mode keymap
2017-03-16 23:40:38 +00:00
Maxime Coste
e44f95820e
Fixes some clang-tidy warning and add a few missing meta.hh include
2017-03-16 23:34:02 +00:00
Maxime Coste
5f7464d90d
Try to clean up option include a bit
2017-03-16 09:57:39 +00:00
Maxime Coste
7eaa058450
Move enum/flags option functions to option_types.hh
2017-03-15 18:28:32 +00:00
Maxime Coste
7d9f1df73a
Small code tweaks regarding flags handling
2017-03-15 18:25:59 +00:00
Maxime Coste
458dd2e9fa
Remove unneeded 'valid' helper template
2017-03-15 18:02:36 +00:00
Maxime Coste
db9b863222
Migrate WithBitOps template specialization to with_bit_ops function
...
This way we dont depend on knowing the base template to enable bit ops
on an enum type.
2017-03-15 18:00:58 +00:00
Maxime Coste
a49e175727
Migrate to a more value based meta programming model
...
Introduce Meta::Type<T> to store a type as value, and pass it
around, migrate enum_desc and option_type_name to this.
2017-03-15 17:42:02 +00:00
Maxime Coste
a88e58763b
Move SelectionList::set implementation out of the header
2017-03-15 16:51:55 +00:00
Maxime Coste
5705b6c6f9
The canonical name for the documentation command is :doc, not :help
2017-03-15 11:49:00 +00:00
Frank LENORMAND
0acb350619
src: Make the cursor character an opening delimiter
...
This commit allows the editor to consider the character under the cursor
as an opening delimiter when using an object selector, instead of
ignoring it and looking for one before the cursor.
2017-03-15 14:39:40 +03:00
Dan Rosén
5a403a9611
Increase modelinefmt configuration power
2017-03-11 21:43:51 +01:00
Maxime Coste
34da4bf08b
Add dilbert in the ui_options doctring
2017-03-10 12:09:09 +00:00
Maxime Coste
564da076a6
Merge remote-tracking branch 'lenormf/assistant-dilbert'
2017-03-10 12:06:35 +00:00
Maxime Coste
0faa5567ca
Fix crash on non utf8 files trigering highlighting of backward ranges
...
Fixes #1274
2017-03-09 23:40:34 +00:00
Maxime Coste
a0b42323ed
Add a -debug flag to :edit to set the buffer as debug data
...
As for the *debug* buffer, buffers with the debug flag wont get
used for cycling through buffer, or word completion.
2017-03-08 19:33:25 +00:00
Frank LENORMAND
59b65bb9fb
ncurses: Add a Dilbert assistant
...
Drawn by myself.
2017-03-08 20:03:29 +03:00
Maxime Coste
da206d9323
Try to please clang-3.5
2017-03-07 17:21:55 +00:00
Maxime Coste
dc7c5f6e67
Collapse undo groups during an eval command
2017-03-07 16:18:09 +00:00
Maxime Coste
89fa6d4fbf
Small code simplification
2017-03-07 16:11:40 +00:00
Maxime Coste
30c9b3c426
Merge branch 'patch-1' of git://github.com/guillaumecherel/kakoune
2017-03-07 15:52:44 +00:00
Maxime Coste
a1a566e921
Cleanup hash_map code
2017-03-07 15:48:04 +00:00
Maxime Coste
ba02498576
Expand a bit the hash map profiling code
2017-03-07 14:01:01 +00:00
guillaumecherel
81e7158bc1
Update Makefile
2017-03-07 14:20:09 +01:00
Maxime Coste
f3fdc24383
Remove temporary stats code from HashMap
2017-03-07 01:15:41 +00:00
Maxime Coste
f0ae0b8410
Replace IdMap with HashMap
2017-03-07 01:12:37 +00:00
Maxime Coste
6373338c50
Replace uses of UnorderedMap with HashMap
2017-03-07 01:03:26 +00:00
Maxime Coste
e9f93f1b2f
Add support for HashMap options types
2017-03-06 22:25:08 +00:00
Maxime Coste
420373475e
Introduce a custom HashMap implementation along with a quick benchmark
2017-03-06 22:25:08 +00:00
Maxime Coste
6757ddc6cb
Simplify AliasRegistry::remove_alias
2017-03-06 19:44:36 +00:00
Maxime Coste
ed2d50ecef
Remove unused AliasRegistry::flatten_aliases method
...
We do not complete alias names anymore, so this method is not
needed.
2017-03-04 19:45:41 +00:00
Maxime Coste
cc88b0f586
Change word object selector to fail if the cursor is not on a word char
2017-03-04 18:33:50 +00:00
Maxime Coste
887232987c
Refactor surround unit test code
2017-03-04 17:43:24 +00:00
Maxime Coste
ed3c48057d
Refactor regex based selection code
2017-03-03 23:43:54 +00:00
Maxime Coste
1728c67fef
Fix indent selection respect for original selection cursor position
...
Fixes #1233
2017-03-03 22:03:20 +00:00
Maxime Coste
2fa98e04c3
Merge remote-tracking branch 'ekie/hook'
2017-03-03 21:14:14 +00:00
Maxime Coste
f8a625bc2f
Merge remote-tracking branch 'occivink/master'
2017-03-03 21:13:16 +00:00
Maxime Coste
134a5d1f3e
Merge remote-tracking branch 'lenormf/fix-spell'
2017-03-03 21:10:51 +00:00
Maxime Coste
ddc5e958e6
Return an optional selection in most selectors, fail rather than keep current
...
Instead of returning the current selection when a selector fails, return
an empty Optional<Selection>. That means object selections will now
remove the selections that dont match the object.
2017-03-03 20:17:11 +00:00