6119 Commits

Author SHA1 Message Date
Enrico Tröger
85b5e08c47 Recognize #!/bin/dash as shebang for Shell files (closes #3470986) 2012-01-08 13:44:21 +01:00
Nick Treleaven
5b02efb6f8 Separate interfaces and structs in the symbol list 2012-01-06 13:39:26 +00:00
Nick Treleaven
296ecadf45 Parse D parameterized template body 2012-01-06 12:48:08 +00:00
Nick Treleaven
40499d7511 Parse D template blocks
Note: they are listed under Module in the symbol list.
2012-01-04 16:41:32 +00:00
Nick Treleaven
39ff492e4b Show D struct constructor calltips also 2012-01-04 16:09:49 +00:00
Nick Treleaven
7aa5d9516d Parse D class, struct, interface template bodies
Previously they were parsed as functions.
2012-01-04 16:09:48 +00:00
Matthew Brush
6c31ed4bc0 Re-highlight type keywords on notebook page switch 2012-01-03 10:21:09 -08:00
Matthew Brush
8f489fc9fb Use static to avoid clashing with plugins' symbols 2012-01-03 08:54:12 -08:00
Nick Treleaven
34e6bddde8 Add File Browser path entry tooltip 2012-01-03 16:29:32 +00:00
Nick Treleaven
f0ca50cf20 Fix showing Find/Replace regex errors on status bar 2012-01-03 16:21:12 +00:00
Nick Treleaven
308f98a2b9 Use gssize to avoid casts for encodings_convert_to_utf8_*() 2012-01-03 13:30:38 +00:00
Nick Treleaven
6de8f97cb3 Remove GNU regex now we have GRegex 2012-01-02 18:03:21 +00:00
Nick Treleaven
0594950038 Parse PHP functions with multiline argument list, #3037797 2012-01-01 17:03:24 +00:00
Frank Lanitz
1b56b6b5a9 Update of Swedish translation 2011-12-30 18:26:32 +01:00
Nick Treleaven
da8160ac98 Fix gcc 'ordered comparison of pointer' warnings 2011-12-30 16:13:40 +00:00
Nick Treleaven
e4d2e31b82 Simplify encoding regex using \s now we have GRegex 2011-12-30 16:12:17 +00:00
Nick Treleaven
ab02beff5a Use GRegex for encoding regex matching 2011-12-30 15:55:06 +00:00
Colomban Wendling
f86ab3e419 Merge branch 'techee/mru-patches' 2011-12-26 20:08:53 +01:00
Colomban Wendling
7c348e6847 Fix "vergeany" -> "version" typo in some license headers
Honestly, WTF?
2011-12-26 19:16:36 +01:00
Nick Treleaven
6c7e709652 Fix memory leak when build regex changes 2011-12-26 17:42:15 +00:00
Nick Treleaven
e503f8262a Use GRegex for build error regex matching 2011-12-26 17:42:13 +00:00
Colomban Wendling
fa70c16023 Fix page switching after closing the first page in RTL non-MRU mode (oops) 2011-12-26 16:56:36 +01:00
Colomban Wendling
d79268b346 Fix a theoretically possible use of an uninitialized value 2011-12-26 16:06:02 +01:00
Colomban Wendling
804de2572e Properly include notebook.h for notebook_switch_tablastused() declaration 2011-12-26 16:04:52 +01:00
Colomban Wendling
59e84666ed Update HACKING to suggest MIO_FORCE_ANSI for building with -ansi 2011-12-26 15:30:07 +01:00
Colomban Wendling
d76d72518a Import upstream MIO changes 2011-12-26 15:30:07 +01:00
Nick Treleaven
387d071b60 Fix escaping replacement text for regex matching (oops) 2011-12-26 13:01:54 +00:00
Nick Treleaven
89a0a954e0 Remove unused parameter ft_id 2011-12-26 12:56:30 +00:00
Matthew Brush
b347b4a611 Improve handling of named styles and named colors 2011-12-26 00:37:16 -08:00
Matthew Brush
f3af82d40d Handle failure of reading named style by trying to read it as a named color
TODO: find a better way to handle this and restore the removed warning
2011-12-25 16:40:18 -08:00
Matthew Brush
fb8e061242 Prevent warning about comparing signed and unsigned values
The g_match_info_fetch_pos() function uses a signed value for the match_num
parameter, even though values less than 0 are not valid, so a cast is used.
2011-12-25 14:44:32 -08:00
Matthew Brush
3efe11c4b9 Update documentation for HTML/CSS-style colors and [named_colors] section 2011-12-25 14:37:30 -08:00
Matthew Brush
2fe42bfc0c Support [named_colors] in filetypes.* and color schemes 2011-12-25 14:34:04 -08:00
Matthew Brush
8a04222301 Support normal and abbreviated HTML hex triplets in color schemes 2011-12-25 13:43:20 -08:00
Nick Treleaven
773d7e42d2 Let GRegex handle escape sequences itself 2011-12-25 17:22:06 +00:00
Nick Treleaven
21f0715381 Fix \b regex word boundary always matching at start of search 2011-12-25 13:42:19 +00:00
Nick Treleaven
c2481ccb95 Use GRegex matching for Find & Replace commands 2011-12-25 13:23:06 +00:00
Jiří Techet
624c11cec0 Do not change notebook tab in document-close callback
This can lead to unpredictable behavior of document_get_current()
2011-12-24 12:31:22 +01:00
Jiří Techet
ddbb2535f4 Move MRU tab handing from keybindings.c to notebook.c because this is where it belongs 2011-12-24 12:31:10 +01:00
Colomban Wendling
23eede5291 Make switch to MRU upon tab close configurable
Add configuration option tab_close_switch_to_mru to allow the user
to choose whether to switch to the most recently used tab or to the
next one after closing the current tab.
2011-12-24 12:30:58 +01:00
Jiří Techet
f6be8b47d7 Make the tab switching dialog a bit more useful
Right now the tab switching dialog shows the full
path of the current file. However this dialog is too
narrow and in my case usually displays one directory
per line. This makes it hard to find the base
filename, which is the thing you are most probably
looking for.

This patch displays only the base name - in bold. In
addition, it displays the following three filenames
in the MRU list, each on a new line (not in bold).
This helps to see what file comes next and how many
times one has to press ctrl+tab.
2011-12-24 12:30:01 +01:00
Jiří Techet
0acb273c55 Rewrite tab switching queue
There was one more bug related to the tab switching. When we switch
so many times that we return back to the original document (so we
actually don't switch at all) then the following switch attempt
doesn't switch immediately to the next document.

After spending two hours thinking what is wrong, I gave up and rewrote
the whole thing in a different way. The problem with the previous
implementation was that before you couldn't just look what's in the queue
"now" - you had to imagine what will be inserted there in the next step
because the switch_in_progress variable was set after the first switch
(this is also why I put the long comment why mru_pos = 2 - that is not
clear at all when you first look at it). Also there were some not very
nice "workarounds" like the idle function that was executed after the
switch and removed the double entry on top of the queue.

So with the new implementation things are much simpler IMO. The queue
starts with the current document and the previously opened documments
follow. It's *always* like that, no exceptions. The idle function
is gone and cb_func_switch_tablastused() is simplified too. The rest of
the functionality should be clear from the code.

Signed-off-by: Jiří Techet <techet@gmail.com>
2011-12-24 12:29:51 +01:00
Jiří Techet
d0892b95d1 When closing tab, return to the document at the top of the MRU list
This is a pretty frequent work pattern of mine:

1. Editing file A
2. Searching for function and opening file B
3. Closing file B because I just wanted to look at the function definition
4. Without this patch I get to the file following the B's tab (which
is just a random file) but my brain expects that I get to A

I know it's possible to kind of simulate the behaviour I want with
the "next to current" placement option but I really don't see a single
advantage of having tabs closed in sequential order. This is also
why I didn't make this behaviour optional. But maybe I miss some
use case of tabs being closed sequentially - just tell me.

Signed-off-by: Jiří Techet <techet@gmail.com>
2011-12-24 12:29:43 +01:00
Nick Treleaven
0c6aed700d Make 'Replace Spaces by Tabs' only match leading spaces
Replacing spaces used for alignment with tabs would often break the
alignment as tab stop positions were not checked. It's also not
possible to distinguish between a true space and a single aligning
space, so we should ignore all spaces outside of indentation.
2011-12-21 17:06:32 +00:00
Nick Treleaven
a5995468ef Show marker margin in split window
Although go to marker commands (or other keybindings) don't work, the
marker margin can still be useful, and improves alignment with the
original sci widget when using the Top & Bottom split.
2011-12-19 18:23:46 +00:00
Nick Treleaven
ffb33c5299 Show/hide fold margin on sync, not on split 2011-12-19 17:58:51 +00:00
Nick Treleaven
8bdc2d376b Don't manually disconnect "sci-notify" signal
This will get disconnected when the widget is destroyed.
2011-12-19 17:50:58 +00:00
Matthew Brush
aaa62c39b4 Make editor menu initially hidden
Without this the menu won't emit the show signal the first time it's shown.
2011-12-18 18:47:56 -08:00
Colomban Wendling
ed1fe7903b Explicit all required casts in sciwrappers
There is still 3 signed values implicitly converted to unsigned not
fixed, but they aren't really legitimate and would require a behavior
change in some corner cases.
2011-12-18 00:32:22 +01:00
Colomban Wendling
0aea05d10d Fix various integer signedness and minor styling issues
Most noteworthy change is that all build commands IDs and groups are
now unsigned everywhere negative values aren't explicitly handled with
a special meaning.  This should not change anything in behavior, only
makes clear the index won't underflow.
2011-12-18 00:32:22 +01:00