To clarify text alignment thing: (align text vertical hotkey ctrl-alt-T):

Case 1: both selected paragraphs are text-aligned Left
Smart Align Vertical : aligns both paragraphs to the left baseline

Case 2: both paragraphs are text-aligned Right
Smart Align Vertical : aligns both paragraphs to the right baseline

Case 3: both paragraphs are text-aligned Center
Smart Align Vertical : aligns both paragraphs to the center (current default behaviour)

Case 4: both paragraphs are text-aligned Justified
Smart Align Vertical : aligns both paragraphs to the Right

Case 5: paragraphs have mismatched text-alignment 
Smart Align Vertical : aligns both paragraphs to the center (current default behaviour)

-C






On Thu, Mar 10, 2016 at 10:30 PM, C R <cajhne@...400...> wrote:

If that is the case, it's a bit annoying, as I'd like keyboard shortcuts to be available to me regardsless of whether a certain dialog is open or not. I'd say as soon as the node tool is active, the Ctrl+Alt+T/H node alignment shortcuts should be available. C R agree?


Yep, that sounds right. Which align functions correspond to the align horizontal and align vertical functions are highly dependant on what is selected. For example if you want to be a super-hero, you could automatically align (vertically) to the baselines of the text if two text objects are selected instead of the current behaviour which simply aligns them as if they were non-text objects. 99 times out of 100 this likely isn't what you want with text, which is why special align options were added to align text baselines. Though you may want to leave the horizontal align alone on text, or to be somewhat god-like you could smartly align them based on whether the selected text/paragraphs are to be centered or not.

Highly context dependent. :)

-C

 

 

We could take the discussion off-list if you think it's too noicy.

On 10 Mar 2016 22:15, "Marc Jeanmougin" <marc@...3062...> wrote:
Sure, what do you need ?

How I would proceed :

1/ find the functions associated with those buttons(I'd look at the
align dialog (in src/ui/dialog/align-and-distribute.cpp), and find
something related to nodes)

2/ find the root handler for node tool (in src/ui/tools/node-tool.cpp)

3/ look at how the other keyboard shortcuts are handled there, and add a
check for those shortcuts, with the function found in (1) as effect

--
Mc

On 03/10/2016 09:52 PM, Olof Bjarnason wrote:
> I'd like to help out in this one if I may ...
>
> But I've only added some unit tests to lib2geom so far, and would need
> some guidance to the Inkscape source code.
>
> Anyone care to be my "mentor" for this task...?
>
> Regards,
>
> On 10 Mar 2016 21:04, "C R" <cajhne@...400... <mailto:cajhne@...400...>>
> wrote:
>
>     Ctrl-Alt-T - Align selected nodes Horizontal to eachother.
>     Ctrl-Alt-H - Align selected nodes Vertical to eachother.
>
>     Quickie, but would really help in making diagrams and quick edits
>     within a shape.
>
>     -C
>
>     ------------------------------------------------------------------------------
>     Transform Data into Opportunity.
>     Accelerate data analysis in your applications with
>     Intel Data Analytics Acceleration Library.
>     Click to learn more.
>     http://pubads.g.doubleclick.net/gampad/clk?id=278785111&iu=/4140
>     _______________________________________________
>     Inkscape-devel mailing list
>     Inkscape-devel@lists.sourceforge.net
>     <mailto:Inkscape-devel@lists.sourceforge.net>
>     https://lists.sourceforge.net/lists/listinfo/inkscape-devel
>
>
>
> ------------------------------------------------------------------------------
> Transform Data into Opportunity.
> Accelerate data analysis in your applications with
> Intel Data Analytics Acceleration Library.
> Click to learn more.
> http://pubads.g.doubleclick.net/gampad/clk?id=278785111&iu=/4140
>
>
>
> _______________________________________________
> Inkscape-devel mailing list
> Inkscape-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/inkscape-devel
>


------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785111&iu=/4140
_______________________________________________
Inkscape-devel mailing list
Inkscape-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/inkscape-devel


------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785111&iu=/4140
_______________________________________________
Inkscape-devel mailing list
Inkscape-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/inkscape-devel