Hello,
While trying operator overloading in Rust, I see some unexepected behaviour of Geany. For a structure called ComplexNumber, the implementation of Add and Mul require separate implementation blocks. I expected that Add and Mul would be listed together with print and magnitude. If I try operator overloading in a similar way in C++, the member functions get nicely grouped below the name of the structure, even if they are defined in separate blocks. See the picture and the attached Rust example.
![implementationsrust](https://cloud.githubusercontent.com/assets/7198614/10871318/e51a5f5a-80e3-11e5-987f-4e2fc4c16615.png)
use std::ops::{Add,Mul};
#[derive(Debug,Copy,Clone)]
pub struct ComplexNumber {
r : f64,
j : f64
}
impl Add for ComplexNumber{
type Output = ComplexNumber;
fn add(self, rhs: ComplexNumber) -> ComplexNumber {
ComplexNumber {r: self.r+rhs.r, j: self.j+rhs.j}
}
}
impl Mul for ComplexNumber{
type Output = ComplexNumber;
fn mul(self, rhs: ComplexNumber) -> ComplexNumber {
ComplexNumber {r: self.r*rhs.r-self.j*rhs.j, j: self.r*rhs.j+self.j*rhs.r}
}
}
impl ComplexNumber {
fn print(& self) {
print!("{}+{}i ",self.r,self.j);
}
fn magnitude(& self) -> f64 {
(self.r.powi(2)+self.j.powi(2)).sqrt()
}
}
fn main()
{
let a = ComplexNumber {r: 1.0, j: 0.0};
let b = ComplexNumber {r: 0.0, j: 1.0};
let c = a + b;
let d = a * b;
let e = c + d;
c.print();
d.print();
e.print();
print!("{} ", e.magnitude());
}
---
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/728
![wordcompletiontruncated](https://cloud.githubusercontent.com/assets/7548378/10593532/7e9e5334-76bc-11e5-949e-f04a742b1cd7.png)
When I push the text size up to the limit using <b>control+mouse wheel</b> and then do a word completion, the choice seem to be truncated.
---
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/702
![snippetcompletion](https://cloud.githubusercontent.com/assets/7548378/10855448/826d9aee-7f39-11e5-9b70-bf23d18eec33.png)
Please consider adding snippets to word completions so that when I want <b>lambda</b> acted on as a snippet, I would be able to type <b>lam</b>, choose from the possible completions, and then if I chose <b>lambda</b> from the list with the <b>tab</b> character, the snippet would be completed to get <b>𝝺</b>
Thanks for your consideration of this matter.
---
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/717
The following crash happened recently several times without noticeable reason:
![capture_20151210_135758](https://cloud.githubusercontent.com/assets/6795665/11715986/c413480e-9f46-11e5-9b4b-b63b0875a392.jpg)
It's Geany 1.25 on Windows, Java 1.7
---
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/795
According to the instructions I should be able to run either ./configure or ./autogen.sh, however, configure file is missing and autogen.sh fails because "macro AM_GLIB_GNU_GETTEXT not found in library".
Should the ./configure file exist or should the instructions be corrected? I assume autogen.sh fails because of missing dependencies? Can they be pulled in automatically?
---
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/issues/379
…and fix the current documentation not to lie to the reader :)
AFAIK this still isn't configurable by color shemes (IIUC only *named styles* and *named colors* are supported), but not configurable at least from *filetypes.common*.
@codebrainz assigning to you as I would thing you are the most colorscheme-literate of us.
You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany/pull/917
-- Commit Summary --
* Fix documentation about translucency settings
* Make the search marker translucency configurable
-- File Changes --
M data/filetypes.common (9)
M doc/geany.txt (22)
M src/highlighting.c (6)
-- Patch Links --
https://github.com/geany/geany/pull/917.patchhttps://github.com/geany/geany/pull/917.diff
---
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/917
Hi,
in Geany 125 ("Veed") there is a typo in the LaTeX code completion
The command \Longleftrightarrow is misspelled as \Longlettrightarrow
This error actually persists since several years :-)
Interestingly enough, the same bug was found in Kile https://bugskdeorg/show_bugcgi?id=136961
Could be that they started from the same databases for code completion
Thanks for correcting that
N
---
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/888
Geany 1.25, Ubuntu 15.10:
When printing 4 pages on a single page some text lines are missing.
Printing 2,6 and 9 pages on one looks OK, the problem comes with 4 and 16.
In the attached image, lines from 61 to 64 and 119 to 122 are missing.
It is not an error with line numbers but code is actually missing too.
![screenshot from 2016-05-20 10-27-15](https://cloud.githubusercontent.com/assets/13032051/15421974/4504…
---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/1040